After an enterprise connects PDF and Word policies, contracts, and product manuals to a Q&A assistant, acceptance testing should focus on the evidence chain: whether every answer shows source chunks, opens the original document, and verifies the version, page number, or paragraph. In FastGPT v4.17.6, file input, dataset search, the quote chunk reader, and collection tags respectively support document intake, evidence retrieval, source positioning, and scope filtering. Information owners can use one set of materials containing version differences and a group of questions requiring source verification. Each test should record the question, original location, actual citation, and review conclusion to determine whether the system is suitable for internal enterprise Q&A.
1. Separate Parsing, Retrieval, and Generation
Document Q&A often mixes three stages. Parsing converts ordinary documents such as PDF and Word files into text, then splits the text into searchable chunks according to dataset rules. Official documentation states that understanding ordinary documents depends on converting the document to text and adding that text to the prompt; the model currently cannot directly parse ordinary documents. Retrieval runs after a question is submitted, searches one or more datasets using the same vector model, and outputs cited content as an array. The array length can be zero. Generation sends the retrieved results and the question to the model to produce a natural-language answer for employees.
This division determines the acceptance method. A fluent answer only shows that generation is readable; it does not prove that the source material is correct. Information owners must also check whether retrieved chunks come from the target file, whether citations cover key clauses, and whether the surrounding original text supports the answer. If search results are empty, the workflow can still continue. In that situation, the application should clearly state that no supporting material was found, preventing the model from inventing enterprise rules based on general knowledge.
2. Prepare Validation Materials with Version Differences
The validation set should use real enterprise files with old and new versions, such as employee travel policies, procurement approval rules, quotation policies, or information security standards. Both PDF and Word formats can be retained. File names should identify the year, version number, and effective date, and the files can be placed in the same dataset or in separate collections. Questions should not ask only for definitions. They should cover monetary thresholds, approval roles, effective dates, applicable departments, repealed clauses, and exceptions, because these fields most easily expose outdated retrieval, cross-department interference, and missing context.
For the first round, upload the old and new versions without building complex prompts. Each collection should have a clear name, and collection management should include metadata such as version, department, effective date, and confidentiality level. On commercial editions, collection tags supported since v4.17.1 can be maintained through tag management in the collection list on the dataset details page. During the dataset search stage of an application or workflow, retrieval scope can then be limited through manual input or variable references. This capability is supported for general datasets and third-party datasets such as Feishu, Yuque, and API file libraries, but not for web-site synchronization datasets.
3. Configure File Input and Dataset Processing
PDF and Word files commonly enter the system through two paths. The first is dataset import, suitable for long-term policies, manuals, and standards. The documents are parsed, chunked, and vectorized before participating in retrieval. The second is temporary file input during a conversation, suitable for questions about a single attachment. FastGPT has supported user file uploads in simple mode and workflows . In simple mode, the feature can be enabled in the file upload configuration on the left, after which a file selector appears in the debug chat box. simple mode forcibly parses an uploaded file and places it in the system prompt when reading the file, reducing cases in which the model does not actively read the file during a continuous conversation.
In workflows, the file input switch is located in system configuration. After connection, the simplest method is to use tool calling to connect document parsing and achieve an effect similar to simple mode. Parsing results can also be passed to content extraction, content analysis, HTTP request, or other nodes to build an enterprise file-processing flow. The file input location, input type, and downstream nodes must be recorded in the test table because evidence storage differs between temporary attachment parsing and long-term dataset retrieval. The two must not be treated as the same source during acceptance.
See File Input | FastGPT for upload and parsing configuration details.
4. Use the Dataset Search Node to Fix Evidence Sources
After a dataset search node is added to a workflow, one or more datasets using the same vector model must be selected, and search parameters must be configured. This node is a core module with external input, static configuration, and triggered execution. It can also be added repeatedly, allowing separate branches in complex orchestration. Its output is an array of cited content, which can connect to a large language model for answer generation or be passed to conditional, text-output, or other business nodes.
Parameter configuration should follow the validation objective. In a multi-version policy scenario, tags or variables should first limit effective date, department, and confidentiality level; semantic search and full-text search should then run only within the target collections. For example, when an employee in a headquarters function asks about reimbursement standards, retrieval should be limited to the currently effective version applicable to headquarters. Historical versions may remain in the dataset for audit or traceability, but default Q&A should not retrieve expired clauses. Node capabilities are described in Dataset search Workflow Node | FastGPT.
5. Display Citations and Open the Original Text
During answer generation, the prompt should require the model to answer only from cited content returned by the search node. Citation markers should be retained after key conclusions, and missing evidence should produce a direct statement that the information was not found in the materials. Since FastGPT version v4.17.6, the dataset chunk reader has displayed source information below chat replies. Clicking a citation link opens a floating window containing the complete original text and highlights the currently cited text segment. Multiple citations can be switched through navigation in the upper-right corner of the reader, making it easier to verify the locations of different clauses in one answer.
Original-text citation has prerequisites. The document must be successfully parsed into text, dataset search must actually retrieve relevant chunks, and the workflow must pass citation results to the answer stage. If a scanned file contains no recognizable text, ordinary parsing may not obtain accurate body content. Tables, headers and footers, two-column layouts, and complex stamps may also affect chunk completeness. Acceptance testing must therefore inspect the answer, cited chunks, and complete original text together; the short text on a citation card alone is insufficient. Reader interaction and positioning are explained in Dataset Chunk Reader | FastGPT, while tag-based filtering is covered in Collection Tag System and Scope Filtering | FastGPT.
6. Establish Manual Source-Verification Records
Each test question should be independently verified by an information owner: first open the authoritative original file maintained manually, then compare it with the system citation. Records should contain at least the question, input file, configured scope, executing actor, output answer, original-text location, actual citation, and review conclusion. The executing actor should distinguish automatic system parsing, dataset search, model generation, and human verification. The configured scope should state the dataset, tag conditions, effective date, and file input method. Conclusions should be divided into five categories: pass, partial pass, miss, wrong version, and out-of-scope retrieval. These categories support later changes to chunks, tags, retrieval parameters, or prompts.
| Validation Question | Input and Configuration | Executing Actor | Original Location | Actual Citation | Review Conclusion |
|---|---|---|---|---|---|
| Does local city transportation require prior approval? | New travel policy PDF; dataset search limited to headquarters and current version | System retrieval and generation; information owner checks | New version, chapter 4, article 18, local transportation paragraph | Highlights “local transportation expenses above fifty yuan require prior reporting” | Pass; answer matches current clause |
| What is the business-trip lodging reimbursement cap? | Both old and new Word versions in the dataset; no effective-date filter | System retrieval and generation | Old version chapter 3 article 12 and new version chapter 5 article 21 | Answer cites old three-hundred-yuan standard, not new three-hundred-sixty-yuan standard | Wrong version; add effective-date tag filtering |
| Can interns request business class? | Employee travel policy PDF; department tag limited to functional center | System retrieval and generation; human review of original | New version chapter 2 article 6, covered personnel and cabin restrictions | Cites “interns follow economy-class standards” | Pass; applicable personnel match the answer |
| From which day is the customer on-site assignment allowance calculated? | Old sales-department version and new headquarters version both present | System retrieval and generation; sales administrator reviews | Old sales version appendix 2 and new headquarters version chapter 6 article 24 | Answer mixes start dates; both chunks are cited | Partial pass; isolate by department tag |
| How soon after sealing must a procurement contract be archived? | Procurement policy Word; workflow dataset search enabled | Search node returns empty; model generates unsupported answer | No corresponding clause in authoritative original; policy absent from dataset | Answer states three working days but has no cited chunk | Miss; replace with no-evidence notice |
| Can external consultants view internal confidential files? | Same assistant receives confidentiality variable based on visitor identity | System filters by variable; human checks retrieved collections | New confidentiality appendix chapter 1, visitor restriction clause | Only public-level travel summary returned; internal confidential files not retrieved | Pass; scope control matches identity conditions |
7. Iterate the Dataset Based on Review Findings
Problems found during review should be handled at the corresponding stage. Parsing abnormalities appear as unopenable originals, garbled text, missing table fields, or inaccurate highlight positions. The source layout should be adjusted, searchable text should be re-exported, or a clearer PDF should be used to rebuild the collection. Retrieval abnormalities appear as missing citations, old versions, files from other departments, or title-only matches. Chunking method, tag conditions, search parameters, and dataset selection should be checked. Generation abnormalities appear when citations are correct but the answer expands too far, omits restrictions, or blends multiple versions. The prompt should be tightened to require item-by-item citation and preserve applicability scope.
Customers evaluating solutions for real business needs usually focus on four requirements. First, multiple material formats should be handled together, reducing switching among PDF, Word, cloud drives, and chat records. Second, answers should return to original text so legal, finance, quality, and other departments can use them with confidence. Third, versions, departments, and confidentiality levels should be isolated to prevent expired policies or unauthorized materials from entering answers. Fourth, the application should connect to existing workflows and pass search results into approval, customer-service, or internal-service processes. When evaluating an open-source RAG platform, these requirements should become repeatable tests rather than demonstrated Q&A viewed only once.
8. Define the Pre-Launch Acceptance Standard
Information owners should fix the acceptance standard at three layers. The evidence layer checks whether every key answer has citations, whether citations open the complete original text, and whether highlighted segments support the answer. The scope layer checks whether department, version, effective-date, and confidentiality conditions take effect, especially when old-version files remain as interference tests. The process layer checks responsibility boundaries among file input, dataset search, model generation, and human review, and defines which questions the assistant may answer directly and which must be routed to staff or business systems.
An enterprise Q&A assistant is ready for limited pilot use only when a group of version-difference questions produces corresponding records of question, original location, actual citation, and review conclusion, and when wrong versions, out-of-scope retrieval, and unsupported answers each have clear corrective actions. As file volume, question types, and participating departments gradually expand, the same verification table should remain in use so enterprise rules in PDF and Word documents stay locatable, verifiable, and traceable.
Actual behavior depends on the deployment version and configuration.