Skip to content

Semantic Router

A component that distributes incoming requests based on their meaning: for example, price-related questions go to one handler, technical support questions to another, and everything else is handled by a basic LLM.

How It Works

The request is compared against embeddings of example sets for each route. The closest match determines where the request is directed.

Why

  • cost efficiency: simple requests go to a cheaper model, complex ones to a more expensive one;
  • accuracy: specialized handlers provide better responses;
  • manageability: explicit routes are easier to control.

See Also

← All Terms