A class that provides fake embeddings by overriding the embedDocuments and embedQuery methods to return fixed values.

Hierarchy

Constructors

Methods

Constructors

Methods

  • Generates fixed embeddings for a list of documents.

    Parameters

    • documents: string[]

      List of documents to generate embeddings for.

    Returns Promise<number[][]>

    A promise that resolves with a list of fixed embeddings for each document.

  • Generates a fixed embedding for a query.

    Parameters

    • _: string

      The query to generate an embedding for.

    Returns Promise<number[]>

    A promise that resolves with a fixed embedding for the query.

Generated using TypeDoc