| Name | Type | Description |
|---|---|---|
query* | number[] | |
k* | number | |
filter | MongoDBAtlasFilter |
Method that performs a similarity search on the vectors stored in the MongoDB collection. It returns a list of documents and their corresponding similarity scores.
Query vector for the similarity search.
Number of nearest neighbors to return.
Optional filter to be applied.