| Name | Type | Description |
|---|---|---|
query* | number[] | |
k* | number | |
filter | Record<string, any> |
Performs a similarity search on the vectors in the collection. The search is performed using the given query vector and returns the top k most similar vectors along with their corresponding documents and similarity scores.
Query vector for the similarity search.
Number of top similar vectors to return.
Optional. Filter to apply on the metadata of the documents.