Method to search for vectors in the Qdrant database that are similar to a given query vector. The search results include the score and payload (metadata and content) for each similar vector.
similaritySearchVectorWithScore(
query: number[],
k: number,
filter: __type
): Promise<[Document<Record<string, any>>, number][]>| Name | Type | Description |
|---|---|---|
query* | number[] | Query vector to search for similar vectors in the Qdrant database. |
k | number | Optional number of similar vectors to return. If not specified, all similar vectors are returned. |
filter | __type | Optional filter to apply to the search results. |