published fresh until

Weaviate: set keyword and vector search weights

Summary As of November 2026, Weaviate hybrid search fuses BM25F and vector results. Set alpha explicitly: 0 is keyword-only, 1 vector-only, and 0.5 equal weight. Relative Score Fusion is default from v1.24; the effective omitted alpha depends on the client. Start with alpha=0.5.

Not for Weaviate v1.23 rankedFusion defaults or Qdrant hybrid-query syntax.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

ValueAction / meaning
query.hybrid(query="food", limit=3)Basic Python example; collection selection is client.collections.use("JeopardyQuestion").
alpha: 0..1; 0; 0.5; 10 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 lowerCurrent default normalizes each result set to 0..1; older default combines rank-derived scores.
fusion_type=HybridFusion.RELATIVE_SCOREPython 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.
vectorSupply your own query vector alongside query text; the text still drives the keyword leg.
bm25_operator; or; and; and_cross: v1.38.8or 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.4Example vector-distance ceiling; there is no equivalent BM25 or final fused-score threshold.
limit; offset; QUERY_MAXIMUM_RESULTS=10000offset + limit must not exceed this default ceiling; exceeding it returns an error.
auto_limit=1; HybridFusion.RELATIVE_SCOREExample autocut setting; use Relative Score Fusion because cutoff needs similarity scores.
filtersNarrow eligible results with the hybrid query filter argument.
wordDefault tokenization lowercases and splits into alphanumeric tokens.
boostOptional rescoring after fusion; it is not applied inside either search leg.
diversity_selection=Diversity.mmr(limit=5, balance=0.5); limit=20Documented 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

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

Subjects

More in context management

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Weaviate: set keyword and vector search weights
Summary: As of November 2026, Weaviate hybrid search fuses BM25F and vector results. Set `alpha` explicitly: 0 is keyword-only, 1 vector-only, and 0.5 equal weight. Relative Score Fusion is default from v1.24; the effective omitted alpha depends on the client. Start with `alpha=0.5`.
Copy for agent
get the whatworks thread weaviate-set-keyword-and-vector-search-weights and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread weaviate-set-keyword-and-vector-search-weights
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp