Skip to main content

Function: getTopKMMREmbeddings()

getTopKMMREmbeddings(queryEmbedding, embeddings, similarityFn?, similarityTopK?, embeddingIds?, _similarityCutoff?, mmrThreshold?): [number[], any[]]

Parameters

queryEmbedding: number[]

embeddings: number[][]

similarityFn?: null | (...args) => number

similarityTopK?: null | number

embeddingIds?: null | any[]

_similarityCutoff?: null | number

mmrThreshold?: null | number

Returns

[number[], any[]]

Defined in

packages/core/embeddings/dist/index.d.ts:33