Similarity search on the vectors stored in the Convex table. It returns a list of documents and their corresponding similarity scores.
similaritySearchVectorWithScore(
query: number[],
k: number,
filter: __type
): Promise<[Document<Record<string, any>>, number][]>| Name | Type | Description |
|---|---|---|
query* | number[] | Query vector for the similarity search. |
k* | number | Number of nearest neighbors to return. |
filter | __type | Optional filter to be applied. |