Skip to main content
`Ctrl`+`K`

# Docstore

Wrappers on top of docstores.

class langchain.docstore.InMemoryDocstore(_dict: Dict[str, langchain.schema.Document])

  Simple in memory docstore in the form of a dict.

  add(texts: Dict[str, langchain.schema.Document]) → None

    Add texts to in memory dictionary.

  search(search: str) → Union[str, langchain.schema.Document]

    Search via direct lookup.

class langchain.docstore.Wikipedia

  Wrapper around wikipedia API.

  search(search: str) → Union[str, langchain.schema.Document]

    Try to search for wiki page.

    If page exists, return the page summary, and a PageWithLookups object. If page does not exist, return similar entries.