Class for storing and retrieving documents in memory asynchronously. Extends the Docstore class.

Hierarchy

Implements

  • BaseStoreInterface<string, Document>

Constructors

Methods

  • Adds new documents to the store.

    Parameters

    • texts: Record<string, Document<Record<string, any>>>

      An object where the keys are document IDs and the values are the documents themselves.

    Returns Promise<void>

    Void

  • Parameters

    • _keys: string[]

    Returns Promise<void>

  • Parameters

    • keys: string[]

    Returns Promise<Document<Record<string, any>>[]>

  • Parameters

    • keyValuePairs: [string, Document<Record<string, any>>][]

    Returns Promise<void>

  • Searches for a document in the store based on its ID.

    Parameters

    • search: string

      The ID of the document to search for.

    Returns Promise<Document<Record<string, any>>>

    The document with the given ID.

  • Parameters

    • Optional _prefix: string

    Returns AsyncGenerator<string, any, unknown>

Generated using TypeDoc