본문으로 건너뛰기

Function: getTopKEmbeddingsLearner()

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

Parameters

queryEmbedding: number[]

embeddings: number[][]

similarityTopK?: number

embeddingsIds?: any[]

queryMode?: VectorStoreQueryMode= VectorStoreQueryMode.SVM

Returns

[number[], any[]]

Source

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