Skip to content

Documentation / @agentick/core / findSimilar

Function: findSimilar()

findSimilar(queryEmbedding, candidateEmbeddings, candidates, topK?, threshold?): object[]

Defined in: core/src/types.ts:564

Parameters

queryEmbedding

number[]

candidateEmbeddings

number[][]

candidates

string[]

topK?

number = 5

threshold?

number

Returns

object[]

Released under the ISC License.