Tied documents changing their ranking with each Hybrid Search
Open
Nobody has claimed this yet.
bug
- Dominant language
- Rust
- Stars
- 34.7k
- Forks
- 2.7k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 187
Description
Current Behavior
In Hybrid Search with Reciprocal Rank Fusion (models.Fusion.RRF), the ranking of documents with the same score may vary when the same query is repeated.
Steps to Reproduce
- Hybrid Search with Reciprocal Rank Fusion (code example: https://qdrant.tech/documentation/concepts/hybrid-queries/#hybrid-search)
- Repeat a query and check the ranking of documents with the same score
Expected Behavior
Having a consistent document ranking for a given query.
Possible Solution
Sort them by UUID when there is a tie.
Thank you.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Hybrid Search implementation for Reciprocal Rank Fusion, referenced as models.Fusion.RRF, and reproduce the issue using the linked hybrid-search example. Inspect how equal-score documents are ordered; done means repeated identical queries produce the same ranking, with ties ordered by UUID and the relevant behavior covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- databases, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100