02 · Case study · Production AI

AI answers are easy. Trust is the engineering problem.

A retrieval-augmented assistant that answers tax and HR questions from real enterprise documents. Building the RAG pipeline was the easy part. The actual work was making the answers trustworthy enough to use.

A demo that retrieves documents is a weekend project. A system employees can trust with real questions is an engineering problem.

Context

Enterprise documents are messy, and a wrong answer about tax or HR policy is worse than no answer. A demo that retrieves documents is a weekend project. A system employees can trust with real questions is an engineering problem.

Constraint

The system could not ship on vibes. Retrieval quality and hallucination rates had to be measured and acceptable before anyone depended on it.

Architecture

  1. Documents
    Tax + HR policy corpus
  2. Chunking / indexing
    Semantic embeddings
    retrieval quality
  3. Azure AI Search
    Hybrid retrieval
  4. Re-ranking
    Precision before generation
    grounding
  5. LLM orchestration
    LangGraph pipeline
  6. Evaluation
    Hallucination checks pre-ship
    hallucination checks
  7. Answer
    Cited, grounded, measured
RAG pipeline — retrieval before generation

Decision

Semantic search with re-ranking over the document corpus, orchestrated as an explicit pipeline (LangGraph) so every step could be inspected. Before deployment, retrieval quality and hallucination rates were evaluated automatically. The system didn't ship until the numbers justified it.

Result

A production assistant grounded in the company's own documents, with measured retrieval quality and evaluated failure modes — deployed because the evaluation supported it, not because the demo looked good.

Lessons

  1. Retrieval quality is the product. The chat interface is the easy part.
  2. Evaluate before people depend on it, not after.
  3. A wrong answer about tax or HR policy is worse than no answer.

Stack

Azure AI Search · Azure OpenAI · Copilot Studio · LangGraph