Separate knowledge access from model behaviour

A foundation model has learned statistical patterns from training. It is not a live copy of your company documents and does not inherently know which employee may read a contract. When an assistant answers a policy question incorrectly, first determine whether it lacked the right evidence, misinterpreted available evidence or produced the wrong response format. Those failures call for different interventions. Buying more model capacity does not identify the cause.

Prompting may be sufficient when the task is narrow and the approved reference material fits comfortably in context. Retrieval augmented generation, or RAG, selects relevant external evidence at request time. Fine-tuning changes model behaviour through additional training examples. It may improve consistent formatting, terminology or task execution, but it is a poor primary mechanism for distributing frequently revised confidential facts with individual access controls. Neither approach automatically eliminates hallucinations.

RAG and fine-tuning address different parts of the system.

On a narrow screen, scroll the table horizontally to compare all columns.

RAG and fine-tuning address different parts of the system.
DecisionRAGFine-tuning
Main leverRetrieve evidence for this requestAdapt learned response behaviour
FreshnessRefresh or remove indexed documentsRetraining does not provide a live source of truth
PermissionsEnforce access during retrieval and response assemblyTraining is not a per-user access-control boundary
MaintenanceParsing, indexing and retrieval evaluationTraining data, evaluation and model version management
Can combine?Provide current authorized evidenceImprove how that evidence is used or formatted

Build an ingestion pipeline before adding chat

In a hypothetical equipment supplier, an internal assistant answers questions about maintenance procedures and service agreements. Documents arrive from approved repositories with an owner, version, effective date and permission scope. Parse the original layout carefully: a table of warranty exclusions loses meaning if its headings disappear. Quarantine documents that cannot be parsed, and track ingestion failures so an apparently successful sync does not conceal missing evidence.

Chunk around meaningful boundaries such as a procedure or contract clause. A fixed character count is a starting constraint, not an information model. Retain headings, source offsets and document IDs so passages can be traced back to the original. Overlap can preserve context, but excessive duplication inflates storage and fills the prompt with near-identical text. Test representative questions before choosing chunk size, and regenerate affected embeddings when the underlying content or embedding model changes.

Retrieve meaning and exact identifiers

Embeddings represent text in a numerical space where similarity can help locate conceptually related material. A vector database or vector-capable search service stores and searches those representations. Similarity does not establish truth or authority. A question about cancellation may need the active agreement, not a semantically similar obsolete draft. Filter candidates using document status, product, language and effective version as well as their relevance scores.

Keyword retrieval remains useful for exact part numbers, policy IDs and unusual names. Hybrid search combines lexical and vector candidates; a reranker can then order a limited candidate set using a more expensive relevance assessment. Evaluate each addition against a simple baseline. More retrieval stages create latency and operational complexity, and a high-ranking wrong document can produce a confident but unsupported answer. Preserve the ability to explain which candidates were selected.

Illustrative enterprise knowledge architecture, with authorization on the retrieval path.
  1. Approved documents and access metadata
  2. Parse, chunk and version
  3. Keyword and vector indexes
  4. Authenticated query and permission filter
  5. Retrieve and rerank permitted passages
  6. Generate answer with verifiable citations

Make evidence inspectable

Send a bounded set of relevant passages to the model with stable source identifiers. Ask it to distinguish supported conclusions from missing information and provide references to the passages it used. Build citation links from trusted retrieval metadata rather than letting the model invent arbitrary URLs. Then check whether each cited passage actually supports the associated claim. A citation that opens successfully can still be irrelevant to the sentence beside it.

For the supplier example, an answer should name the applicable agreement version and point to the maintenance clause. If two permitted documents conflict, escalate to the document owner rather than choosing the more convenient answer. Maintain a no-answer path when the approved corpus lacks evidence. Keep source documents as untrusted data: text saying to ignore prior instructions must not change application permissions or grant access to other tools.

Enforce access before information reaches the model

Tenant isolation must apply to document ingestion, retrieval, caches, conversation history and diagnostics. Derive the tenant and user from the authenticated session. Enforce permission filters in the trusted retrieval service and verify them again before response assembly where necessary. Do not fetch another tenant’s passages and expect a prompt to hide them. Separate indexes can simplify some isolation boundaries; shared indexes require careful enforcement and negative tests.

Plan revocation and deletion explicitly. If an employee loses access, old conversation context and cached answers may still reveal the document. Include permission scope and source versions in cache keys, invalidate affected entries and expire retained context. Decide whether the model provider and each storage service may receive the data under the organization’s requirements. A private interface alone does not establish private processing or acceptable retention.

Evaluate retrieval separately from generation

Create a reviewed question set with expected source passages, acceptable answers and examples that should be refused. Measure retrieval coverage at a chosen candidate limit, answer correctness, citation support and unauthorized disclosure. Include absent answers, ambiguous terminology, stale policies and cross-tenant questions. A correct answer produced from the wrong evidence is still a warning: the system may be relying on model memory instead of the approved corpus.

When fine-tuning becomes a useful experiment

Consider fine-tuning after a stable baseline shows a recurring behavioural problem that prompting and examples do not address adequately. Train on permitted, representative examples and evaluate on held-out cases. For the supplier, adaptation might improve consistent extraction of service obligations while RAG supplies the active agreement. Fine-tuning does not replace authorization, and removing a training example is not equivalent to deleting a retrievable document. Plan model retirement and data governance accordingly.

Choose the smallest system that answers the real question

Start with prompting and a compact approved reference set. Add retrieval when knowledge volume, freshness or source traceability demands it. Improve ingestion and retrieval before assuming a larger model will repair missing evidence. Experiment with fine-tuning when repeated behaviour is the measured bottleneck. Combine the techniques only when the combined system outperforms the simpler baseline on quality, latency and maintenance effort, including the cost of human review.

Budget for document ownership, parsing changes, index refreshes, embedding generation, search, reranking and evaluation as well as generated tokens. The engineering decision depends on corpus size and change rate, not a universal claim that one technique is cheaper. For a Canadian business, a useful discovery session starts with representative documents and access rules. Scalera Agency can help turn those constraints into a testable knowledge-system design.

Further reading