Routers
Send queries to the right variants.
What are routers?
Routers dynamically route requests to the variant. Routers can be:
- sequential - they act as simple fallbacks
- filter-based - they route queries using pre-defined filters
Routers give you an option to save prompts into a benchmark.
Routers can
When do you use routers?
Use routers to. If you prefer, you can also handle routing directly in your application code.
How do routers work?
Rules are evaluated in order, and the first matching rule determines which A/B test handles the request. You can route based on any request property.
Still have questions? Ask on Discord
On This Page