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

Properties

largeEmbeddingModel: Embeddings

The embedding model to use when generating the large embeddings.

largeEmbeddingKey?: string

The metadata key to store the larger embeddings.

"lc_large_embedding"
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