Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

qdrant-relevance-feedback

Skill by truera

Guides an assistant through Qdrant's Relevance Feedback API to improve dense vector search results. It covers weight calibration and two usage patterns for teams weighing RF against reranking.

  • Score 81
  • 3.7k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install qdrant-relevance-feedback

Built from the published package, never by AI.

git clone --depth 1 https://github.com/truera/trulens /tmp/trulens && mkdir -p ~/.claude/skills && cp -r /tmp/trulens/examples/experimental/EDD/.agents/skills/qdrant-search-quality/search-strategies/relevance-feedback ~/.claude/skills/qdrant-relevance-feedback

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install qdrant-relevance-feedback in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill explains how to use Qdrant's Relevance Feedback (RF) API, which changes the vector search step itself using a small amount of feedback from a reranker or other feedback model. Unlike reranking, which only reorders documents already retrieved, RF can surface documents that the initial ANN search scored too low. A query, a few seed documents with relevance scores, and trained formula weights are passed to the Query Points API with a RelevanceFeedbackQuery type.

The skill describes two patterns. One aims for high top-1 or top-3 quality at lower cost by scoring five seed documents. The other aims for recall in research, legal, medical, or compliance work by scoring a second round of results. It also covers training weights on 50 to 200 real queries with the qdrant-relevance-feedback Python library, and lists anti-patterns to avoid. It is aimed at developers building search who are weighing RF against reranking.

Written from the project's SKILL.md and checked against it.

What it can do

  • Weight calibrationTrains the a, b and c formula weights on 50 to 200 real queries, then evaluates them on a separate test set.
  • Top-1 and top-3 patternScores five seed documents and uses the RF results directly as final results to limit reranking cost.
  • Recall patternSurfaces documents beyond the initial ANN pool, scores them in a second round, and merges results by feedback score.
  • Feedback model guidanceExplains what makes a good feedback model, such as monotonic scores and consistent use between training and inference.

What you need

  • A Qdrant instance with the Query Points API
  • The qdrant-relevance-feedback Python library
  • A feedback model that scores query-document pairs, such as a cross-encoder
  • 50 to 200 representative real queries for training

Try asking

  • Help me improve top-3 precision for my Qdrant search without adding a reranker.
  • Train RF formula weights for my Qdrant collection using 100 real queries.
  • Show me how to build a RelevanceFeedback query with five seed documents.

Good to know

  • Do not use the RF API on sparse vectors.
  • Weights must be trained for each use case, feedback model and embedding model, and retrained if these change.
  • The top-1 and top-3 pattern performs worse at deeper cutoffs and is not for top-10+ recall.
  • The recall pattern has higher latency because it runs two rounds of feedback-model scoring.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: examples/experimental/EDD/.agents/skills/qdrant-search-quality/search-strategies/relevance-feedback/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md10 KB

Alternatives to qdrant-relevance-feedback

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

qdrant-relevance-feedback: common questions

When should I use relevance feedback instead of reranking?

The skill suggests RF when a dense retriever is too weak and reranking is being considered, especially for top-1 or top-3 precision at lower scoring cost. It is intended for tasks where relevance correlates with similarity in vector space.

How many seed documents does the RF query need?

The source says at least two seeds are required, with five as the recommended default. Using significantly more than five usually adds noise and scoring cost without clear gains.

Can I change the feedback model after training?

No. The source says the same feedback model must be used in training and inference, because the learned weights depend on its score distribution. Switching models requires retraining.

How do I install qdrant-relevance-feedback?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is qdrant-relevance-feedback free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is qdrant-relevance-feedback safe to use?

It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to qdrant-relevance-feedback?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

qdrant-relevance-feedback Install

Add to stack

Loading.