General Testing Mode
Enter common user questions or keywords in the source text input box and click the Test button to view the matched content chunks in the Recall Results Area on the right.- Each content chunk displays a similarity score in the upper right corner, indicating how well it matches the question.
- Higher scores mean stronger semantic relevance between the chunk and the question.
- Click a content chunk to view its details and source in the document.
Parent-Child Structure Testing Mode
XpertAI’s knowledge base uses a tree-structured chunking approach. When recalling a child chunk, its parent context is also brought in to provide the AI model with more complete semantic information. During testing:- After the user enters a question, the system first matches the most relevant child chunk;
- Then it automatically traces back to its parent chunk, integrating the context for display;
- The match score is shown in the upper right corner to measure how well the hit segment matches the question.
Query Records and Application Calls
In the Records panel, you can view the history of recall test queries. If the knowledge base is linked to a digital expert or other AI application, queries triggered within the application will also be displayed here, making it easy to track recall logs and effectiveness in one place. When intelligent filtering is enabled, authorized users can also inspect the fixed, test, and agent-generated filters; the effective filter; candidate document and chunk counts; final hits; vector backend; and stage timing. Logs do not contain document body text, and access follows knowledge base permissions.Adjusting Text Retrieval Methods
Click the retrieval configuration icon in the upper right corner of the input box to switch the retrieval method and parameters for the current knowledge base. The modified settings only apply to the current recall test, allowing developers to compare the effects of different retrieval strategies. To make global changes, go to “Knowledge Base Settings > Retrieval Settings” to save.Compare GraphRAG retrieval modes
When GraphRAG is enabled and its status is Ready, run the same relationship-oriented question in all three modes:- Vector checks whether chunk semantics alone find the right source;
- Graph checks seed-entity matching, neighborhood expansion, and evidence-backed chunk recall;
- Hybrid checks whether combining vector and graph scores improves ranking.
Testing structured filters
The recall test panel accepts typed conditions for the current test. Test conditions are combined with system boundaries and fixed filters usingAND; they cannot expand the scope granted by the agent binding.
Test these cases separately:
- Fixed filter only: confirm that results remain inside the administrator-defined scope when no dynamic filter is supplied.
- System fields: combine file name, logical folder, extension, and MIME type.
- Business metadata: verify document-scoped and chunk-scoped fields produce the intended candidates.
- Zero hits: confirm that the server does not automatically broaden a valid filter.
- Invalid conditions: verify that unknown fields, wrong value types, and unsupported operators show a structured reason.
- Disabled content: confirm that disabled documents and chunks never appear.
document.fileExtension = pdf and metadata.effectiveYear = 2025, then verify that every hit, chunk, and citation satisfies the conditions.
Testing a folder boundary
- Add
document.folderPathas a test condition. - Choose equals to test only one folder, or is under to include all of its descendants.
- Select the folder from the value list. The panel submits the canonical logical path, such as
Water Resources/East China; do not copy a storagefilePath. - Run the test and inspect the candidate document count, candidate chunk count, and effective filter in diagnostics.
Recommended Steps for Recall Testing
- Prepare a test set: Design a set of test questions covering common user scenarios to ensure diversity.
- Validate retrieval boundaries: Confirm fixed filters and disabled-content rules before testing conditions an agent may generate.
- Choose a retrieval strategy: Intelligent filtering currently applies to Vector mode; select a vector backend that fits the deployment.
- Tune parameters: Adjust the number of recalls (TopK) and similarity threshold (Score) to balance recall relevance and completeness.
- Inspect diagnostics: Monitor candidate counts, zero-hit rate, filter latency, and dynamic-filter fallback reasons.
Explanation of TopK and Score Parameters
-
TopK: The maximum number of content chunks to recall, sorted by similarity score in descending order.
- Smaller values: More concise recall, but may miss some relevant segments.
- Larger values: More comprehensive recall, but may include less relevant segments, affecting final answer quality.
-
Score (Recall Threshold): Sets the minimum similarity score allowed for recall.
- Lower values: Looser recall, including more low-relevance content.
- Higher values: Stricter recall, retaining only highly relevant segments, but may miss marginal information.
✅ Summary Recall testing in XpertAI is not only a key tool for verifying knowledge base quality, but also an important means to optimize the knowledge pipeline and improve AI answer accuracy. With recall logs, parent-child hierarchical structure, and retrieval parameter tuning, teams can iteratively improve knowledge base quality in a visual and verifiable way, making every answer closer to real business semantics.