Need an App or Website? Message us now! Contact us →
Retrieval and generation

Answers grounded in your documents, with the evidence attached.

Retrieval augmented generation is simple to demonstrate and difficult to make reliable. The demo works because the question matches a document neatly. Production is where the parsing mangled the tables, the chunking split the answer across two pieces, the retrieval found the wrong version, and the model produced something fluent and wrong.

The engineering is in those unglamorous layers: how documents are parsed, how they are chunked, what metadata rides along, how retrieval combines keyword and semantic matching, how results are reranked, when the system should decline to answer, and how any of it is measured.

What we set up

What you get, in writing.

Who this is for
  • Companies whose answers exist, in a thousand pages nobody can search
  • Product teams adding a knowledge feature who have found the demo and production gap
  • Support organisations answering the same questions from documents of varying accuracy
  • Engineering teams whose first retrieval attempt returns confidently wrong passages
01

Ingestion that handles your documents

Parsing and OCR tuned to what you actually have, including scanned pages, tables and the PDFs that defeat generic extractors.

02

Chunking and metadata design

How documents are split so answers are not cut in half, and what travels with each chunk: source, version, date, owner, permission level.

03

Hybrid retrieval with reranking

Keyword and semantic retrieval combined, then reranked, because either one alone fails on a predictable class of question.

04

Grounded answers with citations

Every answer carries the passages it came from, so a reader can check it, and abstention when the retrieved material does not support an answer.

05

An evaluation set

Real questions with correct answers and the passages that contain them, built with your experts. This is what makes improvement measurable rather than anecdotal.

06

Maintenance procedures

How documents are updated and deleted, how the index stays current, what to monitor, and how to evaluate a change before shipping it.

How it goes
  1. 01

    Audit the corpus

    What the documents actually are, how clean, how current, who owns them and who may read them.

  2. 02

    Build the evaluation set

    Real questions with correct answers, agreed with your experts, before any tuning begins.

  3. 03

    Build ingestion and retrieval

    Parsing, chunking, metadata, hybrid retrieval and reranking, measured against the set at each change.

  4. 04

    Integrate and harden

    The application, permission filtering, abstention, citations and adversarial source testing.

  5. 05

    Operate

    Update and deletion procedures, monitoring, latency and cost tracking, and a process for evaluating changes.

Choosing an approach

Retrieval, fine tuning, or both

These solve different problems and get confused constantly. Retrieval changes what the model knows. Fine tuning changes how it behaves.

Retrieval only

The model answers from passages fetched at query time. Content updates instantly, answers cite sources.

When: The need is factual accuracy over a changing corpus. This is most cases.

Retrieval with a reranker

A second stage reorders candidates by true relevance before the model sees them.

When: Recall is fine but the right passage is not in the top few. Usually the highest value single improvement.

Fine tuning for behaviour

Adapting the model's style, format or task performance, not its knowledge.

When: Output structure or tone must be consistent, and prompting has stopped being enough.

Both

Retrieval for the facts, fine tuning for the form.

When: A mature system where the retrieval is already measured and the remaining gap is behavioural.

See how it works

A retrieval inspector: the passages behind the answer

Fictional sample data, running in your browser. Nothing is sent anywhere and nothing about your business is inspected.

A retrieval inspector: the passages behind the answer

Sample data
Who is asking
Sample question
Answer

Retrieval returned nothing above the relevance threshold, so the system declines rather than generating from general knowledge. Abstention is a feature here, and it is tested like any other.

2 sources withheld at this permission level. The assistant says so rather than guessing around it.

A fictional equipment manual. The third question has no supporting passage, which is where a well built system abstains and a badly built one invents a procedure.

This runs entirely in your browser on invented sample data. It has not looked at your business, your accounts or your systems, and nothing you do here is sent anywhere.

Measured against an evaluation set we build with you. Evaluate a RAG use case

In practice

What this looks like in your industry.

Possible engagements rather than client case studies, written so you can see whether yours looks like one of them.

Technical manuals

An engineer asks a question in the field and gets the procedure with the page it came from.

Data and integrations
Manuals, service bulletins, revision history.
The constraint
Version matters absolutely. An answer from a superseded revision is worse than no answer.
What you receive
Version aware ingestion, retrieval that prefers current revisions, and citations that name the revision.

Support knowledge

Agents and customers get the same grounded answer, with the article it came from.

Data and integrations
Help centre, internal notes, past resolved tickets.
The constraint
Internal notes must never surface to a customer. Permission filtering happens before retrieval, not after.
What you receive
Permission aware retrieval, two answer surfaces from one index, and an abstention path.

Product documentation

A developer asks how to do something and gets the current answer with the code sample that matches their version.

Data and integrations
Docs, changelogs, release notes, code samples.
The constraint
Code samples from the wrong version are actively harmful. Version metadata is part of the chunk.
What you receive
Versioned ingestion, retrieval scoped by version, and an evaluation set of real developer questions.

Engineering research

An engineer asks what was tried before and gets the decision, the result and the document.

Data and integrations
Reports, test results, decision records, often scanned.
The constraint
Tables and figures carry the content. Parsing that loses table structure loses the answer.
What you receive
Table aware parsing, a measured retrieval pipeline and a cited answer interface.
Scope and cost

What moves the number.

We quote after scoping rather than before. These are the things that change the answer, so you can judge roughly where you sit before the call.

What drives scope and cost

  • Corpus size and, far more importantly, document quality and format
  • Whether permissions must be enforced per document or per passage
  • How fresh the index has to be: nightly is simple, near immediate is not
  • Latency budget, since reranking and multiple retrieval passes cost time
  • Whether answers must cite a passage or a document is sufficient

What we need from you

  • Access to the corpus and a decision on which sources are authoritative
  • Experts who will help build the evaluation set, which is a few hours that pays for itself many times
  • A decision on what the system should do when it does not know, which is a policy choice

Ownership and what we will not claim

The ingestion pipeline, retrieval code, evaluation sets and application are yours, running in your environment. We do not promise the elimination of hallucination, because nobody can. We reduce it by grounding answers, citing passages and making the system abstain, and we measure what remains so you know the real number.

Questions

Asked before the first call.

Call650-458-7993

It reduces it substantially and it does not eliminate it, and anyone promising elimination is overselling. Grounding answers in retrieved passages, showing citations so a reader can check, and designing the system to abstain when retrieval comes back weak are the three things that move the number most. We measure what remains with an evaluation set so you know the actual rate rather than a feeling.

Retrieval changes what the model knows at the moment of answering; fine tuning changes how it behaves. If your content updates, use retrieval, because retraining a model every time a policy changes is not a plan. Fine tuning is for consistent output format or tone when prompting has stopped being sufficient. Plenty of mature systems use both, for different jobs.

It is the problem, and it is also normal. Scanned pages, inconsistent formats, tables that extract as noise, and six versions of the same policy. We audit the corpus first and tell you what has to be fixed before indexing versus what we can handle in parsing. Indexing a mess produces fluent answers from the wrong document, which is worse than no system at all.

Filtering happens before retrieval, not after generation. Each chunk carries its permission metadata, the query is scoped to what the asker may see, and restricted passages are never put in front of the model. We test this explicitly by asking as a lower privileged user for content that exists only in restricted documents, and checking that nothing leaks through a paraphrase.

An evaluation set built with your experts: real questions, correct answers, and the passages that contain them. We measure retrieval separately from answer quality, because they fail differently and conflating them hides the real problem. Every change is measured against the set before it ships, which turns tuning from an opinion into an experiment.

We test for it. A document containing text addressed to the system rather than to a reader should be treated as content, not as instruction. We include adversarial examples in the evaluation set, and the application is built so that retrieved text cannot change what the system is permitted to do.

Why bring this to us

The whole stack sits here

Nobody has to explain the architecture to a second vendor. The engineer who wrote the firmware sits near the one who wrote the API.

We ship, publicly

Apps under our own Apple developer account since 2014 and a peer-reviewed clinical study crediting our code. Both are checkable.

You keep everything

Mutual NDA before any code, schematic, or patent review. You own 100% of the intellectual property in what we build.

Start with generative AI & enterprise RAG.

Tell us where the project is today. You will hear back from someone who has built this before, within one business day.

650-458-7993

What are we building?

Under NDA

Everything is optional except your name and email. The more you tell us, the better the first reply.

What you need

Mutual NDA before any code, schematic, or patent review. You keep 100% of the intellectual property in everything we build for you.

Hi Dev