This method performs a similarity search in the Upstash database over the existing vectors.
similaritySearchVectorWithScore(
query: string | number[],
k: number,
filter: string
): Promise<[DocumentInterface<Record<string, any>>, number][]>| Name | Type | Description |
|---|---|---|
query* | string | number[] | Query vector for the similarity search. |
k* | number | The number of similar vectors to return as result. |
filter | string |