Cost and speed
Online Learning for Cost-Efficient LLM Routing
Our short summary of Ramp’s engineering write-up. The full story, with all the detail, is on their blog.
Read the full write-up on builders.ramp.com (opens in a new tab)Problem
Requests were slow and expensive because the system chose suboptimal LLM models.
Solution
They built an LLM gateway that uses Thompson sampling on latency posteriors to route each request to the fastest, most reliable model.
Research behind this, on AI Papers DailyBallad: Bandit-Based LLM Routing for Automated Heuristic Discovery
Want the architecture, code and numbers? They’re in the original post.
Read the full write-up on builders.ramp.com (opens in a new tab)
CRED