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
November 29, 20260
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
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 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 ProblemsSample 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...