Class for interacting with the ClickHouse database. It extends the VectorStore class and provides methods for adding vectors and documents, searching for similar vectors, and creating instances from texts or documents.

Hierarchy

Constructors

Properties

FilterType: ClickHouseFilter
embeddings: Embeddings

Methods

  • Parameters

    • Optional _params: Record<string, any>

    Returns Promise<void>

  • Parameters

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

  • Return documents selected using the maximal marginal relevance. Maximal marginal relevance optimizes for similarity to the query AND diversity among selected documents.

    Parameters

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

    • List of documents selected by maximal marginal relevance.

Generated using TypeDoc