Home / Case studies

Production RAG over US tax regulation

An assistant that answers tax questions citing the exact source, measured with numbers before going live.

The challenge

A US tax-compliance client needed reliable answers over more than 50 IRS documents. Tax language mixes exact codes (forms, sections) with natural-language questions, and mistakes are expensive.

How I solved it

Result

The winning configuration (hybrid with reranking) finds the right document in the top five for 98% of questions (Recall@5 = 0.98; MRR = 0.80). The client left a 5.0 review: “Eduardo was fantastic… very pleased with how things turned out.”

Public reference implementation: github.com/egtimer/fastapi-rag-lab.

Case studies

Book a 20-min intro call Or email me