Problem
Uber's on-call copilot Genie answers engineering security and privacy questions in Slack from internal policy documents. On a golden set of 100+ questions written by subject matter experts (SMEs), checked against 40+ policy PDFs, many answers were incomplete, wrong, or missed the right detail. SMEs judged the quality too low for a wider rollout. Each experiment needed weeks of SME review, and prompt and retrieval tweaks gave small gains that plateaued.
Example from the article: policy tables span more than five pages with nested cells. Standard PDF loaders turn the cells into isolated text, losing the row and column context needed to answer.
Solution in brief
Fix the data first: a custom loader and an LLM turn tables into markdown with summaries and keywords, and chunking keeps each table whole. Then add small LLM agents before and after retrieval and a BM25 retriever next to vector search. An LLM-as-judge checks every change against SME answers in minutes.
Questions this case answers
- How to improve answer accuracy of a retrieval-augmented assistant when source documents contain complex tables and near-duplicate passages that plain vector search confuses
- How to speed up iteration on an LLM assistant when every quality check needs scarce expert time
- How to raise the answer accuracy of a RAG chatbot over policy documents with long nested tables
- How to stop a RAG pipeline from retrieving the wrong policy document when documents differ only in subtle conditions
Tools and methods
- Custom Google Docs loader — extracts paragraphs, tables and headings via the Google Python API
- LLM table enrichment, table-aware chunking — markdown tables with summary and keywords, kept in one chunk
- Query Optimizer, Source Identifier, Post-Processor agents — rewrite the query, pick documents, clean the context
- BM25 retriever — runs next to vector search on enriched metadata
- LLM-as-judge — scores answers 0-5 against SME answers
- LangChain, LangGraph — build and orchestrate the agents
Google or a one-time email code. No password.