qdrant / qdrant/qdrant

Tied documents changing their ranking with each Hybrid Search

Open
#6,814 2 comments 0 reactions 0 assignees View on GitHub

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

  1. Hybrid Search with Reciprocal Rank Fusion (code example: https://qdrant.tech/documentation/concepts/hybrid-queries/#hybrid-search)
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.