Skip to content

Article · 8 min read · Sep 18, 2026

Building an AI assistant on your company knowledge

An AI knowledge assistant answers questions using your own approved documents rather than general model training, a pattern called retrieval-augmented generation. The work is less about the model and more about choosing which sources count as authoritative, enforcing the permissions those sources already carry, showing citations people can check, and deciding what happens when information is missing or two documents disagree. Buy Microsoft 365 Copilot, Gemini for Workspace or Glean when your knowledge lives in one mainstream suite, and build when it is spread across line of business systems or the answers must trigger work.

Farzan AnsariCofounder, AI engineering lead

Key takeaways

  • Retrieval-augmented generation means the assistant looks up passages from your approved documents and answers from those, so accuracy depends on the sources more than the model.
  • Decide what counts as authoritative before you connect anything, because indexing every folder in the company is how an assistant starts quoting a superseded policy.
  • The assistant must inherit the permissions of the underlying documents, so a user never sees through it what they could not open directly.
  • Citations make answers checkable but do not prove them correct; test that the cited passage actually supports the answer.
  • Off-the-shelf assistants win when knowledge sits in one suite; a custom assistant earns its cost across scattered systems, unusual access rules or answers that must trigger work.

Ask a new starter how they find the current expenses policy and you will hear the real answer: they ask the colleague who sits nearest. The document exists, probably in three versions across two systems, and nobody is confident which one is live. That is the problem a knowledge assistant is meant to solve, and it is a content problem as much as a technology one.

What is retrieval-augmented generation, in plain English?

Retrieval-augmented generation, usually shortened to RAG, is the pattern behind almost every company knowledge assistant. AWS describes it as "the process of optimizing the output of a large language model, so it references an authoritative knowledge base outside of its training data sources before generating a response" (AWS).

In practice it works in four steps.

  1. Index. Your approved documents are split into passages and stored in a way that supports search by meaning as well as by keyword.
  2. Retrieve. When someone asks a question, the system finds the passages most likely to contain the answer, filtered by what that person is allowed to see.
  3. Ground. Those passages are supplied to the model alongside the question, with instructions to answer from them.
  4. Cite. The answer comes back with links to the source documents, which AWS notes lets users verify information themselves and increases trust in the result.

Two consequences follow, and both matter more than the choice of model. Accuracy is a function of the sources, so a well written policy indexed correctly beats a larger model reading a stale one. And nothing is being trained, so when a document is corrected the answer changes as soon as it is reindexed.

Which sources should the assistant be allowed to read?

The instinct is to connect everything. Resist it. Indexing every folder in the company is how an assistant begins quoting a 2021 policy that was replaced twice.

Work through three tiers.

  • Authoritative. Current policies, approved procedures, the live price list, signed contracts, the product catalog. These are the sources the assistant should answer from, and each one needs a named owner and a review date.
  • Useful with context. Past project documentation, meeting notes, resolved support tickets. Valuable for background, but they should not be quoted as policy.
  • Excluded. Drafts, personal drives, anything superseded, and anything whose sensitivity means it should never appear in an answer.

Then do the unglamorous part. Retire old versions rather than leaving them beside the new one. Give each source a date. Fix the document titled "Final v3 (updated)" that three teams reference differently. Most disappointing assistant pilots trace back to this step being skipped, not to the retrieval.

How do permissions work?

The rule is simple to state: a person must never see through the assistant anything they could not open directly. Enforcing it means filtering at retrieval, using the asking user's own identity, rather than filtering the answer after the fact.

Microsoft describes exactly this model for Microsoft 365 Copilot. It uses Microsoft Graph to reach data "in the user's unique context", and states that "Copilot only accesses data that an individual user is authorized to access" and "can't access data that the user doesn't have permission to access", while honoring Conditional Access policies and multifactor authentication (Microsoft Learn). A custom assistant has to reproduce that behavior across whatever systems it connects to, which is usually the hardest engineering problem in the project.

Three checks belong in the plan.

  1. Test with real roles. Sign in as accounts across different departments and seniority levels and confirm that results differ correctly.
  2. Audit for existing oversharing. Search makes findable what was previously merely present. A confidential file in an open folder was always a problem, but nobody could find it before.
  3. Log every query and source returned. So a question about what the assistant disclosed has an answer.

What do citations prove, and what do they not?

Citations are the single most useful feature of a knowledge assistant, and the most misread. A citation shows which passage the answer was drawn from, so a reader can check it. It does not prove the answer is a correct reading of that passage, and it does not prove the passage is current.

Design for checking rather than trust. Link to the specific section or page rather than the document. Show the retrieved text alongside the answer, so the reader can compare in one glance. Display the document's date and owner, because an answer sourced from a superseded policy looks identical to a correct one. Where an answer draws on several documents, attribute each claim separately.

What should happen when information is missing or sources conflict?

Most assistants are designed for the case where the answer exists in one place. The interesting cases are the other two.

Missing. When retrieval returns nothing relevant, the assistant should say so plainly and point to who owns that subject, rather than filling the gap from general knowledge. Test this deliberately by asking questions your documents do not cover. An assistant that answers everything confidently is worse than one that declines.

Conflicting. When two documents disagree, the assistant should show both and say which is more recent or more authoritative rather than silently choosing. In practice a conflict is a content defect, so route it to the source owner as a task. Over a few months this turns the assistant into a way of finding stale documentation, which is worth as much as the answers.

Out of scope. Decide where the boundary sits. Legal interpretation, HR casework and anything requiring professional judgment should return the relevant material and the right contact, not an opinion.

The OWASP Top 10 for LLM Applications 2025 names misinformation, sensitive information disclosure and prompt injection among the leading risks for this kind of system (OWASP). A knowledge assistant touches all three, which is why source control, permissions and refusal behavior are the design, not the polish.

Does a customer-facing assistant change the requirements?

Yes, considerably. The mechanism is the same and the tolerance for error is not.

ConsiderationInternal assistantCustomer-facing assistant
Tolerance for a wrong answerAn employee notices and checksA customer acts on it, or screenshots it
SourcesInternal policies and proceduresOnly published, approved material
Identity and permissionsThe employee's existing accessAuthenticated account scope, carefully bounded
EscalationAsk a colleagueA person, with the conversation attached
Tone and disclosureInformalConsistent with your brand, and clear that it is an assistant

A common and sensible sequence is to launch internally first, use several months of real questions to find the gaps in your content, then expose a narrower, tested subset to customers.

How do you evaluate an assistant before and after launch?

Impressions from a demo tell you almost nothing. Build a test set instead.

  1. Collect real questions. Fifty to two hundred, gathered from the service desk, the shared inbox and the people who get interrupted most.
  2. Write the correct answer and the source for each. This is the work. It is also a content audit you would benefit from anyway.
  3. Include the awkward ones. Questions your documents do not answer, questions where two documents disagree, and questions that should be refused.
  4. Score each answer on four things. Is it correct, is the cited source right, is it complete, and did it decline when it should have?
  5. Rerun the set on every change. New sources, a new model version, a changed prompt. Quality moves in both directions.

After launch, track usage rather than assuming it. Measure how many people ask a question in a given week, the share of answers marked useful, how often people click through to the source, and which questions return nothing. That last measure is the roadmap for your content.

Illustrative example: Consider a professional services firm whose consultants repeatedly ask the same questions about expense limits, engagement letter templates and which insurer covers which client type. The firm indexes three sources only: the current staff handbook, the approved template library and the client onboarding procedure, each with a named owner and a review date. Permissions are inherited from SharePoint, so a consultant cannot retrieve a document they could not open. A test set of 120 real questions is built from the operations inbox, including fifteen the documents do not cover. The assistant is launched to one practice group, and the questions that return nothing are reviewed monthly and turned into documentation tasks.

For testing method in more depth, see how to test AI before it touches your operations, and for the access and retention decisions, data security and governance for AI in the enterprise.

Should you buy Microsoft 365 Copilot, Gemini for Workspace or Glean instead?

Often, yes. Buying is the right answer more often than suppliers admit.

  • Microsoft 365 Copilot suits organizations whose knowledge already sits in Microsoft 365, because it works within your tenant and inherits Microsoft Graph permissions. Microsoft lists Microsoft 365 Copilot Business as an add-on at $18.00 per user per month paid yearly, noting that "a separate license for a qualifying Microsoft 365 plan is required", alongside bundles such as Microsoft 365 Business Standard with Copilot at $23.50 per user per month (Microsoft).
  • Gemini for Workspace is the equivalent for Google Workspace customers, now included in the plans rather than sold separately. Google lists Business Starter at $7.00 per user per month with the Gemini assistant in Gmail, and Business Standard at $14.00 with Gemini across Gmail, Docs, Meet and more (Google Workspace).
  • Glean and similar enterprise search platforms connect many systems at once. Glean describes itself as "an AI platform for work that unifies enterprise search, assistants, and agents on your company's context" (Glean).
SituationUsually the better fit
Knowledge lives in one mainstream suite and staff already have licensesMicrosoft 365 Copilot or Gemini for Workspace
Many SaaS tools, and search across them is the main needAn enterprise search platform
Knowledge sits in line of business systems, an ERP or a custom databaseA custom assistant
Access rules are specific to your business, or residency requirements are strictA custom assistant
Answers must trigger work, such as creating a record or starting an approvalA custom assistant, or a workflow with a retrieval step

The mixed answer is common and perfectly reasonable: licensed assistants for general documents, and a custom assistant for the one domain where the answers live somewhere the suite cannot reach. For the broader picture of where retrieval fits alongside other automation, read the practical guide to AI workflow automation.

How Kastling approaches company knowledge assistants

Company knowledge and search is part of our AI Integration & Automation service: helping employees find and synthesize information from approved internal sources, with source references and suitable access rules. A discovery call is free and covers which questions people actually ask, where the answers live today and who owns them.

Before anything is built we agree which sources are authoritative, how permissions will be enforced and what should happen when information is missing, conflicting or uncertain. We test against real questions with known answers, involve the people who will use it, and agree data access, retention and ownership up front. Source references support review; they do not guarantee that every generated answer is correct, and we would rather say that plainly than promise otherwise.

Questions

Does an AI knowledge assistant need our data to train a model?

No. Retrieval does not involve training. The assistant searches your documents at the moment someone asks a question and answers from the passages it finds, which means new or corrected documents take effect as soon as they are indexed. Fine-tuning a model is a separate decision, rarely needed for question answering, and it does not keep answers current.

What stops the assistant from making things up?

Nothing stops it completely, which is why the design matters. Restricting answers to retrieved passages, showing the source for every claim, and instructing the assistant to say it does not know when retrieval returns nothing relevant all reduce the rate substantially. Test it against questions you know the answer to, and include questions your documents genuinely do not cover.

Will staff see documents they are not supposed to?

Not if permissions are enforced at retrieval, which means the assistant only searches what the person asking is already allowed to open. Test this with real accounts across different roles before launch. The related risk is oversharing that already exists in your file stores, where a sensitive document sits in a folder open to everyone and nobody noticed until search made it easy to find.

How do we keep the assistant current as policies change?

Give every connected source an owner and a review date, and index on a schedule rather than once. Retire superseded documents instead of leaving them beside the current version, because two versions of the same policy in the index is the most common cause of confidently wrong answers.

Should the assistant be able to take actions as well as answer questions?

Start with answers. Once it is trusted, actions can be added one at a time with explicit permissions and approval for anything consequential. Reading a policy and booking leave are different risk levels, and the second should require a named person to confirm until the accuracy of the first is proven.

Sources

  1. AWS: What is Retrieval-Augmented Generation
  2. Microsoft Learn: How does Microsoft Copilot work
  3. Microsoft: Microsoft 365 Copilot plans and pricing
  4. Google Workspace: Pricing
  5. Glean: Product overview
  6. OWASP: Top 10 for LLM Applications 2025

Guide · 14 min read

AI workflow automation: a practical guide for operations teamsAI workflow automation puts AI models inside a defined business process to read, classify and prepare work, while fixed rules, integrations and named people handle the steps that must be predictable. It suits repetitive, document-heavy or request-heavy work such as intake, routing, document checks and approvals. Start with one measurable workflow, keep consequential approvals with an accountable person, and expand only once the numbers show it works.Read

Article · 9 min read

AI document processing for invoices, contracts and formsAI document processing combines three techniques: OCR to turn images into text, layout models to understand where values sit on a page, and language models to extract and interpret fields that vary between documents. The technique matters less than what surrounds it: validation rules that check extracted values against your own records, confidence thresholds that decide what a person sees, and a review queue somebody owns. Measure field level accuracy and the share of documents that pass without a human touch, not a single headline accuracy number.Read

Guide · 9 min read

What happens in an AI readiness assessmentAn AI readiness assessment is a structured review of specific workflows, the data and systems behind them and the people who run them, to decide where AI or automation will help, what must be fixed first and in what order to act. A good one ends with named, prioritized opportunities and a roadmap, not a maturity score or a deck of industry trends.Read

One useful email a month.

New guides, tools and practical notes on putting AI to work. No sales sequences.

Bring us a workflow.

Tell us where the work slows down. We will help you see where to start.

Book a discovery call