Skip to main content
All services

RAG development and rescue

Build a RAG system, or rescue the one your team doesn’t trust

Retrieval-augmented generation (RAG) connects a language model to your own documents, so answers are grounded in your approved sources, with citations a reader can check. I build new RAG systems for small and mid-sized US companies and diagnose existing ones: a prototype that worked on a handful of documents and stalled on the real corpus, or a system nobody will put in front of users. Either way the work rests on an evaluation set built from real questions, a configuration chosen by measurement, permissions that follow your source systems, and a citation on every answer. The assistant is also tested on deliberately unanswerable questions so it declines rather than guesses, and I report how often it gets both right.

If your corpus is small enough to read in an afternoon, or your questions are mostly about what the model already knows, RAG is the wrong tool, and I’ll tell you that in the first conversation.

Request a Free Consultation

No obligation. Replies typically within one business day.

Sound familiar?

Where RAG projects go wrong

Ungrounded AI makes things up

A general chatbot answers from training data. A tool grounded on your documents is better, and still has to be measured on your questions: which source it picked, whether the citation supports the answer, and what it does when the documents don’t cover it.

Search that doesn’t find

Keyword search across wikis, PDFs and drives misses answers that are phrased differently from the question.

A demo that stalled

A proof of concept worked on a handful of documents. Accuracy fell apart on the real corpus, and nobody knows which setting to change.

No way to measure quality

Without an evaluation set, every configuration change is a gamble. You can’t tell whether a change helped or quietly made answers worse.

How I approach it

How a build or a rescue runs

  1. Ground it in your sources, with permissions

    Together we identify the authoritative documents and the access rules behind them. The index carries those rules, so a user only retrieves what their source systems would let them open.

  2. Benchmark the configuration instead of guessing it

    Chunking, retrieval technique, reranking and prompt design are tested against an evaluation set built from real questions your team asks, plus questions the documents cannot answer. My published RAG benchmark scored 14,545 answers across 40 configurations on one public expert-QA dataset; reranking, a commonly recommended step, scored lower on that dataset in both configuration rounds, by small margins. Your documents get the same sweep, because settings that won there are not a general rule.

  3. Make every answer auditable

    Answers cite the passages they came from, and the system declines when the retrieved text doesn’t support an answer. Both behaviors are scored: how often a supported answer is correct, and how often an unanswerable question gets a decline instead of a guess.

  4. Deploy where your risk profile allows

    Open-weight models on your own infrastructure, a private-cloud account, or a managed API. The trade-offs in cost, latency, data handling and model quality are written down, and the choice stays yours.

What you get

What the engagement delivers

  • A working RAG assistant integrated with your existing tools (Slack, Teams, help desk, intranet).
  • An evaluation set and a measured baseline you can re-run after any change.
  • Citations and activity logging for every answer and every decline.
  • For a rescue: a written diagnosis with measured effect sizes and a fix, rebuild or walk-away verdict.
  • Implementation notes, handoff documentation and training for your team.

If you are inheriting a prototype

A rescue begins with a diagnosis. In order:

  • Reproduce the current behavior on an evaluation set built from your real questions.
  • Change one thing at a time (chunking, retrieval, reranking, prompts, model) and measure the effect of each.
  • Report the effect sizes and a verdict: fix, rebuild or walk away.
  • Only then change the production system, with the evaluation set as the regression test.

Backed by published testing

The studies behind the method

Benchmark

RAG Optimization Benchmark: How 14,545 Scored Answers Picked One Configuration

Four rounds of systematic testing, 14,545 scored answers across 40 configurations on a public expert-QA benchmark, narrowed to one preferred candidate, and found that reranking, a commonly recommended step, scored lower on this dataset in both configuration rounds; the margins were small and the study states exactly what the finding rests on.

answers scored on 200 questions; 1,598 also LLM-judgedScope of the benchmark
14,545
configurations testedScope of the benchmark
40
helpfulness over the starting setup (1 to 5, LLM-judged)Measured in a controlled test
+0.12

Engagement rehearsal

From 82% to 95% on One GPU: An Engagement Rehearsal on a Synthetic Benefits Corpus

A full engagement rehearsal on a synthetic benefits-administration corpus: an assessment measured the baseline and ruled out the expensive fixes with data, then structured retrieval for tabular documents and a 14B open-weight model on the same single GPU took answer accuracy from 82.2% to 95.0% on the fixed 180-question test (peak build), with a deterministic auto-accept path that answered 13 of 43 tabular lookups with zero errors.

peak-build answer accuracy, same GPU (171/180, synthetic replica)Measured in a controlled test
82% → 95%
tabular lookups auto-accepted with zero errors (deterministic path)Measured in a controlled test
13/43
paired gain on the same 180 questions (27 fixed, 4 regressed)Measured in a controlled test
+12.8 pp

Fit check: text-based documentation works best. Scanned PDFs, forms, invoices and receipts can be handled with an AI extraction step (see the OCR benchmark). Knowledge that lives in diagrams, video or people’s heads is harder, and I’ll say so during discovery.

How an engagement runs

  1. Free consultation and discovery. You describe the workflow; I tell you whether AI is the right tool, and say so if it isn’t.

  2. Scoped assessment or fixed written proposal. Scope, price and success criteria are agreed before any build starts. See what the scoped assessment covers.

  3. Pilot on one workflow, typically 8–10 weeks, measured against a baseline before anything goes hands-off.

  4. Phased rollout, with a stop option after any milestone.

What I’ll need from you

  • Source documents and the access rules that govern them.
  • For a rescue: the prototype’s code, configuration, prompts, and any logs or past evaluation results.
  • 50 to 300 real questions with correct answers, plus some the documents cannot answer.
  • A subject-matter reviewer who can grade answers.
  • An IT contact for integration and permissions.
  • For self-hosting, a GPU server or cloud account sized during discovery.

Questions

Questions from technical owners

What does a “rescue” involve, and how long does the diagnosis take?

A rescue starts by reproducing the prototype’s behavior on an evaluation set built from your real questions, then changing one variable at a time (chunking, retrieval, reranking, prompts, model) and measuring the effect of each. The output is a written diagnosis with effect sizes and a verdict: fix, rebuild or walk away. It runs as an existing-prototype teardown, typically 2 to 3 weeks; the exact scope depends on the corpus and on what the prototype already logs, and is set in the free consultation.

Which vector databases and frameworks do you work with?

pgvector, Qdrant and Neo4j on the storage side; LangChain for orchestration. If your prototype uses something else, the diagnosis still applies, because the evaluation set and the measurement method don’t depend on the framework. I’ll say up front if a stack is one I would not take on.

Is reranking worth adding?

It depends on the data, which is the reason to measure. In my published benchmark, reranking scored lower on that dataset, by small margins; in two earlier internal test rounds on other public datasets it had helped. It stays in the configuration sweep for every build and is kept only if it wins on your questions.

How are permissions enforced?

At retrieval time. Each indexed chunk carries the access rule of the document it came from, and a query only searches the chunks that user may open, so a passage outside their permissions is excluded before the model sees it. Where the source system exposes its permissions, they are mirrored, not maintained by hand; where it does not, together we define the groups, and your IT contact signs off on the mapping before launch.

Can the evaluation set be reused after handoff?

Yes, that is its purpose. It is a plain file of questions, correct answers and unanswerable items, with a script that scores any configuration against it. Your team re-runs it after a model upgrade, a re-index or a prompt change and compares the numbers with the baseline. You own it along with the rest of the deliverables.

When is RAG the wrong tool?

When the corpus is small enough that a person can read it in an afternoon, when the questions need reasoning across many documents rather than finding a passage, or when the knowledge lives in diagrams, video or people’s heads. A structured database query, an extraction step, or better documentation may fit better, and I’ll say which during discovery.

  • Insured before any engagement starts: professional liability (E&O), cyber and general liability.
  • You own the deliverables built for your environment.
  • Stop after any milestone; no lock-in.
  • Replies typically within one business day.

Find out what this would look like for your team

The consultation and initial discovery are free. You get a preliminary recommendation whether or not we work together.

Request a Free Consultation