Toggle Menu
Prev Up Next

# `langchain_community.docstore.base`.Docstore

class langchain_community.docstore.base.Docstore

  Interface to access to place that stores documents.

  Methods

  `__init__`() |
  `delete`(ids) | Deleting IDs from in memory dictionary.
  `search`(search) | Search for document.

  __init__()
  delete(ids: List) → None

    Deleting IDs from in memory dictionary.

    Parameters

      ids (List) –

    Return type

      None

  abstract search(search: str) → Union[str, Document]

    Search for document.

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

    Parameters

      search (str) –

    Return type

      Union[str, Document]