AI Application / Enterprise Knowledge Organization

Why AI Can Struggle to Find Answers in Company Documents

This article analyzes the data, parsing, retrieval, and answering of questions in AI enterprise Q&A, explaining how document version, context, permissions, and testing affect the reliability of the answers.

Published:

Original concept illustration of Magritte-style archives, cabinet doors leading to the blue sky, and golden keys

ARTIST REFERENCE / Artist Introduction

René Magritte

René Magritte

Surrealism, Everyday Objects and Spatial Paradox

Magritte (1898–1967) was a Belgian painter and an important figure in Surrealism. With a clear, almost realistic style, he places familiar objects in unusual situations, exploring the differences between viewing, image, and reality through obscuring, scale, and spatial relationships.

Style reference • Original concept illustration, not the artist's own work.Biography

The existence of a document does not mean the answer is ready.

A salesperson asks: "Does this client's plan include one year of maintenance?" The search results include an old presentation, the latest quote, and meeting minutes from two months ago. The briefing states it includes [the service], the quote lists maintenance as optional, and the meeting minutes mention that this client can be treated as an exception.

This is a hypothetical scenario. Even if the AI ​​finds three documents, it still needs to know: Which version did the client ultimately sign? Were the proposals in the meeting approved? Which document can serve as the basis for the commitment?

Many company documents often represent work that has occurred and content that has been preserved, but this does not necessarily mean that these records have been organized into directly usable knowledge. Version conflicts and background omissions that humans encounter when searching for information will also enter the AI's response process.

Therefore, when seeing an incorrect answer, it is worthwhile to first go through the information: Does the answer really exist? Did the system read it? Did the search find the correct paragraph? Did the final answer retain the original conditions? Each problematic paragraph requires different corrections.

First, identify where the question stops.

Enterprise Q&A typically involves several steps: obtaining authorized materials, parsing the content, building a search index, retrieving relevant paragraphs, and then feeding this content to a model to generate an answer. Using RAG (Retrieval Augmentation) systems, search results are used as reference material for the answer. This does not mean the material is accurate, nor does it guarantee that the model will answer based on the material.[1]

During troubleshooting, maintainers should be able to see the actual text read, the retrieved paragraphs, and the final response. Chat screenshots alone are usually insufficient to determine the source of the error.

Problem LocationPossible ObservationsWhat to Check First
Original DataColleagues cannot find clear evidence, or the documents contradict each otherTrusted Sources, Approval Status, and Applicable Conditions
Parsing and ImportPDFs can be opened, but the system has missing characters, out of order, or no tablesErrors in text extraction, OCR, table structure, and import
SearchThe data already exists, but similar but inapplicable content is found repeatedlyName, Identifier, Filtering Criteria, Segmentation, and Search Settings
AnswerFind the correct paragraph, but omit restrictions or use mixed versions.Input to the model, answer requirements, and verification methods
Updates and PermissionsNew rules do not appear, or users see content they shouldn't seeSynchronization status, deactivation and deletion processing, query authorization

For example, if the system reads a scanned table in the wrong order, even with a larger language model, it may still infer from the incorrect data. If the problem is that the index is not updated, repeatedly changing the prompt words will not allow it to obtain new rules that have not yet been imported.

Determine the first batch of data from the questions that are truly being asked.

Importing the entire cloud disk at once will bring in historical files, drafts, and jargon from different departments. For the first version of the system, it is difficult to know exactly which questions it should answer correctly.

You can first select a scope of work, such as after-sales service for a certain type of product. Compile the problems that have actually occurred recently, and write down the acceptable answers, necessary conditions, credible sources, and responsible persons for each question.

"How long is the warranty?" You need to first confirm the product model and purchase date; "Can it be replaced free of charge?" You also need to confirm the fault and troubleshooting conditions. These questions should be recorded together, don't just leave behind seemingly simple standard answers.

If there is not enough information to make a judgment, you should clearly write down what follow-up questions should be asked in the acceptance answer. If existing documents lack any basis, they should be listed as supplementary information and submitted to the authorized person for confirmation.

This issue list also defines the scope of the first version. For issues outside this scope, the system can indicate that they are not yet covered and provide the appropriate contact information. The team can also decide which knowledge to supplement in the next batch based on actual needs.

Version and applicable conditions should be found along with the content.

A file name stating "latest" is insufficient to determine validity. A briefing uploaded today may cite last year's rules; another contract established earlier may still apply to a specific client.

When compiling, the document creation time, last modification time, and rule effective time should be distinguished, and then the applicable products, client categories, approval status, maintainer, and original link should be added. These fields help the system filter and facilitate human verification.

Historical data is still useful. For example, searching for a promise from an order last year might require the version that was valid at that time. The key is to retain the applicable time and relationship, avoiding directly applying current rules to all historical contexts.

Suppose a policy states, "Within thirty days of purchase, those meeting specified conditions can have their parts replaced free of charge." If only "can be replaced free of charge" is retained when segmenting, the time limit and restrictions may be lost during retrieval. Necessary context should be preserved according to the content structure so that rules, objects, and exclusion conditions can be understood together.

There is no fixed answer to segment size that applies to all documents. Microsoft's document segmentation guidelines list methods such as segmentation based on length, structure, and semantics, and also emphasize the preservation of headings and context. In practice, it is necessary to compare with actual problems, rather than simply selecting a word count as complete.[2]

The tables especially need to be checked: which plan does the price belong to, whether the unit is per person or per month, and which columns the remarks apply to. If these relationships disappear after parsing, the data should be revised before testing the questions and answers.

The search should simultaneously understand the question and recognize the precise name.

An employee might ask, "Can the parts be replaced on that older model?", but the document uses the official product name and model number. Relying solely on literal similarity may not yield results; relying solely on semantic similarity may lead to finding another device with a similar appearance.

A comparison of commonly used names, abbreviations, and formal names can be compiled, and identification fields such as product model and order number can be retained. Where precise comparison is required, field queries and applicable conditions should be used to avoid relying solely on semantic similarity.

Search results should simultaneously display the source, version, and scope of application. If two conflicting rules are found, the system should process them according to the established priority order; if there are no priority rules, the conflicts should be listed and forwarded for confirmation.

In addition, document responses and real-time queries need to be distinguished. Service policies can be obtained from documents, but current inventory, whether orders have been paid, and whether accounts are activated usually require querying authorized business systems. Reports exported last month cannot be considered current status.

When a problem requires real-time information, the system can switch to a designated query tool and display the query time. If the information is not yet linked, clearly state the scope of the data so that users know where to go for further confirmation.

The answer needs to be verifiable and know when to stop.

An answer with a link may still not answer the question correctly. The link may only be topic-related, but the actual text does not support the commitment; it may also refer to the correct page but omit the exception conditions.

A usable answer should be identifiable: which section the conclusion is based on, which conditions apply, what information is missing, and who will confirm the next step. For important questions, you can ask for a list of applicable conditions before giving the conclusion.

Returning to the maintenance plan example, the system should first confirm the customer and the contracted version. If only a general plan description is found, only general conditions can be stated, and it cannot be concluded that the customer has purchased maintenance.

When the basis is insufficient, an appropriate response might be: "A general plan description has been found, but without a signed quotation or contract from this customer, the scope of maintenance cannot be confirmed." Then provide the necessary supplementary information or the responsible contact.

Do not directly assume the model's self-stated confidence level is the correctness rate. Actual reliability needs to be evaluated using cases with standard answers, and the citations, conditions, and versions need to be checked to ensure they meet requirements.

Permissions should be checked before data enters the answer.

For the same problem, different roles may have different visibility ranges. General business personnel may be able to view publicly available quotes, but not necessarily procurement costs; external partners may be able to view delivery documents, but not necessarily other clients' data.

Permissions should be enforced by the system based on identity and data rules, restricting the content that can be retrieved and submitted to the model. Simply writing "Do not disclose confidential information" in the prompt is insufficient to replace access control. Microsoft's document hierarchy permission guidelines also list filtering unauthorized files by user or group during queries as an implementation method.[3]

Testing should not only check whether users can open the original file, but also confirm that summaries, citations, caches, and chat logs do not reveal unauthorized content. After account removal or permission changes, related indexes and caches also need to have update or invalidation mechanisms.

The document content itself should be treated as reference material. Even if it contains text requesting the ignoring of rules, the transfer of data, or the execution of operations, it should not grant system privileges. Questions and answers, and executable operations, should each be controlled by the backend.

Use a question set for acceptance, then arrange daily maintenance.

During acceptance testing, a fixed set of questions can be maintained, covering direct queries, multiple data requirements, ambiguous names, rule conflicts, missing data, historical versions, and permission restrictions. The expected behavior for each question should be recorded, including when to follow up, refuse, or transfer the request.

Test TypeResult to be Confirmed
There is clear evidenceAnswer, Applicable Conditions, and Source Match
Information NeededFirst Ask for Necessary Fields, Otherwise Guess
File ConflictHandle According to Explicit Rules, or Point Out the Conflict and Forward
No DataExplain the Current Gap, No Fabricated Promises
Different permissionsUnauthorized Content Not Included in Answers or Quotes
Data ChangeThe New Version Can Be Found, Disable or Delete Content and Exit Use According to Rules

Each Error is First Categorized: Missing Original Data, Parsing Error, Inaccurate Retrieval, Deviation in Answer, or Synchronization and Permission Issues. Categorization is necessary before modification to understand where the improvement comes from. After changing the model, adjusting the segmentation, or adding data, the existing issues must be rerun to confirm that the previously correct answers have not regressed.

After going live, it is necessary to designate an knowledge maintainer, a technical maintainer, and an issue handler. Who approves the content when policies are updated; who handles system synchronization failures; and where users report errors? These responsibilities should be delivered along with the system.

The first version can support only one product line or one internal process. Expand gradually once the source can be verified, updates are assigned, and errors can be located. Only when the next colleague asks the same question and the team receives a traceable, context-appropriate answer can the document begin to function as shared knowledge.

Sources and Further Reading

  1. Microsoft Learn:Retrieval-augmented generation(RAG)in Azure AI Search
  2. Microsoft Learn:Chunk large documents for RAG and vector search
  3. Microsoft Learn:Document-level access control in Azure AI Search

Artist Profiles

Contact on LINE