Skip to content

Adaptive RAG

A variant of RAG where the system chooses how to respond based on the type of question. Not every question requires a search.

Strategies

flowchart LR
    A[Question] --> B{Classifier}
    B -->|Simple| C[Answer immediately]
    B -->|By documents| D[Search + generation]
    B -->|Complex| E[Multistep reasoning]
Question Type Strategy
«What is a token?» Answer without search
«What is the warranty on X?» Search knowledge base
«Compare A and B on 5 criteria» Multiple searches + reasoning

Why

  • Saves tokens: no search for simple questions;
  • Speeds up response;
  • Improves quality on complex queries.

Who Decides

The classifier is a small model or LLM with a prompt. It looks at the question and selects the route.

See Also

← All terms