| Name | Type | Description |
|---|---|---|
query* | number[] | |
k* | number | |
filter | OpenSearchFilter |
Method to perform a similarity search on the OpenSearch index using a query vector. It returns the k most similar documents and their scores.
The query vector.
The number of similar documents to return.
Optional filter for the OpenSearch query.