Toggle Menu
Prev Up Next

# `langchain.agents.react.base`.DocstoreExplorer

class langchain.agents.react.base.DocstoreExplorer(docstore: Docstore)

  [Deprecated] Class to assist with exploration of a document store.

  Notes

  Deprecated since version 0.1.0.

  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)

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

    Parameters

      docstore (Docstore) –

  lookup(term: str) → str

    Lookup a term in document (if saved).

    Parameters

      term (str) –

    Return type

      str

  search(term: str) → str

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

    Parameters

      term (str) –

    Return type

      str