⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠ You can decompress Drawing data with the command palette: ‘Decompress current Excalidraw file’. For more info check in plugin settings under ‘Saving’

Excalidraw Data

Text Elements

Query Router / Intent Classification

Incoming Query

(Any user question)

LLM Router

Classify Intent

METADATA_QUERY

Example:

“What’s the price of your premium plan?”

Route to:

Metadata Filter Search (exact match, structured)

SEMANTIC_QUERY

Example:

“Why should I choose your product over competitors?”

Route to:

Hybrid Search or Re-ranking Pipeline

MULTI_HOP_QUERY

Example:

“How do I integrate your API into my application?”

Route to:

Multi-Query or Step-back Prompting

Optimized Retrieval

Best strategy per query

Router Benefits

• Reduces latency by skipping unnecessary steps • Uses optimal retrieval for each query type • Better accuracy with specialized pipelines