Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Qdrant relevance feedback

Sets up and tunes Qdrant's relevance feedback query, so vector search finds better results without a reranker.

What we improved

Added the request shapes the original only linked to: the REST body for a relevance feedback query and a Python helper using `models.RelevanceFeedbackQuery`, both taken from Qdrant's own documentation and tutorial. Added working code for ea

Improved by YourAISkill from the original by qdrant, under its Apache-2.0 licence. The download includes the author's licence and a CHANGES.md listing every change. Both Claude reviews read the improved version.

Claude's review

8/10 Clear, specific setup for Qdrant Relevance Feedback covering calibration, evaluation, two query patterns and a good what-not-to-do list Claude would not otherwise know.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Expanding the candidate pool via relevance feedback, as an alternative to reranking when a dense retriever is too weak. Use when someone asks about 'Qdrant's Relevance Feedback API', 'improving dense search relevance/recall', 'how to discover/get more relevant results from vector search', 'cheaper/better alternative to reranking', 'using a more heavy/big embedding model for dense search but can't afford it', 'finding more relevant documents beyond the initial search pool', or 'feedback loops'. Also trigger when the user has a search quality problem due to a dense retriever being weak and is considering reranking as a solution — this API may be a better fit

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: qdrant-relevance-feedback
description: "Sets up Qdrant's Relevance Feedback Query (Qdrant 1.17+): calibrating the naive formula weights with the qdrant-relevance-feedback Python package, evaluating them, and building the query in REST or Python for two patterns (cheap top-1 to top-3 precision, or recall beyond the initial ANN pool). Use when someone asks about Qdrant's Relevance Feedback API, improving dense search relevance or recall, getting more relevant results out of vector search, a cheaper alternative to reranking, wanting the quality of a bigger embedding model without paying to re-embed, finding relevant documents outside the first search results, or search feedback loops. Also use when a weak dense retriever is causing poor results and the user is considering reranking: relevance feedback may fit better. Not for sparse vectors or keyword search."
---
<!-- Modified by YourAISkill (youraiskill.com) on 2 December 2026 from the original by qdrant. See CHANGES.md. -->

Reranking reorders documents that have already been retrieved. Qdrant's Relevance Feedback (RF), available since **Qdrant v1.17**, instead modifies the vector search itself based on a small amount of feedback-model scoring, distilling the feedback model's knowledge into the search step. This lets RF surface documents that the initial ANN search did not score highly enough to return at all.

RF is intended for tasks where relevance correlates with similarity in vector space.

Read this whole skill before implementing: pick the usage pattern that matches the user's goal, and check the What NOT to Do list.

**Requirements:** a Qdrant server or Cloud cluster on 1.17.0 or later, `qdrant-client` 1.17.0 or later, and for calibration the `qdrant-relevance-feedback` package (Python 3.10+, it installs PyTorch, so train in a project environment with room for it).

## How It Works

A relevance feedback query takes the query (`target`), a few seed documents (`feedback`) each scored by a feedback model (3 to 5 seeds is enough), and the weights `a`, `b`, `c` of the `naive` strategy, currently the only strategy.

Qdrant turns the feedback list into context pairs (a more relevant and a less relevant seed) and scores every candidate in the collection as:

```
score = a * sim(query, candidate)
      + sum over pairs of  confidence^b * c * delta
confidence = feedback_score(positive) - feedback_score(negative)
delta      = sim(positive, candidate) - sim(negative, candidate)
```

All similarities are computed on the retriever's vectors. So candidates close to the original query, closer to highly rated seeds and further from poorly rated ones rise.

The formula weights MUST be trained once per use case (your collection, dense retriever and feedback model). Untrained weights give arbitrary results that do not match your data or models. Training is lightweight because only three numbers are learned.

### Feedback Model

A **feedback model** is anything that produces a float relevance score for a `(query, document)` pair, where higher always means more relevant: a cross-encoder, a stronger embedding model (cosine similarity, or max_sim for late interaction models such as ColBERT), an LLM-based scorer, or a custom ranker.

The feedback model used in training and at inference MUST be the same model. The weights are calibrated to its score distribution; if you switch feedback models, retrain.

**What makes a good feedback model:**
- It must improve ranking quality when used as a plain reranker on your retrieved documents. If it does not, RF has no useful signal to amplify.
- It must separate partial matches well. Training optimises a pairwise ranking loss, so poor separation in the middle range (documents neither clearly relevant nor clearly irrelevant) weakens the result.
...

From qdrant's repository, Apache-2.0 licence.

Related skills

  • Checked

    Safe Postgres migrations

    Plans Postgres schema changes with the right locks and backfills, so migrations run without downtime.

    by timescale 1.9k
    9/101 credit
  • Checked

    Reversible database migrations

    Writes safe, reversible migrations for Postgres, Prisma, Django and others, so tables change without downtime.

    by affaan-m 314k
    8/101 credit
  • Checked

    MySQL and MariaDB tuning

    Guides MySQL and MariaDB schema, indexes, EXPLAIN plans and replication, so your database runs smoothly.

    by ericrisco 691
    7/101 credit
  • Checked

    Prisma schema and queries

    Writes Prisma schemas, queries and migrations to current Prisma 7 rules, so your code avoids old habits.

    by ericrisco 691
    7/101 credit
  • Checked

    BigQuery migration checks

    Validates that tables moved to BigQuery match their source on schema, aggregates and rows, so nothing is lost.

    by google 25k
    7/101 credit
  • Checked

    Query driven schema design

    Designs tables, keys and indexes from your real query patterns, so your data model stays fast as it grows.

    by OneWave-AI 454
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added