qdrant-hybrid-search-combining
/qdrant-hybrid-search-combining
Pomaga łączyć wyniki wielu zapytań w Qdrant za pomocą RRF, DBSF lub własnej fuzji oraz dobierać parametr k i wagi, gdy wyniki są słabe.
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 15
Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Pomaga łączyć wyniki wielu zapytań w Qdrant za pomocą RRF, DBSF lub własnej fuzji oraz dobierać parametr k i wagi, gdy wyniki są słabe.
Wyzwalacze z opisu
Oryginalny opis (EN)
Fusing scores from multiple searches into a single ranked result (RRF, DBSF, custom fusion). Use when someone asks 'RRF or DBSF?', 'how to combine sparse and dense', 'how to combine scores from multiple searches?', 'custom fusion', 'fusion is not producing good results', 'how do I tune RRF', 'what k should I use', or 'how do I set fusion weights
Jak działa
- Scores Are Not Comparable Across Prefetches & You Want Some Easy Baseline
- Need Custom Fusion
- Need Good Ranking of Fused Candidates and Ready To Spend More Resources
- What NOT to Do
Podgląd SKILL.md
--- name: qdrant-hybrid-search-combining description: "Fusing scores from multiple searches into a single ranked result (RRF, DBSF, custom fusion). Use when someone asks 'RRF or DBSF?', 'how to combine sparse and dense', 'how to combine scores from multiple searches?', 'custom fusion', 'fusion is not producing good results', 'how do I tune RRF', 'what k should I use', or 'how do I set fusion weights'" --- # Combining Prefetch Results The outer query fuses ranked candidate lists from all parallel prefetches into one ranked list of results. Fusion methods differ in whether they use rank, score or directly vector representations of candidates (their similarity to the outer query) and whether final score incorporates payload metadata. All methods support flat (one fusion step) and nested (multi-stage) prefetch structures. Tune in this order, cheapest first: confirm fusion beats each prefetch alone on your labels, compare Qdrant's default RRF vs DBSF, if tuning RRF: settle `k`, then sweep weights at that `k`, and validate on held-out queries. A weight pair is only valid for the `k` it was tuned with [Tune in this order](https://skills.qdrant.tech/md/documentation/search-tuning/how-to-tune-hybrid-search/?s=tune-in-this-order) ## Scores Are Not Comparable Across Prefetches & You Want Some Easy Baseline Use when: searches produce scores on different scales, like BM25 and cosine on dense embeddings. ### RRF - **[RRF](https://skills.qdrant.tech/md/documentation/search/hybrid-queries/?s=reciprocal-rank-fusion-rrf)** (Reciprocal Rank Fusion): rank-based, ignores scores magnitude. - Start with RRF at Qdrant's defaults, `k=2` and equal weights. - Tune `k` to [control rank sensitivity in RRF fusion](https://skills.qdrant.tech/md/documentation/search/hybrid-queries/?s=setting-rrf-constant-k), choosing the value from your labels [Use labels to choose a `k` range](https://skills.qdrant.tech/md/documentation/search-tuning/how-to-tune-hybrid-search/?s=use-labels-to-choose-a-k-range). - Add per-prefetch **weights** when one search should dominate, using [Weighted RRF](https://skills.qdrant.tech/md/documentation/search/hybrid-queries/?s=weighted-rrf). Weights should be customized per collection and retrievers' score distributions. [Tune weights last](https://skills.qdrant.tech/md/documentation/search-tuning/how-to-tune-hybrid-search/?s=tune-weights-last). ### DBSF - **[DBSF](https://skills.qdrant.tech/md/documentation/search/hybrid-queries/?s=distribution-based-score-fusion-dbsf)** (Distribution-Based Score Fusion): normalizes score distributions per prefetch before fusing them, for that, instead of min-max, uses mean +- 3 deviations on prefetched list of scores. Avoid relying on resulting absolute scores, as scores in DBSF are normalized per prefetch (aka per a retrieved list of search results), and might be uncomparable across queries. - DBSF has no parameters to tune, so compare it before hand-tuning RRF `k` and weights. Confirm on your own labels [Compare RRF and DBSF on your labels](https://skills.qdrant.tech/md/documentation/search-tuning/how-to-tune-hybrid-search/?s=compare-rrf-and-dbsf-on-your-labels) ## Need Custom Fusion Use when: recency, popularity or other payload values should affect the merged ranking alongside candidate scores or you need a custom fusion. **[With formula query](https://skills.qdrant.tech/md/documentation/search/search-relevance/?s=score-boosting)**, access `score` of each prefetch and, if desired, payload field values. If you want to implement custom fusion on `score` of each prefetch: - Use decay or any other available expressions for normalizing score distributions before fusing them. - Parameters of these expressions should be based on the collection & retriever score distributions (for example, adjusting these parameters on a subsample of real queries). - Formula query is unable to provide ranks for custom fusions When using `FormulaQuery` over multiple prefetches (e.g. per-representation weighting): - `$score[i]` indexes prefetches in declaration order. Reordering the `prefetch=` list silently shifts which weight applies to which retriever. - Provide `defaults` for every `$score[i]` so the formula still evaluates for candidates that surfaced from only a subset of prefetches. - On Qdrant 1.19.1 or newer, `max` and `min` expressions take the best or worst of several `$score[i]` (for example, keep each point's best score across per-field BM25 prefetches), cap a boost (`min(cap, boost)`), or clamp a value with `max(lo, min(hi, x))`. A point absent from a prefetch has `$score[i]` of `0.0`, which wins `max` over negative scores and `min` over positive ones, so set `defaults` (keys include the `$`, placed beside `formula`, never inside it) to a value outside the expected score range such as `-1e30` for `max` or `1e30` for `min` [Max and min](https://skills.qdrant.tech/md/documentation/search/search-relevance/?s=max-and-min). - On 1.19.1 or newer, `acosh` supports exact geodesic-distance rescoring for hyperbolic embeddings (Lorentz model with `Dot` distance, `acosh(-$score)`, negated so closest ranks first). The input must be at least 1 [Hyperbolic distance](https://skills.qdrant.tech/md/documentation/search/search-relevance/?s=hyperbolic-distance). - Start with RRF when scores are on incomparable scales (e.g. BM25 + cosine). Reach for `FormulaQuery` only when explicit per-representation weighting or payload-driven boosts are required, and normalize each `$score[i]` (decay or min-max on a sampled distribution) before combining linearly. ## Need Good Ranking of Fused Candidates and Ready To Spend More Resources Use when: you want to use similarity between query and candidates' vector representations as the prefetches combiner and simultaneously ranker. More resource heavy than score/rank based fusions, but might be necessary due to use case requirements or need in a high top-K precision of results (when parallel prefetches have overall a good recall of retrieved candidates). More candidates only help if the ranker can use them. [Deeper prefetches can raise the best possible score](https://skills.qdrant.tech/md/documentation/search-tuning/candidate-depth/?s=more-candidates-can-raise-the-best-possible-score) You can use any type of vector as an outer query over the prefetches, to perform the fusion on the server-side in one QueryAPI request: sparse, dense, multivector. For that, same type of vector representations for documents need to be stored as named vectors per point. Instead of using client-side fusion through cross-encoders, a popular option is **Late interaction models-based fusion**, through reranking on multivectors (e.g. ColBERT for text, ColPali and ColQwen for images). - Most precise but highest compute/resource usage. - Configure multivectors used for fusion through reranking with HNSW disabled like in [Hybrid Search with Reranking tutorial](https://skills.qdrant.tech/md/documentation/tutorials-basics/reranking-hybrid-search/). ## What NOT to Do - Use linear weighted fusion on incomparable score ranges. [Why not](https://skills.qdrant.tech/md/documentation/search-tuning/hybrid-search/?s=fusion-merges-two-rankings-into-one). - Use "vibe" defined weights in weighted RRF. Weights should be fine-tuned per dataset and retrieval pipelines. - Pick any fusion type without comparative experiments. - Use late interaction multivectors for fusion without evaluating cheaper analogues, for example, MUVERA. More in [multi-vector Qdrant search course](https://skills.qdrant.tech/md/course/multi-vector-search/)
Wersje
W bazie nie ma innych skilli o nazwie qdrant-hybrid-search-combining.
Migawka bazy z 28.10.2026 · wersja paczki 685790e0c6b2 (skrót SHA-256 całej paczki)
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 81qdrant-search-quality
Diagnozuje i poprawia trafność wyszukiwania w Qdrant: słabe wyniki, niska precyzja i recall, wybór modelu embeddingów, wyszukiwanie hybrydowe, fuzja RRF, reranking i pomiar jakości. - 95qdrant-hybrid-search
Wyjaśnia wyszukiwanie hybrydowe w Qdrant: łączenie wektorów rzadkich i gęstych, BM25 na indeksie tekstowym lub wektorach rzadkich oraz zakres IDF w zapytaniu. - 100hybrid-search
Łączy wyszukiwanie rzadkie (BM25, SPLADE) z gęstym wektorowym, obejmując reciprocal rank fusion z kodem, ważenie wyników, strojenie alfa i natywne indeksy hybrydowe w Pinecone, Qdrant i Weaviate. - 100postgres-hybrid-text-search
Wdraża wyszukiwanie hybrydowe łączące słowa kluczowe BM25 z wektorowym wyszukiwaniem semantycznym przez Reciprocal Rank Fusion, z użyciem pg_textsearch i pgvector. - 100query-transformations
Opisuje techniki przepisywania zapytań przed wyszukiwaniem w RAG: HyDE, multi-query, step-back, RAG-fusion z RRF, dekompozycja, routing i rozszerzanie, z kodem Python w LangChain i Anthropic SDK. - 100rag-retrieval-pattern-design
Pomaga projektować i naprawiać warstwę wyszukiwania RAG: chunking, wyszukiwanie hybrydowe BM25 i dense z RRF, reranker cross-encoder, ewaluacja RAGAS i świeżość indeksu.