DocstoreExplorer#
- class langchain.agents.react.base.DocstoreExplorer(docstore: Docstore)[source]#
Deprecated since version 0.1.0: LangChain agents will continue to be supported, but it is recommended for new use cases to be built with LangGraph. LangGraph offers a more flexible and full-featured framework for building agents, including support for tool-calling, persistence of state, and human-in-the-loop workflows. For details, refer to the LangGraph documentation as well as guides for Migrating from AgentExecutor and LangGraphβs Pre-built ReAct agent. It will not be removed until langchain==1.0.
Class to assist with exploration of a document store.
Initialize with a docstore, and set initial document to None.
Methods
__init__
(docstore)Initialize with a docstore, and set initial document to None.
lookup
(term)Lookup a term in document (if saved).
search
(term)Search for a term in the docstore, and if found save.
- Parameters:
docstore (Docstore)
- __init__(docstore: Docstore)[source]#
Initialize with a docstore, and set initial document to None.
- Parameters:
docstore (Docstore)