Design a Citation-Grounded Assistant for Multi-Jurisdiction Tax Research

Last updated: November 29, 2026

Quick Overview

Design a retrieval-augmented assistant that answers tax professionals' questions across many countries' legislation, rulings and internal firm guidance, with citations, awareness of effective dates and strict separation of client-confidential documents.

EY
ML System Design
Machine Learning Engineer
EY
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

0

0 solved


Design a retrieval-augmented assistant that answers tax professionals' questions across many countries' legislation, rulings and internal firm guidance, with citations, awareness of effective dates and strict separation of client-confidential documents.

EY's AI program targets knowledge-heavy work such as tax, where answers must be traceable to source law and correct for the right period and jurisdiction. The interviewer checks retrieval design for legal text, temporal correctness, access control in the retrieval path, evaluation with experts and safe failure behavior.

What the Interviewer Expects
  • Ingestion that preserves legal structure (act, section, subsection) and effective date ranges
  • Hybrid retrieval (keyword plus dense) with jurisdiction and date filters
  • Access control enforced at retrieval time, not in the prompt
  • Answers composed only from retrieved passages with section-level citations
  • Offline evaluation with tax experts and online feedback loops
  • Abstention when sources are missing or conflicting
Key Topics to Cover
retrieval augmented generation
hybrid search
temporal versioning
access control
LLM evaluation
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 handle a question that spans two jurisdictions with conflicting rules?
  • How do you keep the index current when legislation changes mid-year?
  • How would you detect and reduce citations that do not support the claim?
  • What latency and cost budget would you set, and where would you spend it?
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 ask questions like 'Is a non-resident's digital services income subject to VAT in country X for 2025, and at what rate?'. Sources: legislation, regulator guidance, case law, firm technical memos...

High-Level Design

Ingestion pipeline parses sources into chunks aligned to legal units, tagging jurisdiction, document type, authority level, effective-from and effective-to dates and an access scope. Chunks go to a se...


Submit Your Answer
Markdown supported

Related Questions