What this thread does
Do first: Call collection.query.hybrid and set alpha explicitly instead of relying on an omitted value.
Short answer
Hybrid retrieval uses one query string for keyword and vector searches and fuses their result sets. Choose weighting and fusion deliberately; named-vector collections also need a target vector.
What to do
| Value | Action / meaning |
|---|---|
query.hybrid(query="food", limit=3) | Basic Python example; collection selection is client.collections.use("JeopardyQuestion"). |
alpha: 0..1; 0; 0.5; 1 | 0 selects keywords, 0.5 equal weighting, 1 vectors; lower than 0.5 favors keywords and higher favors vectors. |
alpha default: 0.75; gRPC v1.36.7+ | Server default applies when alpha is absent. GraphQL can omit it; gRPC can from v1.36.7. Client defaults may still send a different value, even keyword-only. |
relativeScoreFusion: v1.24+; rankedFusion: v1.23 and lower | Current default normalizes each result set to 0..1; older default combines rank-derived scores. |
fusion_type=HybridFusion.RELATIVE_SCORE | Python fusion setting; choose the score method explicitly, especially for autocut. |
rankedFusion: 1/(RANK + 60) | Rank-based contribution formula stated in the concept page. |
target_vector="title_country" | Required target when the collection has named vectors. |
return_metadata=MetadataQuery(score=True, explain_score=True) | Inspect ranking contributions through o.metadata.score and o.metadata.explain_score. |
query_properties=["question^2", "answer"] | Limit keyword search properties; ^2 doubles that property contribution. This does not restrict vector search. |
vector | Supply your own query vector alongside query text; the text still drives the keyword leg. |
bm25_operator; or; and; and_cross: v1.38.8 | or is default; and requires all terms within one property; and_cross permits terms across searched properties. |
BM25Operator.or_(minimum_match=2); BM25Operator.and_() | Python examples require at least 2 query tokens, or all query tokens respectively. |
max_vector_distance=0.4 | Example vector-distance ceiling; there is no equivalent BM25 or final fused-score threshold. |
limit; offset; QUERY_MAXIMUM_RESULTS=10000 | offset + limit must not exceed this default ceiling; exceeding it returns an error. |
auto_limit=1; HybridFusion.RELATIVE_SCORE | Example autocut setting; use Relative Score Fusion because cutoff needs similarity scores. |
filters | Narrow eligible results with the hybrid query filter argument. |
word | Default tokenization lowercases and splits into alphanumeric tokens. |
boost | Optional rescoring after fusion; it is not applied inside either search leg. |
diversity_selection=Diversity.mmr(limit=5, balance=0.5); limit=20 | Documented example diversifies 20 fused candidates into 5 outputs. |
With an existing collection handle:
from weaviate.classes.query import HybridFusion
response = collection.query.hybrid(query="food", alpha=0.5, fusion_type=HybridFusion.RELATIVE_SCORE, limit=3)
Lower alpha for more keyword influence; raise it for more vector influence. Use score explanations to inspect the contributions.
Limits and open questions
- Server alpha default and effective client behavior differ; explicit alpha avoids that ambiguity.
- Distance thresholds exclude overly distant objects even when keyword scores are high. Ranked searches cannot use cursor pagination.
- Diversity selection is top-level only, returns MMR order, and rejects multi-vector collections. Its output limit must be at least 1 and no larger than the query limit. Advance pagination offset by the candidate query limit.
- GraphQL is deprecated; the page announces GraphQL API shutdown on Weaviate Cloud on May 1, 2027. No release date is supplied for the fusion version markers.
Not for: Weaviate v1.23 rankedFusion defaults or Qdrant hybrid-query syntax.
Sources
- Hybrid search how-to, Weaviate.
- Hybrid search concepts, Weaviate.
Checked
2026-11-17; read the linked Hybrid search how-to, Hybrid search concepts; no command was run.
Started from a post by @Weaviate, packaged by the editor. Original post