Skip to main content
The TWIML AI Podcast

Is RAG Dead? Lessons from Building AI for Tax Law with Alex Bowcut - #769

51 min episode · 2 min read
·
Alex Bowcut

Episode

51 min

Read time

2 min

Topics

Sales & Revenue, Artificial Intelligence, Software Development

AI-Generated Summary

Key Takeaways

  • Hybrid Retrieval Architecture: Combining dense semantic embeddings (OpenAI models via Pinecone) with sparse TF-IDF-style full-text search measurably improves citation accuracy over dense-only retrieval. When sparse search was reintroduced after starting with dense alone, Sphere saw a clear accuracy increase on retrieval evals, particularly for jurisdiction-specific legal terminology that semantic embeddings alone failed to surface reliably.
  • Semantic Chunking Over Naive Splitting: Splitting legal documents by character count discards critical hierarchical context. Build document-type-specific parsers — separate ones for statutes, case law, and department bulletins — that cut at natural legal section boundaries while preserving parent-child hierarchy metadata. This hierarchy enables downstream passage expansion and accurate citation reconstruction, directly reducing determination errors.
  • Iterative Context Expansion Loop: After initial retrieval, run a multi-step loop: re-rank passages with an LLM judge, expand each chunk using stored hierarchy to include adjacent sections, then have an LLM evaluate whether the added context remains on-scope. Repeat until a confidence threshold is met. This process added measurable accuracy gains beyond standard single-pass RAG retrieval.
  • Reinforcement Fine-Tuning with Human Feedback Signal: When tax experts correct a model determination, they leave structured explanations as feedback — essentially coaching a junior colleague. Pairing these corrections (ground truth answers plus expert reasoning) with known hard failures creates a high-signal RFT dataset. Sphere used this with OpenAI's alpha RFT program and deployed the resulting model to production with documented accuracy improvements.
  • RAG Remains Necessary for Citation-Sensitive Domains: Despite expanding context windows, agentic file-system search still misses relevant documents at a rate unacceptable for legal or compliance use cases. For domains requiring verifiable, source-linked citations — where errors carry legal or financial consequences — a purpose-built retrieval pipeline with controlled chunking and re-ranking outperforms general-purpose agent search as of current model capabilities.

What It Covers

Alex Bowcut, head of engineering at Sphere, explains how the company built TRAM, an AI system for sales tax compliance across global jurisdictions. The system combines semantic chunking, hybrid dense-sparse retrieval, and reinforcement fine-tuning to help tax experts work nearly two orders of magnitude faster than traditional manual methods.

Key Questions Answered

  • Hybrid Retrieval Architecture: Combining dense semantic embeddings (OpenAI models via Pinecone) with sparse TF-IDF-style full-text search measurably improves citation accuracy over dense-only retrieval. When sparse search was reintroduced after starting with dense alone, Sphere saw a clear accuracy increase on retrieval evals, particularly for jurisdiction-specific legal terminology that semantic embeddings alone failed to surface reliably.
  • Semantic Chunking Over Naive Splitting: Splitting legal documents by character count discards critical hierarchical context. Build document-type-specific parsers — separate ones for statutes, case law, and department bulletins — that cut at natural legal section boundaries while preserving parent-child hierarchy metadata. This hierarchy enables downstream passage expansion and accurate citation reconstruction, directly reducing determination errors.
  • Iterative Context Expansion Loop: After initial retrieval, run a multi-step loop: re-rank passages with an LLM judge, expand each chunk using stored hierarchy to include adjacent sections, then have an LLM evaluate whether the added context remains on-scope. Repeat until a confidence threshold is met. This process added measurable accuracy gains beyond standard single-pass RAG retrieval.
  • Reinforcement Fine-Tuning with Human Feedback Signal: When tax experts correct a model determination, they leave structured explanations as feedback — essentially coaching a junior colleague. Pairing these corrections (ground truth answers plus expert reasoning) with known hard failures creates a high-signal RFT dataset. Sphere used this with OpenAI's alpha RFT program and deployed the resulting model to production with documented accuracy improvements.
  • RAG Remains Necessary for Citation-Sensitive Domains: Despite expanding context windows, agentic file-system search still misses relevant documents at a rate unacceptable for legal or compliance use cases. For domains requiring verifiable, source-linked citations — where errors carry legal or financial consequences — a purpose-built retrieval pipeline with controlled chunking and re-ranking outperforms general-purpose agent search as of current model capabilities.

Notable Moment

Bowcut noted that LLM cost sensitivity is essentially irrelevant at Sphere because even the most expensive frontier models are dramatically cheaper than human tax lawyers — and since the AI output feeds a deterministic engine rather than serving live inference, latency pressure is also absent, enabling accuracy-first engineering decisions.

Know someone who'd find this useful?

Episode Transcript

As context windows get larger and larger, one question that keeps coming up is whether retrieval augmented generation or RAG is becoming obsolete. If models can ingest millions of tokens of context and reason over enormous collections of documents, why bother with retrieval at all? The answer, it turns out, depends a lot on the application. I recently sat down with Alex Bocut, head of engineering at Sphere, which builds AI systems for sales tax automation and compliance. Exactly the kind of domain where getting the right answer isn't enough. You also need to know where it came from. I asked them this simple question. What's your take on the whole rag is dead argument that some folks make? I think for some use cases, it's certainly true. I think for us and or at least for this particular problem, because we are so sensitive to accuracy and we're so sensitive to the exact right citation, as of today, I don't think, you know, agents are just searching over the file system, grepping over it. Is that a point where we could switch over and and not lose accuracy? I'm Sam Charrington, and this is the TwiML AI podcast. For over a decade, I've been exploring the ideas and innovations shaping the future of AI through conversations like this one that help you understand what's real, what's next, and what matters. Let's jump in. A little bit about Sphere briefly so so this makes a little more sense. Sphere Sphere is a a revenue based compliance company. So we help companies with all of their revenue based compliance needs. The main one of those is is sales tax, in The US and internationally. That's called VATGST. And the way you know, there there's other companies in this space, of course. There's some big companies that have been around for quite a while. Tax is not a new problem. It's it's not, unfortunately, for companies and for consumers, I suppose. So this isn't a new problem. The incumbents, they face a particular problem, which is in order to support, you know, every jurisdiction in The US, because every, of course, every US state has different rules. In some US states, even the cities have different rules. And then internationally, of of course, every country and potentially province has their own rules as well. And so the companies need, the incumbents need a way to understand how our products taxed in each of these different jurisdictions. And the way that, traditionally, they've done these sorts of things is they've hired these massive teams of essentially tax lawyers. They're tax experts. They'll call them tax content teams. What these tax lawyers are doing essentially is looking through the legislation in, you know, Alabama, for example, and understanding how does Alabama tax SaaS. And even more specifically than that, how does Alabama tax SaaS that maybe has an API connection and has servers that are hosted within the state itself. So it it gets …

Get the full transcript (8,664 words) + summary by email — free

One-time email with the complete transcript and AI summary of this episode. No account needed.

One email, no spam. We’ll also show you what SignalCast does.

Browse all The TWIML AI Podcast transcripts →

You just read a 3-minute summary of a 48-minute episode.

Get The TWIML AI Podcast summarized like this every Monday — plus up to 2 more podcasts, free.

Pick Your Podcasts — Free

Keep Reading

Books, tools, and gear mentioned in this episode

SignalCast may earn commission on purchases via these links.

Tools

  • by Pinecone

    Combining dense semantic embeddings (OpenAI models via Pinecone) with sparse TF-IDF-style full-text search measurably improves citation accuracy over dense-only retrieval.
  • by OpenAI

    Combining dense semantic embeddings (OpenAI models via Pinecone) with sparse TF-IDF-style full-text search measurably improves citation accuracy over dense-only retrieval.

company

  • by Sphere

    Alex Bowcut, head of engineering at Sphere, explains how the company built TRAM, an AI system for sales tax compliance across global jurisdictions.

More from The TWIML AI Podcast

We summarize every new episode. Want them in your inbox?

Similar Episodes

Related episodes from other podcasts

Explore Related Topics

This podcast is featured in Best AI Podcasts (2026) — ranked and reviewed with AI summaries.

Read this week's AI & Machine Learning Podcast Insights — cross-podcast analysis updated weekly.

You're clearly into The TWIML AI Podcast.

Every Monday, we deliver AI summaries of the latest episodes from The TWIML AI Podcast and 192+ other podcasts. Free for one show.

Start My Monday Digest

No credit card · Unsubscribe anytime