You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 havesort_by: '_vector_distance:desc', but not with sort_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:
jasonbosco
changed the title
Error when using buckets on vector search "Could not find a field named _vector_distance in the schema for sorting."
[Feature Request] Bucketing on vector_distance, similar to text_match bucketing
Jun 12, 2024
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: