Saltar al contenido 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/llamaindex/src/embeddings/utils.ts:124