Filter vector search by similarity value

i used in mappings file a dense_vector for knn

   "esvector": {
        "type": "dense_vector",
        "dims": 768,
        "index": true,
        "similarity": "cosine"

I want to use a similarity threshold , but it does'nt work for me , i dont find the way of using this threshold

payload['query'] =my_complex_queries
        payload['knn'] ={
                    "field": "esvector",
                    "query_vector": vector_field,

@john_nicolas ,

, but it does'nt work for me ,

Could you clarify? Do you receive an error?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.