interface MatryoshkaRetrieverFields {
    largeEmbeddingKey?: string;
    largeEmbeddingModel: Embeddings;
    largeK?: number;
    searchType?: "cosine" | "innerProduct" | "euclidean";
    smallK?: number;
}

Properties

largeEmbeddingKey?: string

The metadata key to store the larger embeddings.

"lc_large_embedding"
largeEmbeddingModel: Embeddings

The embedding model to use when generating the large embeddings.

largeK?: number

The number of documents to retrieve from the large store.

8
searchType?: "cosine" | "innerProduct" | "euclidean"

The type of search to perform using the large embeddings.

"cosine"
smallK?: number

The number of documents to retrieve from the small store.

50