Saltar al contenido principal

Function: getTopKMMREmbeddings()

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

Parameters

queryEmbedding: number[]

embeddings: number[][]

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

similarityTopK: null | number= null

embeddingIds: null | any[]= null

_similarityCutoff: null | number= null

mmrThreshold: null | number= null

Returns

[number[], any[]]

Source

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