Production RAG systems · 3 years in production

RAG that stays accurate after launch

Three years of production RAG: hybrid retrieval, grounding with citations, and evaluation that catches a quality drop before your users do.

70%
less manual content effort at The Branding Club
3 yrs
RAG in production
100K
SKUs per batch through the generation layer
9+ yrs
in software engineering

What makes RAG production-grade?

Production-grade RAG combines keyword and dense vector retrieval, re-ranks the results, grounds every answer in retrieved sources with citations, and is measured continuously for retrieval quality, hallucination rate, latency and cost. The retrieval design and the evaluation loop matter more than the choice of model.

The problem

Where teams get stuck.

  • Answers were good in testing and degraded as the document set grew.
  • Exact terms such as part numbers and names are missed by embedding search.
  • There is no measurement, so every prompt change is a guess.
  • Token cost per answer is higher than the value of the answer.
The approach

How I build it.

pgvectorPineconeWeaviateBM25 + dense hybrid searchLangChainLlamaIndexLangSmithHelicone
  1. Hybrid retrieval

    BM25 for exact terms and dense vectors for meaning, fused and re-ranked.

  2. Structure before chunks

    Documents are split along their real structure and enriched with metadata, and linked to a knowledge graph where relationships matter.

  3. Grounding and citations

    The model answers only from retrieved context and returns the sources. When the context is insufficient it says so.

  4. Evaluation as a release gate

    A fixed question set scores retrieval and answers on every change, so regressions block the release.

  5. Cost per answer

    Caching, context trimming and model routing keep spend proportional to value.

Proof

Where I have done it.

At The Branding Club I designed the RAG and LLM content and SKU-generation layer on a product taxonomy using GPT-4 and Claude, with LangSmith and Helicone evaluations for quality, hallucinations and token cost.

Read the Metis Labs case study
Questions

Asked often.

Which vector database should we use?

If you already run PostgreSQL, start with pgvector: one less service to operate and pay for, and it handles most workloads. Dedicated stores such as Pinecone or Weaviate earn their place at larger scale or when you need their specific filtering and hybrid-search features.

How do you measure RAG quality?

With an evaluation set of real questions and expected answers. Retrieval is scored on whether the right sources were found, and answers on faithfulness to those sources, correctness and completeness. The scores are tracked over time alongside latency and cost.

Ways to engage

Start with one of these.

Reply within 24 hours

Need this on your product? Let’s talk.

The first call is free and takes 30 minutes. You leave with a scope outline and a price range, whether or not we work together.

Or build a project brief in one minute