Skip to content
Customer Support

When Should an AI Assistant Retrieve Knowledge?

Understand when a support assistant needs approved knowledge retrieval, how to prepare sources, and how to handle missing answers.

Find an approved source. A missing source is a reason to pause, not invent.
Original explanatory diagram by OptimaFlow AI; not a product screenshot.

Retrieval means the assistant looks up your approved material before it answers, so a question about refunds or delivery terms gets your policy instead of a guess. It fits questions whose answers live in your documents and change over time. It does not teach the model a style, and it does not guarantee the retrieved passage is the right one.

Identify questions that require business facts

General writing assistance and policy answers are different tasks. A request to rewrite a greeting may not need a knowledge system. A question about refunds, availability, or delivery terms needs the business’s actual approved information.

List the common question types and the source that should answer each. If no authoritative source exists, create or clarify it before building the assistant. Searching a folder of inconsistent documents can produce an answer without resolving which policy is current.

Prepare a small approved library

Use clearly titled documents with owners, review dates, and scoped topics. Keep outdated versions distinguishable from active guidance. Break up long mixed-purpose material where that makes the intended answer easier to find, without removing important qualifications.

A source should state who and what the policy applies to. For example, a delivery rule may differ by region or product. Retrieval that finds the rule but loses its conditions can mislead the user. Test whether those qualifications remain in the retrieved context.

Inspect the retrieved material

Separate retrieval quality from answer quality. First ask whether the system selected the right document and passage. Then check whether the assistant accurately used it. If the wrong material was selected, adding more response instructions may not solve the underlying problem.

Keep a source identifier with the answer for internal review, and provide appropriate references to users when useful. A source label is not proof by itself: verify that the referenced passage supports the actual claim.

Handle gaps and conflicts explicitly

Write a response rule for missing knowledge. The assistant might ask one clarifying question or route the request to a person. It should not fill a policy gap using generic assumptions about how businesses usually operate.

For conflicting sources, identify the policy owner and pause the affected answer type until the conflict is resolved. A confidence score does not decide which business rule is authoritative. Keep the original question and relevant context available for the human handoff.

Maintain the sources with the workflow

Assign responsibility for updating the library when policies change. Test a few affected questions after each important update, including exceptions. Remove stale material from the active retrieval set according to the system’s supported process rather than merely changing a filename.

Start with our knowledge-base checklist and handoff guide. A smaller, maintained library is often more useful than a large collection with unclear ownership.

Example: a policy with an exception

A knowledge source says a service is available on weekdays, with a separate exception for public holidays. A question asks whether a particular holiday is covered. Retrieving only the first sentence would produce an incomplete answer. The relevant context needs the exception and a way to check the specific date.

If the source does not resolve that date, route the question rather than assuming normal weekday coverage. Record the gap for the policy owner. Improving the library can be the right repair; making the assistant sound more confident cannot supply the missing business fact.

Do not confuse quantity with coverage

A large document collection may still lack the answer. Coverage means authoritative information for the relevant question and conditions, not merely many pages available to search.

Retrieval vs fine-tuning: different problems

Retrieval and fine-tuning are not competing answers to the same problem. Retrieval changes what the model can access at runtime; fine-tuning changes how the model responds. Ask which constraint you are solving. Retrieval is one step inside a larger workflow — see what an AI workflow is before you build one.

Question to askUse retrievalUse fine-tuning
Does the knowledge change often?Yes — update the index, not the modelNo — every change means retraining
Do answers need citations?Yes — each answer can carry its sourceNo — knowledge baked into weights has no source to cite
Is the problem style, format, or tone?Weak fitYes — it teaches behaviour, not facts
Is the dataset small and stable?Works, but overkillYes — under roughly 10,000 examples
Must the answer use private documents?Yes — retrieved at query timeCostly — documents enter training data

Most production systems use both: retrieval for knowledge, fine-tuning for behaviour. Start with retrieval. Add fine-tuning later only if retrieval alone cannot reach the quality you need.

How to chunk documents so retrieval finds the right passage

Chunking — splitting documents into retrievable pieces — affects retrieval quality more than the embedding model or the language model. A chunk boundary in the wrong place can return a permission while dropping the condition that limits it.

StrategyWhat it doesWhen it helps
Fixed-sizeSplits by token or character countUniform text and quick baselines
Recursive, structure-awareSplits on headings, then paragraphs, then sentencesMost general-purpose collections
SemanticGroups text by topic similarityHigher-quality chunks, at more compute cost
Parent-childRetrieves a small chunk but returns the full parent sectionWhen both retrieval precision and context matter

Defaults that work for most collections: 400–800 tokens per chunk, with 10–20% overlap so an answer that straddles a boundary still lands whole. Never split inside a table or a code block, and prepend each chunk with its document title and section path so the model knows where the passage came from. Tune chunking with evaluation on real user questions rather than copying a tutorial’s default.

Beyond retrieval: hybrid search and reranking

Vector search alone misses exact terms — a product name, a code, a policy number — while keyword search misses synonyms. Hybrid search runs both and combines the results, and it usually beats either method on its own. Reranking then re-orders the top candidates with a stronger model, and it is often the single biggest quality upgrade in a retrieval pipeline. Neither step fixes a bad library: if the source is missing or outdated, no retrieval trick can supply the missing fact. Build the library first — our knowledge-base guide shows how to prepare sources with owners and review dates.

How to tell whether retrieval is working

Judge retrieval before you judge the answer. Keep a test set of real user questions with known answers, and for each one ask first whether the system retrieved the right passage. Then check whether the assistant used it accurately. Failures split three ways: the wrong document, the right document but the wrong passage, or the right passage misused — and each needs a different repair. Track which kind you get, and fix the layer that failed instead of adding more instructions to the prompt. A source label on every answer makes this review possible; verify the passage supports the claim, and check the answer against the source with our fact-checking workflow.

Frequently asked questions

Does retrieval eliminate hallucinations?

No. It provides context, but selection, interpretation, and generation can still fail. Validate important answers and keep a fallback.

Should every internal document be searchable?

Only include material that is authorized and relevant to the assistant’s scope. Apply access rules and minimize unnecessary data.

Should I fine-tune the model instead of using retrieval?

Fine-tuning teaches the model a style, format, or skill — not facts. Facts change, and retraining is expensive, so use retrieval for grounded answers and fine-tuning only when the problem is how the model behaves.

How big should chunks be?

Most setups land at 300–800 tokens per chunk with 10–20% overlap. Smaller chunks give higher precision; larger chunks give more context. Test both on your real questions rather than copying a default.

Does a bigger library mean better answers?

No. Coverage means authoritative information for the question and its conditions, not many pages. A small library with owners, review dates, and scoped topics usually beats a large collection with unclear ownership.

What if the assistant retrieves the right document but answers wrong?

That is a generation failure, not a retrieval failure. Check whether the answer follows the passage, add a source label so a reviewer can verify it, and route the question to a person when the stakes are high.

Was this guide helpful?

Your selection stays on this page. To send feedback to the publication, use our contact form.

About this publication

From OptimaFlow AI

Practical guides to AI, automation, and better everyday workflows. We use illustrative examples and original diagrams, with AI-assisted writing and illustrations.

Read our editorial approach →About OptimaFlow AI
When Should an AI Assistant Retrieve Knowledge?