Data Characteristics for This Category
Preclinical Safety Evaluation (PSE) regulation documents are typically in PDF, Word, or scanned image formats. Content includes GLP (Good Laboratory Practice) system files, Standard Operating Procedures (SOPs), test protocols, report templates, and regulatory guidelines. These documents are updated infrequently, usually annually or when regulations change. Document structure is rigorous; SOPs use a hierarchical structure with fixed fields such as objective, scope, responsibilities, operating procedures, and record-keeping requirements. Field content often involves specific reagent batch numbers, instrument models, operating parameters, animal strains, administration routes, dose units (e.g., mg/kg, mol/L), and specific toxicity indicators (e.g., LD50, NOAEL). Some documents may contain handwritten annotations or charts.
Constraints Imposed by These Characteristics on "Tool Calling and Plugins"
The low update frequency of PSE documents means less pressure on Embedding updates after knowledge base construction; the focus is on initial import accuracy. The rigorous document structure and fixed fields require tool calling to precisely identify and extract key information, such as specific operating steps from an SOP or dose units from a report template. The presence of scanned images and handwritten annotations demands high recognition rates and layout restoration capabilities from OCR. Identifying specific toxicity indicators and specialized terminology requires custom dictionaries or domain knowledge enhancement. Furthermore, regulatory guideline citations often need precision down to the chapter or clause, requiring fine-grained text segmentation and recall. Tool calling must structure the extracted information for subsequent analysis or integration with other systems.
Configuration Settings
| Configuration Item | Recommended Value | Rationale for Recommendation |
|---|---|---|
UPLOAD_FILE_MAX_SIZE | 500 MB | PSE documents often contain many images or scanned pages, leading to large file sizes. |
Chunk size (Segment Length) | 800–1000 characters | SOPs and regulatory clauses have strong logical coherence; a moderately long segment helps maintain context. |
Recall count (Recall Count) | Top 5 | Regulatory Q&A often requires precise matching; too many items may introduce noise. |
Similarity threshold (Similarity Threshold) | Calibrate based on actual measurements | Needs to balance recall and precision to ensure key clauses are retrieved. |
PARSE_FILE_TIMEOUT_SECONDS | 600 seconds | Parsing large files or complex PDFs can be time-consuming; this prevents timeout errors. |
Rerank result count (Reranked Return Count) | Top 3 | Reranking further prioritizes the most relevant information, reducing redundancy. |
Three Common Pitfalls
- Document parsing fails, showing
unsupported file formatorparsing timeout. This can be due to excessively large file size, abnormal format, orPARSE_FILE_TIMEOUT_SECONDSbeing set too low. - Answers are missing key fields or units, for example, mentioning a dose but without a specific value or unit. This could be due to
OCRrecognition errors, coarse document segmentation leading to critical information being truncated, ortool callingfailing to correctly define and extract this structured information. - The
Doc2Xplugin reports errors after private deployment. This may be due to incorrect configuration of external services thatDoc2Xdepends on, orFastGPTversion incompatibility with the plugin version.
How to Verify Correct Configuration
- Upload PSE documents in various formats (PDF, Word, scanned images) and check if parsing results are complete, especially for charts and handwritten annotations.
- Ask questions about specific operating procedures, responsibilities, or record-keeping requirements in SOPs, and check if the answers accurately cite the original text and extract key information.
- Simulate questions involving doses, batch numbers, or specific toxicity indicators to verify if
tool callingaccurately identifies and structures these values and units. - Check different versions of the same document in the knowledge base to confirm that when a new version is uploaded, the update or replacement logic for old content functions as expected.
The values provided are common starting points and should be measured against the reader's own samples.
Question material comes from public community discussions. Configuration values are common starting points and should be measured against your own samples. Verified on 2026-09-21.