How ElevenLabs engineered RAG to be 50% faster with model racing
ElevenLabs built RAG directly into every query for consistent accuracy, but the query rewriting step relied on a single externally-hosted LLM, creating a hard latency dependency that accounted for more than 80% of total RAG latency.
The prior architecture's single externally-hosted LLM for query rewriting was vulnerable to peak-demand slowdowns and provider outages, making the system fragile.
Model racing cut median RAG latency from 326ms to 155ms, with p75 dropping from 436ms to 250ms and p95 from 629ms to 426ms, while provider outages no longer interrupted conversations.
Show all 5 reported metrics
Frequently asked questions
What did this team achieve with this AI workflow?
Model racing cut median RAG latency from 326ms to 155ms, with p75 dropping from 436ms to 250ms and p95 from 629ms to 426ms, while provider outages no longer interrupted conversations.
What tools did this team use?
RAG, Qwen 3-4B.
What results were reported?
median RAG latency: 326ms → 155ms; p75 RAG latency: 436ms → 250ms; p95 RAG latency: 629ms → 426ms; query rewriting share of RAG latency (pre-fix): more than 80% of RAG latency (source-reported, not independently verified).
What failed first in this deployment?
The prior architecture's single externally-hosted LLM for query rewriting was vulnerable to peak-demand slowdowns and provider outages, making the system fragile.
How is this customer support AI workflow structured?
Query enters pipeline → Dialogue history collapsed → Parallel model race → Fallback on timeout → Relevant context retrieved.