Vikram leads engineering at a UK legaltech. They shipped a contract-review chatbot to 14 law firms. OpenAI plus Pinecone. It looked great in the demo. Then a senior associate at a Magic Circle firm asked it about an indemnity clause.
Production RAG for UK SaaS, legaltech and healthtech teams — hybrid retrieval (pgvector + BM25 + reranker), corpus-tuned chunking, citation-gated generation and eval suites with hallucination detection. Nine systems shipped since 2023; every answer cites the source it actually came from.
A notebook RAG with cosine similarity and no eval is a beautiful demo that becomes a customer complaint in a fortnight. We build the hybrid retrieval, the citation gate, and the eval suite that make retrieval augmented generation production-grade.
“Hallucination rate fell from 7.2% to 0.4%. The pilot was reinstated and the SRA query closed.”
UK RAG systems shipped to production since 2023, zero cross-tenant leaks.
Citation accuracy on held eval across production traffic.
P95 retrieval and generation latency across nine systems.
Vikram leads engineering at a UK legaltech. They shipped a contract-review chatbot to 14 law firms. OpenAI plus Pinecone. It looked great in the demo. Then a senior associate at a Magic Circle firm asked it about an indemnity clause.
The chatbot fabricated a clause that didn’t exist, cited section 7.4 (which was about something else entirely), and sounded confident. The partner saw it. The pilot got pulled. An SRA query landed. The architecture, not the model, was the problem: cosine-only retrieval, 512-token chunks, no citation gate, no eval.
This page is for the founder or data-lead who decided the RAG system is shipping to production, and wants it to land without taking the business down. The next sections show the discipline that gets it there.
Each one decides whether your retrieval augmented generation survives the next customer complaint, the next reindex bill, or the next compliance review.
“The chatbot made up a clause. The partner saw it. The pilot got pulled.”
Citation gate plus retrieval-anchored generation. The model refuses to answer without a cited chunk. Hallucination rate falls below 1% on production traffic.
“The retrieved chunk was related, but not the right one. The answer was confidently wrong.”
Hybrid retrieval plus reranker. BM25 plus semantic plus Cohere or Voyage reranker. Top-1 accuracy lifts 30 to 50%.
“We chunked at 512 tokens. It cut sentences in half. Retrieval missed answers.”
Corpus-tuned semantic chunking. Semantic-unit chunking. Sentences, paragraphs and sections preserved. Retrieval accuracy lifts 20 to 40%.
“We have no held eval. We ship blind, and the customer finds the regression.”
Golden Q&A plus adversarial plus CI gate. 240 golden Q&A pairs plus adversarial prompts. A regression fails the build. The customer never finds it first.
“Tenant A asked a question and got Tenant B’s data in the answer.”
Tenant pin at retrieval plus RLS. Tenant pin at the vector store. Postgres RLS on pgvector. Cross-tenant retrieval is architecturally impossible.
“The model cited section 7.4 but quoted from 12.1. The customer caught it.”
Citation verification at generation. Every cited span is verified against the retrieved chunk. A mismatch means refuse to answer.
“The embedding bill went from £200 to £4,800. The corpus reindexed daily for no reason.”
Incremental indexing plus embedding cache. Incremental indexing. Embedding cache. Reindex only on document change. The bill stabilises.
“A customer says the answer was wrong, and we can’t reproduce it.”
Per-query trace plus retrieval log. Every query logs retrieved chunks, reranker scores, model and version, and the answer. Reproducible from logs.
LangGraph for orchestration, hybrid retrieval over pgvector and BM25, a reranker on top, and the AWS layer that keeps the unit economics working at scale.
The discipline that keeps a RAG system defensible in a Series B diligence call, and an SRA query.
Semantic plus BM25 plus reranker. Not just cosine similarity. Chunking tuned to your corpus.
Generation refuses to answer without a retrieved citation. Hallucination is architecturally constrained.
Golden Q&A pairs plus adversarial prompts. Regression gated in CI before a customer finds it.
Multi-tenant from day one. Tenant pin at the retrieval layer. Cross-tenant leak made impossible.
We rebuilt the contract-review RAG across 14 law firms in twelve weeks: pgvector plus BM25 plus Cohere reranker, a citation gate, and an eval suite of 240 golden Q&A pairs plus adversarial prompts.
Pick the shape that fits and Mohit will send your real number inside 24 hours.
Two senior engineers read your estate and brief, then write the plan. A 30-page brief, six ADRs, a risk matrix, a fixed-price quote.
8 to 14 weeks of fixed-scope shipping. Retrieval, generation, citation gate, eval, observability, multi-tenant scope, handover.
One day a week of senior engineering for 3 to 6 months. Performance work, observability, a new surface, your team gets unblocked.
“Hallucination rate fell from 7.2% to 0.4%. The pilot was reinstated and the SRA query closed.”
— Vikram, Head of Engineering, UK LegalTechPain-first, soft-second.
pgvector for under 5M vectors plus tenant-pinned multi-tenant: it lives in your Postgres, so RLS gives you cross-tenant isolation for free. Pinecone or Qdrant beyond that scale. The decision goes in an ADR with a migration path, so you’re never locked to the wrong call.
Claude Sonnet 4.5 for long-context legal or clinical retrieval (200K context). GPT-5 for tool-use-heavy and cost-sensitive paths. We route per query type behind a gateway, so a price hike or a deprecation is a config change, not a rewrite.
A citation gate at generation: no retrieved chunk, no answer. Hybrid retrieval plus a reranker so the right chunk is in context. An eval suite with adversarial prompts gated in CI. Hallucination rate stays below 1% on production traffic, and we can prove it from the held eval.
Tenant pin at the vector store, plus Postgres RLS on pgvector, pgTAP-tested. Cross-tenant retrieval is architecturally impossible, not policy-impossible. Nine systems in production, zero cross-tenant leaks.
An embedding cache plus incremental indexing keeps the bill flat. A typical 14-firm legal RAG runs £180 to £450 a month on Anthropic plus AWS. A cost report ships at handover, so you can model it before you scale.
30-day walk-away both ways. Milestone billing 25/25/25/25. UK VAT registered, listed on Companies House, shipping since 2019. You’re never more than four weeks at risk of paying for nothing.
Every RAG architecture development project has two senior engineers paired, not one. Every decision goes into an ADR the same day. Mohit reviews every PR. Two handovers in seven years, both inside 48 hours.
Yes, with 14 days’ notice. Engineers move to other projects. Spend pauses. Resume with 14 days’ notice. No cancellation fee. We’ve done it six times in 2025.

rag architecture development, in context — the dashboards, flows and components your team actually ships, reviews and maintains.
Send a 5-line brief: your corpus, query volume, tenant model, and current hallucination rate. Mohit replies inside 24 hours: a clear yes, a clear no, or the one question that decides it.
Yes, no, or the deciding question. Straight to your inbox.
We read the estate and scope the eval set with your team.
Hybrid retrieval, citation gate, eval suite. Clean enough for an SRA review.