Performs a similarity search on the vectors in the database and returns the documents and their 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 results to return. |