Design a RAG Support Assistant for Google Cloud Billing Questions
Last updated: November 29, 2026
Quick Overview
Design an assistant inside the Google Cloud console that answers billing questions ('why did my bill jump last week?') using documentation and the customer's own billing data, with citations and access control.
0
0
0 solved
Design an assistant inside the Google Cloud console that answers billing questions ('why did my bill jump last week?') using documentation and the customer's own billing data, with citations and access control.
Cloud billing questions mix general documentation with account-specific data, so the design must combine document retrieval with structured tool calls and strict permissions. Interviewers check retrieval quality, tool design, IAM enforcement and evaluation.
What the Interviewer Expects
- Route between documentation retrieval and account-data tools
- Build a chunked, versioned doc index with hybrid retrieval
- Call billing APIs with the user's own permissions
- Generate grounded answers with citations and numbers from tools
- Evaluate with a labeled question set and escalate to human support
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How do you stop the assistant from showing data for a billing account the user cannot access?
- How do you handle documentation that changed last week?
- How do you evaluate answers that include numbers from tool calls?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Users: Cloud console users with varying IAM roles. Questions: conceptual (how is egress billed), account-specific (which service caused the spike), and actions (how do I set a budget alert). Output: a...
High-Level Design
- Orchestrator LLM: classifies the question and plans tool calls.
- Doc retrieval: hybrid BM25 plus dense retrieval over chunked billing docs and pricing pages, with a reranker.
- **Billing...