| Name | Type | Description |
|---|---|---|
query* | number[] | |
k* | number | |
filter | ElasticFilter |
Method to perform a similarity search in the Elasticsearch database using a vector. It returns the k most similar documents along with their similarity scores.
The query vector.
The number of most similar documents to return.
Optional filter to apply to the search.