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.

Google
ML System Design
Machine Learning Engineer
Google
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Medium

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
Retrieval-augmented generation
Tool use
Access control
Hybrid retrieval
Evaluation sets
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. 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 Problems
Sample 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
  1. Orchestrator LLM: classifies the question and plans tool calls.
  2. Doc retrieval: hybrid BM25 plus dense retrieval over chunked billing docs and pricing pages, with a reranker.
  3. **Billing...

Submit Your Answer
Markdown supported