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

Hierarchy

Implements

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

  • Method to yield keys optionally based on a prefix.

    Parameters

    • Optional _prefix: string

      Optional prefix to filter keys.

    Returns AsyncGenerator<string, any, unknown>

    • An asynchronous generator that yields keys on iteration.

Generated using TypeDoc