qdrant-relevance-feedback

Python package that fits the three parameters (a, b, c) of Qdrant’s index-native Relevance Feedback query — the scoring formula that guides HNSW traversal toward what a feedback model judged relevant.

You do not train per query. Fitting happens once per (feedback model, collection, retriever) and the resulting weights are then passed with every relevance-feedback query. The package exists so that using the feature doesn’t require an ML background — “nobody needs a machine learning degree to use a search engine.”

What it does

  • Scores a sample of domain queries with your chosen feedback model — a Cross-Encoder, a bi-encoder, a late-interaction model like ColBERT, a custom Learning to Rank model, or an LLM
  • Mines context pairs from the top results
  • Fits a, b, c by pairwise ranking loss against that signal — effectively Knowledge Distillation of the feedback model into the vector index
  • Emits weights for the RelevanceFeedbackQuery API

Reference experiments use 50–6,000 queries depending on collection size, with a 50/50 train/validation split.