Performs a similarity search in the vector store using a query vector and returns the top k results along with their scores.
similaritySearchVectorWithScore(
query: number[],
k: number
): Promise<[Document<Record<string, any>>, number][]>| Name | Type | Description |
|---|---|---|
query* | number[] | A query vector. |
k* | number | The number of top results to return. |