langchain.agents.react.base.DocstoreExplorer¶

class langchain.agents.react.base.DocstoreExplorer(docstore: Docstore)[source]¶

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.

__init__(docstore: Docstore)[source]¶

Initialize with a docstore, and set initial document to None.

lookup(term: str) str[source]¶

Lookup a term in document (if saved).

search(term: str) str[source]¶

Search for a term in the docstore, and if found save.

Examples using DocstoreExplorer¶