MultiQuery Retriever

Generate several query variations with a chat model and merge their results for broader retrieval. Requires a base retriever and a model.

Written By Philippe

Last updated 2 days ago

MultiQuery Retriever

πŸ§ͺ Labs β€” Experimental, may change or break without notice

What It Does

Uses a chat model to rewrite your query into several variations, retrieves documents for each, and merges the results β€” improving recall when a single phrasing would miss relevant documents.

Connections

InputRequiredDescription
ModelYesChat model that generates query variations
RetrieverYesThe base retriever to query

Output: a Retriever connection.

Compatibility

FeatureStatus
Model-generated query expansionSupported
Chat modelsAny supported chat model (not OpenAI)

Notes

  • Both a base retriever and a chat model must be connected for this node to run.
  • More retrieval calls mean higher cost per run than a plain retriever.