Qdrant Relevance Feedback logo

Qdrant Relevance Feedback

Organization
qdrant
qdrant-relevance-feedback

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

Overview

Publisherqdrant
Repositoryskills
Skill nameqdrant-relevance-feedback
Stars
262
Forks
31
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by qdrant on GitHub. Read the source before you install it.

Installation

Install the Qdrant Relevance Feedback AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/qdrant/skills/tree/main/skills/qdrant-search-quality/search-strategies/relevance-feedback
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/qdrant/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/qdrant-search-quality/search-strategies/relevance-feedback .claude/skills/qdrant-relevance-feedback
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Qdrant Relevance Feedback in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Qdrant Relevance Feedback on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Qdrant Relevance Feedback is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Reranking reorders documents that have already been retrieved. Qdrant's Relevance Feedback (RF) instead modifies the vector search process itself based on a small amount of reranker feedback, distilling reranker (feedback model) knowledge into the search step. This allows RF to surface documents that the initial ANN search did not score highly enough.

The RF is intended for tasks where relevance correlates with similarity in vector space. It is available as of Qdrant 1.17.

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

How It Works

A relevance feedback query takes the query (target), a few seed documents (feedback) scored by a feedback model (3-5 seeds is enough), and formula weights for the naive strategy. See Relevance Feedback for the request format.

The formula weights MUST be trained once per general search use case (your dataset, dense retriever, and feedback model). If you do not train them, results will at best be random and will not align with your data distribution or model behavior. Training is lightweight because the formula itself is simple.

During search, it scores each candidate by combining similarity to the original query, similarity to highly rated seed documents and dissimilarity to poorly rated ones.

Feedback Model

A feedback model is any model that can produce a float relevance score for (query, document) pairs. Higher scores must always mean higher relevance.

Examples: a cross-encoder, embedding similarity (for example, cosine similarity between query and document embeddings, or max_sim for late interaction models), an LLM-based scorer, a custom ranker.

The feedback model used during training and inference MUST be the same model. Formula weights during training are calibrated to that model's score distribution. If you switch feedback models, you must retrain.

What is a Good Feedback Model:

  • If the model does not improve ranking quality when used as a reranker on retrieved documents, the RF search will not have a meaningful signal to amplify.
  • RF search quality depends heavily on how well the feedback model scores partial matches. The training loss of RF formula relies on relative ordering, so poor score separation in the middle range (documents that are neither clearly relevant nor clearly irrelevant) weakens results.

To Make the RF API Work, You Need to Calibrate Weights First

Use when: setting up RF for a new use case — a new collection, feedback model, or embedding model powering ANN search.

RF uses a weighted formula that combines the original query vector with feedback signals.

For the currently available naive strategy, the learned weights control:

  • a — how much to trust the original ANN query-document similarity
  • b — how strongly differences in feedback scores matter
  • c — how strongly to follow the feedback direction (toward relevant documents and away from irrelevant ones)

These weights must be learned from your data before use. You cannot safely use arbitrary values.

  • Train the weights with the qdrant-relevance-feedback Python library, following the Training walkthrough. Use the same retriever and feedback model you will use at inference.
  • Train on 50-300 representative queries. Prefer real queries from the user's traffic; if there are none, generate representative queries for the use case and tell the user, and give them the option to provide their own.
  • Inform the user on cost and quality trade-offs of training: the feedback model scores every training query × limit candidates.
  • Check the train metrics, which show whether RF had a signal (disagreement between retriever and feedback model) to distill and learn from. If there was no signal, adapt training parameters, queries, or the feedback model, and retrain until RF learns well.
  • Store the resulting RF parameters in your configuration and use them during inference. Retrain if your query distribution or corpus changes significantly.
  • Evaluate the formula on a separate test set of representative queries before production, as in the tutorial's Evaluation section. If results seem unsatisfactory, investigate and inform the user.

Building the Query

Check the Relevance Feedback documentation and study the code and methods of the relevant SDK before filling in any field. For both patterns below:

  • Set using to the retriever's vector name: RF operates in the retriever's vector space.
  • Set target to the query embedding from the retriever (Qdrant Cloud Inference also works).
  • Use the naive strategy with your calibrated weights.
  • A point ID in a feedback example excludes that document from the results. A stored vector in example instead can keep the document in the results.

Want High-Quality Top-1/3 Results at Reasonable Cost

Use when: top-1 or top-3 precision matters most, and reranking a large pool of documents would be too expensive or slow. This pattern below can match reranking quality at the top of the ranking for semantic similarity tasks, but it performs worse at deeper cutoffs. Do not use this approach when top-10+ recall is the priority.

Only score a small set of seed documents. Five seeds is a robust default across many task types and scoring them costs user roughly 5× less than reranking a 25-document pool.

  • Retrieve the top 5 documents using ANN search and score them with the feedback model used in training. These become the feedback seeds.
  • Send each seed's stored vector (same embedding model as target) as its example, with its feedback score.
  • Set limit to the number of final results you need, and use the RF results directly as final results.

Want to Find Relevant Documents Beyond the Initial Search Results

Use when: recall matters more than latency or cost (research, legal, medical, compliance), and relevant documents may exist outside the initial ANN retrieval pool.

It performs two feedback model scoring rounds:

  1. on feedback seeds
  2. on newly surfaced RF results

The second reranking pass safely promotes newly discovered documents into the top-10 of the final ranking. The advantage over standard reranking is that RF can reach relevant documents that lie completely outside the initial ANN pool, while a reranker with the same budget cannot. The tradeoff is higher latency due to two rounds of feedback-model scoring.

  • Retrieve and score 5 seed documents, and send each seed's point ID as its example, with its feedback score.
  • Set limit to the number of results the user can afford to rerank. The total scoring cost covers both the seeds and the RF results, roughly equivalent to reranking a pool of the same combined size. Inform and consult with the user.
  • Score the returned RF results with your feedback model, merge them with the original seeds, and sort by feedback score. These are your final results.

What NOT to Do

  • Do not skip calibration and use random formula weights. Untrained weights produce arbitrary results. (a=1, b=0, c=0 can be used if you only want vanilla ANN behavior through the RF API.)
  • Do not use the RF API on sparse vectors.
  • Do not use a feedback model where higher scores mean lower relevance. Scores must be monotonic: higher = more relevant.
  • Do not use fewer than 2 feedback seeds. A single seed provides no contrastive signal. The formula needs at least one relatively more relevant and one relatively less relevant example to establish direction. Two is the minimum; five is the recommended default.
  • Do not use significantly more than 5 seeds expecting better quality. Additional seeds usually add noise and increase scoring cost without meaningful gains.
  • Do not use a different feedback model during inference than the one used during calibration. The learned weights are tied to that model's score scale and distribution.
  • Do not use a feedback model that does not improve retrieval quality as a standard reranker on your data.
  • Do not proceed to inference if training and evaluation metrics of qdrant-relevance-feedback package demonstrated unsatisfactory results, instead find a good training set of representative queries, a feedback model providing a meaningful signal and effective train parameters.

Frequently asked questions

What does the Qdrant Relevance Feedback AI skill do?

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...

Why use Qdrant Relevance Feedback on TypingMind?

Because you install it once and use it with any model. Qdrant Relevance Feedback is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Qdrant Relevance Feedback in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/qdrant/skills/tree/main/skills/qdrant-search-quality/search-strategies/relevance-feedback. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Qdrant Relevance Feedback?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Qdrant Relevance Feedback?

As many as you like. As long as a model supports skills, you can use Qdrant Relevance Feedback with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Qdrant Relevance Feedback AI skill free?

Yes. It is published on GitHub by qdrant under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇