Dispatch a query using the recommended retrieval strategy.
This is the preferred entry point for the HyDE-aware routing pipeline. The strategy is typically produced by the QueryClassifier's LLM-as-judge or heuristic classifier.
The user's natural-language query.
Retrieval strategy (none, simple, moderate, complex).
Optional suggestedSources: string[]Optional retrieval or research source hints for
deep research (complex). Internal classifier
hints such as vector/graph/research are
normalized to research hints before dispatch.
Aggregated retrieval result with chunks, optional synthesis, and timing metadata.
Dispatch a classified query to the tier-appropriate retrieval pipeline.
This is the legacy entry point. For HyDE-aware routing, prefer dispatchByStrategy.
The user's natural-language query.
Complexity tier assigned by the QueryClassifier.
Optional suggestedSources: string[]Optional retrieval or research source hints for
deep research (T3). Internal classifier hints
are normalized before dispatch. Defaults to
['web'] when not provided.
Aggregated retrieval result with chunks, optional synthesis, and timing metadata.
Routes classified queries to the strategy-appropriate retrieval pipeline.
Supports both the new strategy-based dispatch (dispatchByStrategy) and the legacy tier-based dispatch (dispatch) for backward compatibility.
Example