From 044dc730800821699492f253b855759062cf57d0 Mon Sep 17 00:00:00 2001 From: Dylan Couzon Date: Tue, 19 May 2026 11:43:35 -0400 Subject: [PATCH] Use language-agnostic "formula query" in hybrid-queries prose FormulaQuery is the Python class name; TS uses formula. Switch prose, heading, link anchor, and SEO meta to the neutral term so the docs read correctly regardless of SDK. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../content/documentation/search/hybrid-queries.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/qdrant-landing/content/documentation/search/hybrid-queries.md b/qdrant-landing/content/documentation/search/hybrid-queries.md index 77c9e1799..0098624db 100644 --- a/qdrant-landing/content/documentation/search/hybrid-queries.md +++ b/qdrant-landing/content/documentation/search/hybrid-queries.md @@ -1,7 +1,7 @@ --- title: Hybrid Queries -short_description: "Combine dense, sparse, and multivector queries in Qdrant with hybrid search, weighted RRF tuning, DBSF, and multi-stage rescoring with FormulaQuery." -description: "Run hybrid queries in Qdrant: fuse dense, sparse, and multivector results with RRF or DBSF, layer custom scoring with FormulaQuery, and pick the right method for your data." +short_description: "Combine dense, sparse, and multivector queries in Qdrant with hybrid search, weighted RRF tuning, DBSF, and multi-stage rescoring with Formula Query." +description: "Run hybrid queries in Qdrant: fuse dense, sparse, and multivector results with RRF or DBSF, layer custom scoring with Formula Query, and pick the right method for your data." weight: 15 aliases: - ../hybrid-queries @@ -112,7 +112,7 @@ DBSF is a reasonable choice when you trust your retrievers' raw scores to carry | Trust in your retrievers' raw scores and no eval set | DBSF | | Neither an eval set nor strong score priors | RRF (the safe default) | -For a deeper breakdown of when to prefer each, see the [FAQ on RRF vs. DBSF](/documentation/faq/qdrant-fundamentals/#when-should-i-use-reciprocal-rank-fusion-rrf-vs-distribution-based-score-fusion-dbsf-for-hybrid-search). To layer business logic (recency, popularity, geo) on top of a fused result, see [Custom scoring with FormulaQuery](#custom-scoring-with-formulaquery). +For a deeper breakdown of when to prefer each, see the [FAQ on RRF vs. DBSF](/documentation/faq/qdrant-fundamentals/#when-should-i-use-reciprocal-rank-fusion-rrf-vs-distribution-based-score-fusion-dbsf-for-hybrid-search). To layer business logic (recency, popularity, geo) on top of a fused result, see [Custom scoring with a formula query](#custom-scoring-with-a-formula-query). @@ -151,17 +151,17 @@ You can combine all of these techniques in a single query: {{< code-snippet path="/documentation/headless/snippets/query-points/hybrid-rescoring-multistage/" >}} -### Custom Scoring with `FormulaQuery` +### Custom Scoring with a Formula Query _Available as of v1.14.0_ -A `FormulaQuery` lets you compose a final score from prefetch scores (`$score`), payload fields, and built-in helpers like `ExpDecayExpression` or `GaussDecayExpression`. The typical pattern is to fuse retrievers with RRF or DBSF in a prefetch, then wrap that prefetch in a `FormulaQuery` that layers ranking logic on top: recency decay, popularity boosts, geo decay, or category-conditional multipliers. +A formula query lets you compose a final score from prefetch scores (`$score`), payload fields, and built-in helpers like exponential or Gaussian decay. The typical pattern is to fuse retrievers with RRF or DBSF in a prefetch, then wrap that prefetch in a formula query that layers ranking logic on top: recency decay, popularity boosts, geo decay, or category-conditional multipliers. {{< code-snippet path="/documentation/headless/snippets/query-points/hybrid-formula-decay/" >}} - + -The [Choosing a Fusion Method notebook](https://githubtocolab.com/qdrant/examples/blob/master/fusion-methods/Choosing_a_Fusion_Method.ipynb) shows this pattern end-to-end with exponential decay on a `published_at` payload field. For full `FormulaQuery` and decay function syntax, see the [Search Relevance reference](/documentation/search/search-relevance/). +The [Choosing a Fusion Method notebook](https://githubtocolab.com/qdrant/examples/blob/master/fusion-methods/Choosing_a_Fusion_Method.ipynb) shows this pattern end-to-end with exponential decay on a `published_at` payload field. For full formula query and decay function syntax, see the [Search Relevance reference](/documentation/search/search-relevance/). ## Grouping