Skip to content
RAG architecture1 min read

Scaling enterprise RAG: lessons from 10,000+ pages

Recursive chunking, metadata filters, and an eval harness built alongside the pipeline. What actually mattered in a support RAG system serving 100+ agents.

A demo RAG app takes an afternoon. A system that searches 10,000+ pages of support documentation for 100+ agents, with median retrieval under two seconds, takes more care. I built one at Innovcentric, and three decisions did most of the work.

Chunk on structure, not length

Fixed-size windows cut sentences and ideas in half before anything gets embedded. I switched to recursive chunking, which splits on headings, paragraphs and lists first, in 512-token windows with 50 tokens of overlap. Before settling on it I compared four chunking strategies and three embedding models. Chunking had a bigger effect on retrieval quality than I expected.

Filter before you search

Semantic search will happily return text that sounds right from the wrong place. A question about billing policy can pull another department's billing policy because the wording is close. So every query filters on metadata first (document type, recency, department) and only then runs vector search in ChromaDB. The model never sees the out-of-bounds chunk.

Build the evals with the pipeline

I scored faithfulness, relevance and hallucination with RAGAS on every change and traced requests in LangSmith. That's how we cut factual errors by about 60%, and how we knew it was about 60%. If I built it again, the harness would exist before the first chunk was embedded.