How do you test whether an internal AI assistant knows when company information is missing?

0
minutes read
How do you test whether an internal AI assistant knows when company information is missing?

How do you test whether an internal AI assistant knows when company information is missing?

Test an internal AI assistant with questions your company data can't answer, then check whether it admits the gap instead of guessing. A reliable assistant answers with citations when evidence exists and says plainly when information is absent, stale, or off-limits to the person asking.

Knowing how to test AI assistant knowledge gaps matters because the costliest failure is false confidence. That looks like an outdated policy, a guessed price, or an answer built from content the user shouldn't see. A Stanford and Yale study found RAG-based legal research tools still hallucinated between 17% and 33% of the time.

The AI assistant evaluation method below builds a gap-focused test set, separates missing data from retrieval and permission problems, and scores abstention alongside accuracy. The results become AI assistant performance metrics you can track long after launch.

How to test whether an internal AI assistant knows when company information is missing?

Testing starts with the four states an assistant has to tell apart, because each one calls for a different response. A reliable assistant cites sources when information is present and asks a clarifying question when a request is underspecified. When the gap is real, it says it can't find enough trusted company context.

  • The information is present, current, and visible to the person asking.
  • The information is missing because no trusted source exists.
  • The information exists, but the person asking doesn't have access to it.
  • The information exists, but the indexed version is out of date.

Treat the evaluation as a full-system check across connectors, indexing, permissions, retrieval, ranking, grounding, and answer behavior. Judge what the assistant does and which sources it cites, and ignore its self-reported confidence. A repeatable process for how to test AI assistant knowledge gaps gives you AI response validation and AI training data assessment that one-off prompts can't.

Run the tests where employees actually work, with live permissions and real knowledge sources. Demo agents often run on small datasets with full context. In production, missing context about the underlying data is usually what breaks first.

1. Define what "missing company information" means before you test

A test of missing company information only works when reviewers agree on what "missing" means. Five failure categories cover most cases, and each one needs its own pass criteria.

CategoryExampleExpected behavior
Truly missingNo one has written a leave policy for contractorsSay no trusted source exists and name the owning team
IncompleteThe travel policy covers flights but not railAnswer the covered part and flag the uncovered part
StaleThe indexed pricing sheet predates the latest price changeShow the document date or decline to quote
InaccessibleCompensation bands are restricted to HRAnswer only from content the user can see
Retrievable but unusedThe answer sits in a Slack thread the assistant skippedScore as a retrieval or grounding failure

Define a complete answer for each workflow before scoring. An HR leave answer needs a policy citation and an effective date. A sales pricing answer needs the current pricing document and its approval note.

Testing AI accuracy means weighting each result by the cost of being wrong. A shaky onboarding answer wastes a few minutes, while a guessed security control or customer commitment creates contractual risk. In McKinsey's 2025 State of AI survey, inaccuracy is the AI risk organizations most often report experiencing.

Separate absent knowledge from scattered knowledge, since many internal AI knowledge gaps are facts split across three apps. Give reviewers a fallback standard too: a good abstention names what's missing, points to the nearest trusted source, and suggests where to look next.

2. Build a test set that includes answerable, unanswerable, and edge-case questions

A test set built only from answerable questions can't reveal whether an assistant recognizes missing information. Start with real employee questions from IT help channels, onboarding requests, policy lookups, engineering handoffs, and account research, which reflect actual company information retrieval patterns. Then add negative controls on purpose.

BucketExample question
Fully answerable"What's the expense limit for client dinners?"
Partially answerable"What's our parental leave policy in Germany and Japan?" when only Germany is documented
Clearly unanswerable"What's the budget for next year's offsite?" before anyone has set one
False premise"How do I enroll in the sabbatical program?" when no program exists
Intentionally outdated"Where's the VPN setup guide?" after a replaced guide is still indexed
Permission-restricted"What's the salary band for a senior engineer?" asked by a non-HR employee
Ambiguous"What's the status of Phoenix?" when Phoenix names both a project and a customer

The false-premise and outdated buckets come from research on abstention. AbstentionBench evaluates 20 frontier LLMs on scenarios that include unknown answers, false premises, and outdated information.

Label every question with its expected source system, document owner, last updated date, and intended audience. Add time-sensitive prompts about current policies, active product limits, or this quarter's plans to expose AI data completeness issues.

Write questions around real work rather than trivia. For a view of why company knowledge is rarely organized neatly, see how Glean uses AI. Balance the set across departments so one team's excellent documentation doesn't inflate the overall score.

3. Map each test question to its expected source, permissions, and freshness path

Each test question needs a documented path showing where the answer lives, who can see it, and how fresh it should be. Without that map, reviewers can't tell a model failure from a source coverage gap, connector misconfiguration, or indexing lag.

FieldWhat to recordExample for a benefits enrollment question
Source systemWiki, file storage, chat, ticketing, CRM, or intranetHR wiki page for the annual benefits guide
Content formatTable, document, message, or commentPlan comparison table inside a document
Permission boundaryWho should see the contentFull-time employees, not contractors
Freshness expectationChange frequency and the timestamp to verifyUpdated each open enrollment, checked by last-edited date
Authoritative sourceYes or no, plus the ownerYes, owned by the benefits team

Record content format because retrieval quality often shifts across tables, documents, messages, and comments. Review each source's data flow so a failure can be traced to source access, processing, or answer generation.

A connected source doesn't prove its content is retrievable, so reconcile the map against actual retrieval results. Include one deleted document as a check, because removed sensitive content that stays searchable is a freshness failure with security consequences. Keep a "no authoritative source exists" column to show which failures belong to content governance.

4. Test the assistant under real user contexts, not a single admin view

An admin account sees almost everything, so testing from one admin view hides the cases where permissions shape the answer. Run the same questions as a new hire, a manager, a contractor, and an HR partner, then compare the outputs.

Broad-access and restricted users should get different responses to permission-restricted questions. Identical answers point to a permissions problem or a flawed test design. For the restricted user, a correct response reveals no details from the hidden document.

Every response should show its work with citations, source titles, and timestamps a reviewer can check quickly. Judge abstention quality as well as frequency. A TACL 2025 survey notes abstention is increasingly recognized for reducing hallucinations. A useful "I can't find this" names the sources it checked or the information still needed.

Watch for three bad behaviors in particular:

  • Confident guesses that fill a gap with plausible but unsupported detail
  • Citation mismatch, where the linked source doesn't contain the claim
  • Stitched answers built from adjacent but irrelevant documents

Ambiguous prompts check whether the assistant asks a clarifying question before retrieving. A phrase like "the launch checklist" often means one document to marketing and another to engineering. Add a short checklist for governed behavior: grounded answers, enterprise context, permissions, and practical task support.

5. Score the responses with metrics that reward honesty, grounding, and completeness

Answer accuracy alone rewards an assistant that guesses well, so pair it with metrics for honesty about missing data. DeclineCraft measured 27 LLMs on Correct Abstention Rate, Answerable Attempt Rate, and Answer Accuracy as separate scores.

DeclineCraft found no significant link between correct abstention and either model size or release date. Bigger models answered more accurately but didn't abstain better, so a model upgrade won't fix guessing on its own.

MetricWhat it measures
Answer accuracyCorrect answers on answerable questions
Knowledge gap detection rateMissing or incomplete cases the assistant correctly flags
False answer on missing dataUnanswerable questions that received a confident answer
Unsupported answer rateClaims with no backing in the cited content
Citation coverageClaims that link to a source
Freshness accuracyAnswers drawn from the current version of a source
CompletenessRequired facts present, including exception paths
Permission leakage rateAnswers containing content the user can't access
Time-to-verificationSeconds a reviewer needs to confirm or reject the answer

Treat false answers on missing data as your top risk metric, because they measure guessing directly. Completeness catches subtler misses, like an answer that cites the expense policy but skips its exception for client gifts.

Score each response in layers: retrieval quality, source relevance, faithfulness to cited content, and access correctness. Be careful with automated graders, since a controlled 30-query study of 15 answerable and 15 unanswerable questions found common groundedness evaluators scored refusals inconsistently. Repeat each test across several runs, and report results by intent cluster such as HR, IT, sales, engineering, and security. Research on LLM-as-a-judge found low score consistency between runs.

6. Investigate failures by system layer so you fix the right problem

A failed test shows what went wrong, and layer-by-layer triage shows where. Sort each miss into one of five layers before anyone changes prompts or models.

LayerTypical symptomWhat to checkLikely fix
Source content doesn't existAbstention or a guessWhether any owner has written the contentCreate the document
Source exists but is poor qualityVague or conflicting answerNaming, metadata, and duplicate versions across toolsConsolidate versions and improve metadata
Connector or syncStale or missing contentSource update time against sync and index timeExpand coverage or fix sync monitoring
Retrieval or rankingWrong document citedTitle match, semantic relevance, recency, permissions, and authorityTune ranking signals
GenerationRight sources, wrong answerFaithfulness to the retrieved passagesAdjust grounding instructions

Stale answers deserve extra scrutiny because pipeline delays look like model failures. Out-of-order processing can leave an older document version in the index after the source updates. Compare timestamps or version numbers directly to confirm.

To isolate the generation layer, give the model only non-relevant context on purpose. The correct behavior is to state that the answer can't be derived from the material provided.

An answer that appears for one user and not another calls for checking permission-aware retrieval before blaming the model. Glean enforces permissions upstream of the language model, and citations never grant new access, so the citation trail shows which documents each user could see. Log every miss with its remediation path and the person responsible.

7. Turn one-time testing into an ongoing evaluation program

An assistant that passes at launch can fail a month later after a reorg, a new connector, or a policy rewrite. Re-run the full test set after major source changes, permission model changes, connector additions, and rollouts to new teams.

Between full runs, schedule canary questions for high-risk workflows like benefits policies, incident procedures, pricing guidance, and customer commitments. A canary with a known answer doubles as a heartbeat, because silence from exception-only alerts can mean health or a broken monitor. Keep these signals high-precision so reviewers don't learn to ignore them.

Track four trends over time:

  • Accuracy on answerable questions
  • Correct abstention on missing questions
  • Freshness miss rate
  • Unresolved source gaps

For knowledge management AI, a failed test is a work item for two teams. Sometimes the fix is better retrieval, and sometimes it's writing the document nobody wrote. Assign each gap a content owner, system owner, and remediation date so it gets closed.

Grow the test set as new teams adopt the assistant. Their real questions keep the evaluation tied to actual usage rather than launch-day assumptions.

How do you test whether an internal AI assistant knows when company information is missing?: Frequently Asked Questions

What methods can be used to test an AI assistant's knowledge of company information?

Use a labeled evaluation set that mixes answerable, unanswerable, stale, restricted, and ambiguous questions, each tied to an expected source. Run it under several real user roles and inspect the citations behind every response. Trace each source path to learn whether the assistant found, missed, or invented the information.

How can I identify when my AI assistant lacks necessary data?

Weak or missing citations, repeated use of outdated sources, and answers that shift unpredictably between teams are the warning signs. Correct abstentions are the healthy signal. A mature assistant states clearly that no authoritative source exists yet and points you toward whoever owns the topic.

What metrics should I use to evaluate the performance of an internal AI assistant?

Track answer accuracy alongside knowledge gap detection rate, unsupported answer rate, citation coverage, freshness accuracy, completeness, and permission leakage rate. Add time-to-verification, which ties trust to evidence rather than tone. Break each metric out by department, since quality varies by source domain.

Are there specific tools or frameworks for assessing AI knowledge gaps?

Research benchmarks such as AbstentionBench and DeclineCraft show how to score abstention, but internal testing needs your own data. Build a repeatable rubric,

Recent posts

Work AI that works.

Get a demo
CTA BG