Searches for vectors in the Milvus database that are similar to a given vector.
similaritySearchVectorWithScore(
query: number[],
k: number,
filter: string
): Promise<[Document<Record<string, any>>, number][]>| Name | Type | Description |
|---|---|---|
query* | number[] | Vector to compare with the vectors in the database. |
k* | number | Number of similar vectors to return. |
filter | string | Optional filter to apply to the search. |