Method that performs a similarity search in the usearch index. It
returns the k most similar documents to a given query vector, along
with their similarity scores.
similaritySearchVectorWithScore(
query: number[],
k: number
): Promise<[Document<Record<string, any>>, number][]>| Name | Type | Description |
|---|---|---|
query* | number[] | The query vector. |
k* | number | The number of most similar documents to return. |