query points payload key prioritization #7650
-
|
Hi, Good Morning. Let's say I have a collection in Qdrant that contains only points with payloads that each contain 3 keys. For example, timestamp, name and topic. When querying for those points, I know it's possible to order by timestamp and filter by a specific key - is it also possible to prioritize a given key value? for example, if I had the following 4 points: Let's say I want to query for all points where the topic is hotrods, but I want to make sure A) the Paul results come back first without excluding the James results, and B) if there are multiple Paul Results, that they're ordered in reverse chronological order. so, the results would be as follows: I know I can specify a filter to limit the results to only hotrods, and order by timestamp as well, but Is there a way to write a query with Qdrant to prioritize a value like that? I've been looking through the documentation, but maybe I'm just overlooking how you could accomplish that? or maybe that doesn't really make sense as a concept with the name in the payload? 🤔 Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Currenly filters do not sort points. You might be able to achieve something like this only on re-ranking stage with formula https://qdrant.tech/documentation/concepts/hybrid-queries/#score-boosting |
Beta Was this translation helpful? Give feedback.
Currenly filters do not sort points. You might be able to achieve something like this only on re-ranking stage with formula https://qdrant.tech/documentation/concepts/hybrid-queries/#score-boosting