LangChain · Interface
BaseRetriever
BaseRetriever is the base class for document retrievers in LangChain. Extend it to turn a text query into a list of relevant Document objects.
Last updated
- Since
- v1.7
Syntax
class BaseRetriever(RunnableSerializable[RetrieverInput, RetrieverOutput], ABC)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
DocumentRunnableSerializableRunnable_get_relevant_documents_aget_relevant_documentsinvokeainvokebatch