Pular para o conteúdo principal

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