mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
160bfae93f
This **partially** addresses https://github.com/hwchase17/langchain/issues/1524, but it's also useful for some of our use cases. This `DocstoreFn` allows to lookup a document given a function that accepts the `search` string without the need to implement a custom `Docstore`. This could be useful when: * you don't want to implement a `Docstore` just to provide a custom `search` * it's expensive to construct an `InMemoryDocstore`/dict * you retrieve documents from remote sources * you just want to reuse existing objects |
||
---|---|---|
.. | ||
__init__.py | ||
test_arbitrary_fn.py | ||
test_inmemory.py |