similaritySearchVectorWithScore(
queryVector: number[],
k: number,
indexType: "ivf" | "hnsw" | "diskann"
): Promise| Name | Type | Description |
|---|---|---|
queryVector* | number[] | |
k* | number | |
indexType | "ivf" | "hnsw" | "diskann" |
Method that performs a similarity search on the vectors stored in the collection. It returns a list of documents and their corresponding similarity scores.
Query vector for the similarity search.