Error when using buckets on vector search "Could not find a field named _vector_distance
in the schema for sorting."
#1731
Labels
_vector_distance
in the schema for sorting."
#1731
Description
I am trying to use the sort_by property with the vector search and also trying to rerank the results with the bucket parameter:
sort_by: '_vector_distance(buckets: 10):desc, popularity:desc',
Steps to reproduce
make a vector search query with the sort_by set to
sort_by: '_vector_distance(buckets: 10):desc',
note that it works when we have
sort_by: '_vector_distance:desc',
but not withsort_by: '_vector_distance(buckets: 10):desc',
Expected Behavior
Receive results reranked in the buckets similar to what is described in documentation for ranking based on popularity
Maybe this is normal that the bucket prop is not supported for vector search queries so this is a feature request and not a bug report but in that case the error message should be changed to explain that buckets are not supported for the _vector_distance field
Actual Behavior
receive the error
"Could not find a field named
_vector_distance
in the schema for sorting."Metadata
Typesense Version: 25.1
OS: Typesense cloud
The text was updated successfully, but these errors were encountered: