Answers grounded in the documents you approve

Retrieval-augmented generation, or RAG, supplies relevant source material to a language model when a question arrives. It is a practical starting point for policies, operating procedures, product manuals and internal knowledge. The answer should lead a user back to the relevant source, version and page.

We design the system around the people using it. An operations assistant may need the latest SOP; a partner may need a matter-specific collection; a support agent may need current product information. A single unrestricted index is rarely the right answer.

The document lifecycle is part of the product

Ingestion starts with authorised sources and a record of ownership. We extract readable text, preserve useful headings and tables, and retain page references. Scans need an OCR quality check. Chunking and retrieval are evaluated with real questions before increasing the volume.

A connector must handle changed permissions, renamed files, replaced versions and deletions. We agree a freshness target and an access-revocation target. A document removed upstream must not remain available through a stale index, answer cache or old conversation shared with the wrong person.

Permissions before generation

  • Identity is checked before a query is run.
  • Retrieval filters the document set to what that person may access.
  • Citations and document previews apply the same permission rules.
  • Caches and conversation sharing respect the same boundary.
  • Revocation, deletion and attempts to request another team’s documents are included in acceptance testing.

Instructions to the model are not a substitute for access control. A sentence in a system prompt cannot reliably protect a document that was already placed in the model’s context.

What we measure

The acceptance set includes normal questions, ambiguous questions, outdated information, absent answers and questions across several documents. We check whether the answer is supported, whether the citation resolves to the right passage and whether the system declines when the evidence is insufficient.

We also test document instructions that try to redirect the assistant or invoke a tool. Retrieved material is treated as data, and any action outside reading has its own permissions and approval. A useful knowledge assistant need not have permission to modify the systems it searches.

Start with one collection

A good first project is a bounded collection with an accountable owner and repeated staff questions. Bring sample documents, a list of real questions and examples of what should remain inaccessible. We will scope the connector, answer interface, evaluation and operating procedures. Compare RAG with fine-tuning before committing to a training project.