Hi, I'm working on a project where I am reranking...
# community-help
p
Hi, I'm working on a project where I am reranking text matches with vector search. That means that I use a query similar to this:
Copy code
{
  "q": "shoes",
  "query_by": "title,brand",
  "sort_by": "_text_match:desc,_vector_query(embedding:([0.43, 0.13, 0.21],,distance_threshold:XX.XXXX)):asc"
}
I'm using v27. Ideally I want to use inner product as the distance measure, but I'm told _"distance_threshold` parameter must be a float between 0.0-2.0."_ That doesn't jive well with the inner product, as those scores span a wider range than that. Is the
distance_threshold
only supposed to work with cosine similarity?