langchain/langchain/docstore
Rafal Wojdyla 160bfae93f
Add DocstoreFn - lookup doc via arbitrary function (#3760)
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
2023-04-28 19:50:32 -07:00
..
__init__.py Samantha/add conversation chain (#166) 2022-11-23 16:35:38 -08:00
arbitrary_fn.py Add DocstoreFn - lookup doc via arbitrary function (#3760) 2023-04-28 19:50:32 -07:00
base.py wip: add method for both docstore and embeddings (#119) 2022-11-20 16:23:58 -08:00
document.py Harrison/retrieval code (#1916) 2023-03-22 23:15:04 -07:00
in_memory.py wip: add method for both docstore and embeddings (#119) 2022-11-20 16:23:58 -08:00
wikipedia.py Corrected small typo in error message. (#1791) 2023-03-20 07:51:35 -07:00