Support RAG at Innovcentric
Retrieval and evals for a 100+ agent support team
- Situation
- A customer-support team needed answers it could trust mid-call, from 10,000+ pages of docs.
- Task
- Make retrieval fast, and prove it right with numbers instead of anecdotes.
- Action
- I benchmarked chunking and embeddings, filtered by metadata, and scored every response with RAGAS and LangSmith.
- Result
- Agents got sourced answers fast, and factual errors fell about 60% on the eval harness.
Agents answer in the middle of a call from sourced documentation, and the harness scores every response.
How I built it
Chunked recursively, in 512-token windows with 50 tokens of overlap, so answers kept their surrounding context.
Benchmarked 4 chunking strategies and 3 embedding models before picking one.
Indexed in ChromaDB behind FastAPI, and filtered by metadata (document type, recency, department) before vector search.
Scored every response with RAGAS for faithfulness, relevance and hallucination, and traced it with LangSmith.
Versioned 50+ prompts and watched for drift through a model migration.
Why these choices
Recursive chunking
Splitting on headings, paragraphs and lists keeps each chunk about one thing. Retrieval got more relevant than with fixed-size windows.
RAGAS and LangSmith from the start
Eyeballing answers doesn't scale. RAGAS gave us numbers for faithfulness and relevance, and LangSmith let us trace a bad answer back to the step that caused it.
Metadata filters next to semantic search
Semantic search can return something that sounds right from the wrong category. Filtering by document type, recency and department kept answers inside the right boundaries.
What shipped
- Agents got answers fast: sub-2-second median retrieval for 100+ concurrent agents
- About 60% fewer factual errors, measured by the eval harness
- Quality held flat through a model migration, across 50+ versioned prompts
- Shipped as FastAPI services via Docker and GitHub Actions CI/CD
What I learned
- Build the evaluation harness with the pipeline, not after it.
- Chunking decides more of retrieval quality than it gets credit for.
- In enterprise support, guardrails are part of the product.