跳到主要内容

Function: getTopKEmbeddingsLearner()

getTopKEmbeddingsLearner(queryEmbedding, embeddings, similarityTopK?, embeddingsIds?, queryMode?): [number[], any[]]

Parameters

queryEmbedding: number[]

embeddings: number[][]

similarityTopK?: number

embeddingsIds?: any[]

queryMode?: VectorStoreQueryMode

Returns

[number[], any[]]

Source

packages/core/src/embeddings/utils.ts:124