GrabChristian CoffrantProblem & solution
Building Jarvis Pro: Route first, answer later
Summary
Grab designed Jarvis Pro as an AI assistant for account managers turning complex account data into actionable merchant conversations. Early prototypes generated polished but operationally unsound advice, such as pushing promotions when order drops were caused by outlet pauses and fulfillment issues. To address this, the team implemented a "route first, answer later" design that uses a prompted LLM classification step constrained by a routing guide to dictate context, tool paths, answer structure, and guardrails before generation. The pipeline also isolates narrow memory decisions, reconciles metric freshness across data sources, and caps tool calls to maintain usability. In offline evaluations across 351 realistic prompts, routing matched safe routes 99.4% of the time while answer quality scores in a portfolio subset improved from 78.5 to 91.0.
Context
Early prototypes of Jarvis Pro produced fluent, plausible answers that were operationally incorrect, such as recommending promotions when merchant order drops were actually driven by operational issues like paused outlets and slipping fulfillment.
Approach / What changed
The team adopted a 'route first, answer later' architecture where a prompted LLM classification step determines task types, allowed context, memory rules, guardrails, and tool paths before retrieval and answer generation, supported by narrow memory checks and source metric reconciliation.
Takeaways
In offline launch-readiness evaluations on 351 realistic prompts, routing matched the expected safe route for 99.4% of cases.
A 150-case portfolio and brand answer-quality evaluation subset improved its average rubric score from 78.5 to 91.0 after implementing layered routing and guardrails.
Data discrepancies between dashboards and warehouse tables were addressed by building regression checks that normalized source values and compared daily rows across approved metric paths.
Source and freshness
- Source
- engineering.grab.com
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.