In order to address the constraints of limited corpus resources, restricted input capacity, and data privacy in applying LLMs to the field of safety engineering, a localized accident question-answering model integrating the DeepSeek with a RAG mechanism was constructed to enable intelligent parsing and knowledge services for complex texts, thereby supporting safety management decision-making. A semantic-feature corpus was built based on accident investigation reports and laws and regulations released by government emergency management systems, and technologies such as PaddleOCR, LayoutLMv3, and YOLOv8 were incorporated to accomplish document structure reconstruction and semantic modeling. The model encompassed four stages—document parsing, semantic alignment, knowledge-base construction, and hybrid retrieval—and was designed with capabilities for causal-chain extraction, regulation matching, and semantic mapping. The results indicated that, compared with the Deepseek-r1:32b model without the RAG mechanism, the enhanced model achieved improvements of 7.7% in automated scoring and 17.6% in human evaluation, and the response-speed and stability metrics presented higher numerical performance than those of the baseline model. The model performance was still influenced by the local parameter scale and the knowledge-updating mechanism, yet the experimental findings demonstrate that it is capable of fulfilling the intended functions in the present study.
| 科 Family | 属数 Number of genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) | 属 Genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) |
|---|---|---|---|---|---|---|
| 鹅膏菌科Amanitaceae | 2 | 11 | 5.26 | 鹅膏菌属 Amanita | 10 | 4.78 |
| 小菇科 Mycenaceae | 2 | 12 | 5.74 | 丝盖伞属 Inocybe | 5 | 2.39 |
| 多孔菌科 Polyporaceae | 8 | 14 | 6.70 | 蜡蘑属 Laccaria | 5 | 2.39 |
| 红菇科 Russulaceae | 3 | 23 | 11.00 | 小皮伞属 Marasmius | 6 | 2.87 |
| 小菇属 Mycena | 11 | 5.26 | ||||
| 光柄菇属 Pluteus | 5 | 2.39 | ||||
| 红菇属 Russula | 17 | 8.13 | ||||
| 栓菌属 Trametes | 5 | 2.39 |