Method and device for constructing self-grown expert knowledge base of railway industry LLM Wiki

By using the LLM Wiki self-growing expert knowledge base construction method, the problems of low efficiency and insufficient dynamic generation capability in the construction and management of existing railway knowledge bases are solved, realizing the automatic generation and continuous evolution of railway professional knowledge and improving the intelligent management level of the knowledge base.

CN123178580APending Publication Date: 2026-11-27中铁科学研究院集团有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611654317.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-26
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing railway knowledge bases and knowledge graphs suffer from problems such as long construction cycles, high costs, lack of dynamic generation capabilities, inability to grow autonomously, and lack of wiki organization patterns and large language model knowledge organization capabilities when managing complex professional knowledge, making it difficult to meet the needs of intelligent knowledge management in the railway industry.

Method used

We adopt the LLM Wiki self-growing expert knowledge base construction method. By acquiring knowledge data from multiple sources in the railway field, we construct the original data layer, use the Large Language Model (LLM) for knowledge compilation, establish bidirectional links between Wiki knowledge pages, and realize the continuous evolution of the knowledge base based on the top-level rule configuration file, including a triple growth mechanism of data-driven, interaction-driven, and inspection-driven.

Benefits of technology

It enables the automatic generation and continuous evolution of railway professional knowledge, improves the efficiency of knowledge construction, enhances the ability of knowledge discovery and correlation analysis, reduces the risk of knowledge duplication and conflict, and improves the credibility and engineering application value of intelligent question answering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178580A_ABST
    Figure CN123178580A_ABST
Patent Text Reader

Abstract

The application discloses a railway industry LLM Wiki self-growth expert knowledge base construction method and equipment, and relates to the technical field of knowledge management. The method comprises the following steps: acquiring multi-source railway field knowledge data, and processing and analyzing the same to construct an original data layer; calling an LLM, compiling the knowledge of original data in the original data layer, and constructing a Wiki knowledge base with bidirectional links between Wiki knowledge pages; based on the railway industry field knowledge, establishing a top-level rule configuration file of the railway industry expert library; establishing a knowledge continuous evolution self-growth engine, and based on the top-level rule configuration file, continuously evolving the Wiki knowledge base through the self-growth engine; receiving a user's railway field technical query question, and performing intention recognition and entity extraction on the query question, multi-hop retrieval and reasoning, and traceability display based on the answer generated based on the top-level rule configuration file. The application realizes the transformation of the railway expert knowledge base from a manual maintenance type to an intelligent growth type.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of knowledge management technology, specifically to a method and device for constructing a self-growing expert knowledge base (LLM Wiki) for the railway industry. Background Technology

[0002] The railway industry involves multiple professional fields such as lines, bridges, tunnels, tracks, communication and signaling, power supply, rolling stock, and operation and maintenance. Over the years, it has accumulated a wealth of design specifications, construction standards, equipment data, operation and maintenance procedures, failure cases, and engineering experience data. This knowledge is characterized by diverse sources, complex structure, strong professional relevance, and frequent updates, making it an important technical resource supporting railway engineering construction, equipment operation and maintenance, and safety management.

[0003] Currently, knowledge management in the railway industry mainly employs document management systems, expert knowledge bases, and knowledge graph-based professional knowledge management methods. Traditional expert knowledge bases typically rely on domain experts manually compiling engineering experience and classifying and storing scattered data according to fixed directories. Knowledge graph-based methods, on the other hand, extract entities, attributes, and relationships manually or semi-automatically to construct a structured knowledge network composed of nodes and edges, enabling the querying of related knowledge.

[0004] However, existing knowledge base and knowledge graph technologies still have the following shortcomings in the management of complex professional knowledge in railways.

[0005] (1) Knowledge construction relies on manual labor, which is difficult to adapt to the rapid growth of knowledge in the railway industry. Existing knowledge graphs usually require the pre-design of ontology models, entity categories, relationship types and attribute systems, and rely on experts to manually complete knowledge extraction, review and input. When faced with a large amount of unstructured data in the railway field, such as standard clauses, construction plans, equipment manuals, fault analysis reports and project summaries, a lot of manual labor is required for knowledge organization, resulting in long knowledge construction cycles and high costs, making it difficult to achieve the continuous accumulation of massive amounts of knowledge in the railway industry.

[0006] (2) Existing knowledge graphs focus on structural relationships and lack the ability to dynamically generate knowledge content. Traditional knowledge graphs mainly describe predefined relationship types between entities (such as "belongs to", "comprises", "influences"). Their knowledge navigation relies on a pre-designed graph structure, and the relationship types are fixed in the early stages of system construction, making it impossible to dynamically expand according to the evolution of knowledge content. This static relationship model makes it difficult to capture complex, non-predefined semantic relationships between knowledge content. When faced with complex engineering problems, traditional knowledge graphs often can only provide queries for related nodes that conform to the pre-defined relationship paths, and cannot combine multiple knowledge sources to form analysis, summarization, and reasoning like experts.

[0007] (3) Existing expert knowledge bases and knowledge graphs are usually static knowledge systems, lacking an autonomous growth mechanism. When adding new standards, new equipment, new engineering cases, or expert experience, existing systems usually require manual reorganization and updating of the database or knowledge graph structure. They cannot automatically detect knowledge changes based on new data, nor can they continuously improve knowledge content using user feedback. At the same time, as the scale of knowledge expands, problems such as knowledge duplication, knowledge conflict, page isolation, and knowledge expiration are likely to occur.

[0008] (4) Existing large language model knowledge enhancement methods mainly rely on text retrieval and lack the ability to organize domain knowledge. In recent years, intelligent question answering technology based on large language models and retrieval-enhanced generation (RAG) has been gradually applied to the field of industry knowledge services. This type of method usually uses document slicing and vector retrieval to use relevant text fragments as the context of the large language model to achieve natural language question answering. However, this method mainly focuses on text similarity matching and lacks professional knowledge classification, knowledge hierarchy management, entity relationship organization, and knowledge version evolution mechanism in the railway field. It is prone to problems such as fragmented search results, insufficient knowledge association, and lack of credible basis for answers.

[0009] (5) Existing knowledge systems lack an open wiki organization model oriented towards the accumulation of expert knowledge. Traditional knowledge bases are usually managed using fixed database or knowledge graph structures, and there is a lack of bidirectional linking mechanisms between knowledge pages similar to wikis, making it difficult to form a knowledge network that is jointly maintained and continuously expanded by professionals. At the same time, existing systems cannot effectively integrate the semantic understanding capabilities of large language models with the knowledge organization methods of wikis, making it difficult for railway expert experience to be transformed from one-time question-and-answer sessions or manual editing into long-term accumulated knowledge assets.

[0010] Therefore, existing railway knowledge bases, expert systems, and knowledge graph methods are still insufficient to meet the needs of intelligent knowledge management in the railway industry. There is an urgent need for a new type of railway industry expert knowledge base system that integrates large language model knowledge compilation, Wiki knowledge organization, domain rule constraints, and autonomous growth mechanisms to realize the transformation from "manually constructed knowledge bases" to "intelligently generated, automatically associated, and continuously evolving knowledge systems". Summary of the Invention

[0011] This invention addresses the problems existing in the intelligent management of knowledge in the railway industry by providing a method and equipment for constructing a self-growing expert knowledge base (LLM Wiki) for the railway industry, thereby realizing the transformation of the railway expert knowledge base from manual maintenance to intelligent growth.

[0012] Firstly, a method for constructing a self-growing expert knowledge base LLM Wiki in the railway industry is provided, the method comprising:

[0013] Acquire knowledge data from multiple sources in the railway field, and process and analyze the acquired knowledge data to construct the original data layer;

[0014] The Large Language Model (LLM) is invoked to compile knowledge from the raw data in the raw data layer and construct a Wiki knowledge base with bidirectional links between Wiki knowledge pages.

[0015] Based on knowledge of the railway industry, establish a top-level rule configuration file for the railway industry expert database;

[0016] A knowledge-based self-evolution engine is established, and the Wiki knowledge base is continuously evolved through the self-evolution engine based on the top-level rule configuration file.

[0017] The system receives technical queries from users in the railway field, performs intent recognition and entity extraction on the queries, conducts multi-hop retrieval and reasoning, and generates answers based on the top-level rule configuration file for source tracing and display.

[0018] In some embodiments, the acquired multi-source railway domain knowledge data is processed and parsed to construct an original data layer, including:

[0019] The acquired multi-source railway-related knowledge data is subjected to format recognition and standardization processing.

[0020] Text extraction, paragraph segmentation, and metadata annotation are performed on the multi-source railway domain knowledge data after the format recognition and unification processing.

[0021] The multi-source railway domain knowledge data, after text extraction, paragraph segmentation, and metadata annotation, is stored in the original data layer in an immutable manner.

[0022] For each document in the original data layer, a unique content identifier and version record are generated, and a full-text index and a vectorized index are established.

[0023] In some embodiments, constructing a Wiki knowledge base with bidirectional links between Wiki knowledge pages includes:

[0024] When generating or updating Wiki knowledge pages, LLM is used to perform semantic analysis on the page content to identify implicitly referenced railway knowledge entities or concepts as link targets.

[0025] Based on the identified railway knowledge entities or concepts, perform fuzzy matching and semantic similarity calculation on each Wiki knowledge page to find the matching target Wiki page;

[0026] If a matching Wiki target page is found, an explicit link pointing to the Wiki target page is inserted into the current page, and the reference source identifier of the current page is automatically recorded in the backlink area of ​​the Wiki target page, forming a two-way association;

[0027] If no matching Wiki target page is found, a candidate page placeholder in the pending state is automatically generated as a reference identifier, and the context in which the reference identifier appears is recorded for subsequent knowledge compilation process or for manual improvement by expert users.

[0028] In some embodiments, the continuous evolution of the Wiki knowledge base through the self-growth engine includes: continuous evolution of the Wiki knowledge base based on data-driven knowledge growth, wherein the continuous evolution of the Wiki knowledge base based on data-driven knowledge growth includes: triggering a knowledge compilation process when new railway technical data is received, the knowledge compilation process including:

[0029] The new data is parsed and knowledge is extracted to obtain the analysis results of the new knowledge;

[0030] The LLM is invoked to analyze the semantic relationship between the parsing results of new knowledge and the current Wiki knowledge pages, and to predict the range of pages that will be affected.

[0031] When a conflict is detected between new knowledge and existing knowledge, the conflict is automatically resolved based on the conflict handling rules in the top-level rule configuration file. If the conflict cannot be resolved automatically, the conflict is marked as pending review and the expert user is notified.

[0032] Write operations are only performed on Wiki knowledge pages that have been changed or added, updating the version identifier and timestamp, and maintaining a connection with the original data through the source identifier.

[0033] In some embodiments, the continuous evolution of the Wiki knowledge base through the self-growth engine further includes: continuous evolution of the Wiki knowledge base based on interaction-driven knowledge growth, wherein the continuous evolution of the Wiki knowledge base based on interaction-driven knowledge growth includes:

[0034] Collect user interaction information during the process of using the Wiki knowledge base, wherein the interaction information includes at least: user modification of knowledge page content; user evaluation of knowledge pages; user submission of domain questions;

[0035] The interactive information is compiled into structured knowledge units;

[0036] The LLM is invoked, and based on the top-level rule configuration file, the interaction information and the original information bound in the original data layer are verified in multiple dimensions. The multi-dimensional verification includes: factual consistency verification, logical consistency verification, and source traceability verification.

[0037] If the LLM determines that the interactive information is effectively supported in the original data and is not distorted, the professional knowledge in that field will be converted into a new or updated Wiki knowledge page; if the LLM determines that the knowledge compilation fails, the compiled knowledge content will be abandoned and the reasons for the inconsistency in multi-dimensional verification will be returned to the user.

[0038] User feedback is recorded as a weighting factor in the quality assessment of Wiki knowledge pages, and is used to optimize the ranking of knowledge retrieval in subsequent processes.

[0039] In some embodiments, the continuous evolution of the Wiki knowledge base through the self-growth engine further includes: continuous evolution of the Wiki knowledge base based on inspection-driven knowledge growth, wherein the continuous evolution of the Wiki knowledge base based on inspection-driven knowledge growth includes:

[0040] Knowledge health checks are initiated according to a preset cycle or as needed. These checks include at least: page orphanage detection, broken link detection, knowledge redundancy detection, knowledge obsolescence detection, and structural integrity detection.

[0041] Based on the results of the knowledge health check, a graded repair strategy is implemented, which includes: automatic repair, semi-automatic repair, and manual review. The automatic repair automatically completes the repair for clearly identified problems. The semi-automatic repair generates a repair suggestion report for problems that require expert judgment and pushes it to expert users for review and confirmation. The manual review triggers a manual review process for complex structural problems.

[0042] The corrected knowledge content is rewritten into the Wiki knowledge base, and a new version record is generated.

[0043] In some embodiments, the system receives technical queries from users in the railway field, performs intent recognition and entity extraction on the queries, conducts multi-hop retrieval and reasoning, and generates answers based on the top-level rule configuration file for source tracing and display, including:

[0044] LLM is used to perform intent recognition, domain identification, key entity extraction, and query target determination on user input questions in order to generate structured query tasks;

[0045] Based on the structured query task, in the Wiki knowledge base, multi-hop retrieval is performed through the bidirectional link relationship between Wiki knowledge pages to obtain multiple knowledge nodes related to the target question; multi-hop navigation is performed through the bidirectional link relationship between Wiki knowledge pages to obtain multiple knowledge nodes related to the target question, wherein the multi-hop retrieval path includes at least: question entity → related entity → technical relationship → case page → specification page;

[0046] Reasoning is performed on multiple knowledge fragments retrieved, and combined reasoning is performed on the multiple knowledge fragments according to the top-level rule configuration file;

[0047] The LLM is invoked to generate a structured answer, wherein the structured answer includes: retrieved knowledge as context input, source identifier, and when a question is detected to meet preset conditions, a comprehensive knowledge page for the question is automatically generated and stored in the Wiki knowledge base.

[0048] In some embodiments, the top-level rule configuration file can be iteratively updated by expert users as domain knowledge evolves, and includes at least: a knowledge classification system, naming conventions, a standard page structure template, knowledge quality rules, bidirectional linking rules, and knowledge update rules, wherein...

[0049] The knowledge classification system is used to define the professional classification and knowledge hierarchy of knowledge in the railway field;

[0050] The naming convention is used to define the unified naming rules and format requirements for entities, concepts, relationships, and attributes;

[0051] The standard page structure template is used to define the standard structure template for different types of knowledge pages;

[0052] The knowledge quality rules are used to define knowledge integrity requirements, confidence level labeling specifications, and conflict resolution rules.

[0053] The bidirectional linking rules are used to define which knowledge points should be automatically linked bidirectionally.

[0054] The knowledge update rules are used to define the deduplication rules, conflict resolution rules, and version evolution rules during knowledge compilation.

[0055] In some embodiments, the Wiki knowledge pages include: entity pages, concept pages, and comprehensive analysis pages, wherein,

[0056] The entity page is used to record the name, type, professional affiliation, attribute parameters, and source references of railway lines, stations, structures, or railway equipment;

[0057] The concept page is used to record the names, definitions, professional affiliations, related concepts, and source references of technical terms in the railway field;

[0058] The comprehensive analysis page is used to record the comparison of attribute parameters, similarities, differences, and source citations between at least two railway entities or technical concepts.

[0059] In a second aspect, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method described in any one of the above.

[0060] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0061] 1. A novel railway knowledge organization method based on LLM Wiki knowledge compilation is proposed, which differs from the traditional knowledge graph construction method that relies on manually defining entities and relationships. It realizes the automatic generation of structured Wiki knowledge pages from raw railway data, thereby improving the efficiency of knowledge construction.

[0062] 2. By constructing a three-layer architecture consisting of a raw data layer, a Wiki knowledge layer, and a domain rule layer, the knowledge source, knowledge content, and knowledge rules are separated and managed, enabling railway professional knowledge to have the characteristics of traceable source, organizeable structure, and controllable rules;

[0063] 3. Utilize the bidirectional linking mechanism of Wiki to organize knowledge in the railway field, expanding the static relationship connections in traditional knowledge graphs into a dynamic relational network oriented towards knowledge content, thereby improving the ability to discover knowledge and analyze relationships in complex railway professional problems;

[0064] 4. A three-tiered knowledge growth mechanism—data-driven, interaction-driven, and inspection-driven—is proposed, enabling the knowledge base to automatically update based on new data, expert feedback, and health status, thus transforming it from a manually maintained knowledge base to a self-evolving knowledge base.

[0065] 5. By constraining the knowledge generation process of the large language model through the domain rule layer, unified control is exercised over knowledge classification, page structure, naming conventions, conflict handling, and version evolution, thereby reducing the risk of knowledge illusion in the application of the large language model in the railway professional field.

[0066] 6. By using Wiki multi-hop retrieval and knowledge-based generation mechanisms, intelligent answers can be linked to specific specification documents, engineering cases, and technical data, thereby improving the credibility and engineering application value of intelligent question-and-answer results in the railway industry.

[0067] 7. By combining the semantic understanding capabilities of large language models, the knowledge organization method of Wiki, the knowledge rule constraint mechanism, and the knowledge self-growth mechanism, a new intelligent expert knowledge base technology system for the railway industry is formed, which can be widely applied to railway design, construction, equipment operation and maintenance, safety management and engineering technology decision-making scenarios. Attached Figure Description

[0068] To more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0069] Figure 1 This is a flowchart illustrating a method for constructing a self-growing expert knowledge base (LLM Wiki) for the railway industry, according to an embodiment of the present invention.

[0070] Figure 2 This is a diagram illustrating the overall architecture of the LLM Wiki expert knowledge base according to an embodiment of the present invention.

[0071] Figure 3 This is a schematic diagram of the triple-driven knowledge self-growth according to an embodiment of the present invention.

[0072] Figure 4 This is a structural block diagram of a railway industry LLM Wiki self-growing expert knowledge base construction system according to an embodiment of the present invention.

[0073] Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0074] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the embodiments and accompanying drawings. The illustrative embodiments and descriptions of the present invention are only used to explain the present invention and are not intended to limit the present invention.

[0075] This invention provides a self-growing expert knowledge base construction scheme for an LLM (Large Language Model) Wiki in the railway industry. Addressing the problems of scattered knowledge sources, diverse formats, wide professional spans, complex information relationships, and difficulties in effective data accumulation and reuse throughout the entire lifecycle of railway engineering (design, construction, and operation), this invention constructs a multi-layered knowledge base architecture covering various types of materials, including design specifications, construction acceptance standards, operation and maintenance procedures, safety management methods, equipment operation manuals, typical fault case libraries, and historical project technical summaries. This forms a railway-related knowledge foundation capable of supporting intelligent querying, reasoning solutions, and continuous knowledge evolution.

[0076] In general, this invention first performs format recognition, standardization, text extraction, paragraph segmentation, and metadata annotation on multi-source heterogeneous data, storing it immutably in the original data layer. Full-text and vectorized indexes are then established to ensure the original data is traceable, auditable, and tamper-proof. Based on this, the LLM compilation layer calls a large language model to compile knowledge from the original data, extracting core knowledge units and presenting various knowledge types such as entities, concepts, and comprehensive analyses in a structured Markdown format. A network of connections between knowledge pages is automatically maintained through bidirectional links (Wiki Links), while backlinks to the original data layer via source_id ensure that every piece of knowledge is traceable. Furthermore, a domain rule layer is set up, defining a knowledge classification system, naming conventions, page templates, knowledge quality rules, bidirectional linking rules, and knowledge update rules through a top-level rule configuration file. This provides standardized constraints on knowledge compilation and system behavior, and the configuration file can be continuously iterated and optimized by expert users at the user layer. This invention also constructs a knowledge-based self-evolutionary growth engine driven by three factors: data-driven growth automatically triggers knowledge compilation and conflict detection and resolution when new data is ingested; interaction-driven growth captures user editing and feedback, and after consistency verification by a large language model, it precipitates effective domain knowledge as new or updated knowledge pages; and inspection-driven growth identifies isolated pages, broken links, redundancy, conflicts, obsolescence, and structural incompleteness through regular health checks, generates reports, and triggers automatic repair or manual review processes. These three driving modes together form a closed-loop growth flywheel: "data input → knowledge compilation → user usage → interaction feedback → health check → self-repair → knowledge base evolution." Finally, this invention provides an intelligent query and reasoning solution layer. Utilizing a natural language intelligent query and reasoning solution interface, it navigates and associates knowledge within the Wiki knowledge layer (library) through intent recognition, entity extraction, and multi-hop retrieval. It combines domain rule reasoning and calls a large language model to generate traceable, structured answers, explicitly referencing the original data via source_id. Simultaneously, it automatically generates "Comprehensive FAQ Pages" for frequently queried questions and stores them in the Wiki knowledge layer, achieving "one-time query, permanent accumulation." Therefore, this invention can realize an automated closed loop of knowledge in the railway field, from multi-source data analysis, knowledge compilation and organization, rule-based constraints, continuous evolution and growth to intelligent query and answering, providing efficient, standardized, traceable and evolvable intelligent knowledge service support for all stages of railway engineering design, construction and operation and maintenance.

[0077] On the one hand, this invention provides a method for constructing a self-growing expert knowledge base LLM Wiki for the railway industry. Figure 1 This is a flowchart illustrating a method for constructing a self-growing expert knowledge base (LLM Wiki) for the railway industry, according to an embodiment of the present invention. Figure 1 As shown, the method includes the following steps: S10 to S50.

[0078] Figure 2 This is a diagram illustrating the overall architecture of an LLM Wiki expert knowledge base according to an embodiment of the present invention. The following references... Figure 1 and Figure 2 The technical solution of the present invention will be described in detail below.

[0079] In S10, multi-source railway domain knowledge data is acquired, and the acquired multi-source railway domain knowledge data is processed and parsed to construct the original data layer.

[0080] First, acquire multi-source railway-related knowledge data, including but not limited to: railway design specifications, construction and acceptance standards, operation and maintenance procedures, safety management methods, equipment operation manuals, typical fault case libraries, and technical summaries of historical projects. Then, process and parse the acquired multi-source railway-related knowledge data to construct the raw data layer. Constructing the raw data layer specifically includes the following steps: S11 to S14.

[0081] S11: Perform format recognition and standardization processing on the acquired multi-source railway knowledge data.

[0082] It can recognize the formats of multi-source railway-related knowledge materials and uniformly parse and process materials from different sources and in different formats into supported formats such as PDF and Word. Applicable specialties include at least one of the following: railway lines, bridges, tunnels, tracks, communications, signaling, power supply, rolling stock, and operations. Applicable stages include at least one of the following: design stage, construction stage, and operation and maintenance stage.

[0083] S12: Perform text extraction, paragraph segmentation, and metadata annotation on multi-source railway domain knowledge data after format recognition and standardization.

[0084] After extracting text from multi-source railway-related knowledge materials, the data is segmented into paragraphs, including: identifying chapters, sections, articles, clauses, appendices, explanatory notes, and tables within the multi-source railway-related knowledge materials; generating original data fragments according to the boundaries of chapters, sections, articles, clauses, appendices, explanatory notes, or tables; and recording at least one location information for each original data fragment within the railway-related knowledge materials, including page number, clause number, or text location range. Source citations also include location information associated with the corresponding original data fragment.

[0085] Metadata should include at least: data type, publication time, publishing organization, applicable discipline (line / bridge / tunnel / track / signal / power supply, etc.), applicable stage (design / construction / operation and maintenance), and version number.

[0086] S13: Multi-source railway domain knowledge data, after text extraction, paragraph segmentation, and metadata annotation, is stored in the original data layer in an immutable manner to achieve traceability of knowledge sources and version management.

[0087] S14: Generate a unique content identifier and version record for each document in the original data layer, and establish a full-text index and a vectorized index.

[0088] Specifically, a unique Content ID is generated for each document. This can be based on the content of railway-related knowledge documents, including: performing text standardization on the railway-related knowledge documents to obtain standardized document content; calculating the standardized document content using a digest algorithm to obtain a content digest value; generating a content ID based on the content digest value; storing different versions of railway-related knowledge documents in an append-only manner and establishing version associations between adjacent versions, so that any Wiki knowledge page can trace back to the corresponding railway-related knowledge document based on the content ID and version number.

[0089] In S20, the Large Language Model (LLM) is invoked to compile knowledge from the raw data in the raw data layer and build a Wiki knowledge base with bidirectional links between Wiki knowledge pages.

[0090] The LLM compilation layer calls the Large Language Model (LLM) to perform knowledge compilation processing on the raw data in the raw data layer. This knowledge compilation processing includes extracting core knowledge units from the raw data. This process mainly involves word vector embedding formulas, used to vectorize Chinese characters.

[0091] (1)

[0092] in, This represents the i-th word used for word segmentation. It is a pre-trained word embedding matrix. This represents the word vector to be segmented.

[0093] Vector similarity retrieval formulas are used for semantic recall, text alignment, and matching:

[0094] (2)

[0095] in, , These represent the two word vectors being compared. Represents the similarity function. This represents the Euclidean norm.

[0096] The probability formula for extracting entity / relation triples is used to identify entity, relation, and attribute triples from text:

[0097] (3)

[0098] in, For entities, For relationships, As an attribute, For the current text, It represents probability.

[0099] Knowledge units are presented in a structured Markdown format. Each knowledge page includes at least: entity / concept name, definition or description, attribute parameters, professional classification, source material citations (backlinks to the Raw Layer), and bidirectional links (Wiki Links) to related knowledge points. Knowledge pages include, but are not limited to, the following types: entity pages, concept pages, and comprehensive analysis pages. Entity pages describe specific railway entities, such as a railway line, a station, or a specific type of equipment. Concept pages describe abstract concepts or technical terms, such as "high-speed railway," "seamless rail," and "ZPW-2000 (frequency-controlled, non-insulated-2000) type track circuit." Comprehensive analysis pages are used for comprehensive comparative analysis of multiple related knowledge points, such as "comparison of key technical parameters between CRH (China Railway High-Speed ​​Train) 380A and CR (China Railway) 400AF EMUs." The system automatically maintains bidirectional links (Wiki Links) between knowledge pages, forming a network structure of knowledge in the railway field. The automatic establishment of bidirectional links specifically includes the following steps: S21 to S23.

[0100] S21: When generating or updating Wiki knowledge pages, use LLM to perform semantic analysis on the page content to identify implicitly referenced railway knowledge entities or concepts as link targets (such as equipment models, specification clauses, engineering cases, etc.).

[0101] S22: Based on the identified railway knowledge entities or concepts (including entity standard names, synonyms, abbreviations, etc.), perform fuzzy matching and semantic similarity calculation on each Wiki knowledge page to find the matching Wiki target page.

[0102] S23: If a matching Wiki target page is found, an explicit link pointing to the Wiki target page is inserted into the current page, and the reference of the current page is automatically recorded in the "backlinks" area of ​​the Wiki target page, forming a two-way association; if no matching Wiki target page is found, a candidate page placeholder in the pending state is automatically generated as a reference identifier, and the context position of the reference identifier is recorded for subsequent knowledge compilation process or for manual improvement by expert users.

[0103] All knowledge pages in the Wiki knowledge base (layer) are backlinked to the corresponding immutable original data in the original data layer via source_id (source identifier), ensuring that every piece of knowledge is verifiable. When a new version of the same original data is ingested, the differences between the old and new versions are automatically compared, and only the knowledge pages that have changed are incrementally updated.

[0104] Specifically, establishing bidirectional links between Wiki knowledge pages includes: identifying references to the second knowledge object from the first Wiki knowledge page; searching for a second Wiki knowledge page matching the second knowledge object in the Wiki knowledge layer based on at least two of the second knowledge object's standard name, synonym name, professional field, and attribute parameters; establishing a first link from the first Wiki knowledge page to the second Wiki knowledge page, and establishing a second link from the second Wiki knowledge page to the first Wiki knowledge page; and generating a candidate Wiki knowledge page or a page record to be supplemented corresponding to the second knowledge object when no Wiki knowledge page matching the second knowledge object is found.

[0105] In S30, a top-level rule configuration file for a railway industry expert database is established based on knowledge of the railway industry.

[0106] At the domain rules layer, the top-level rule configuration file defines the specifications and constraints that the LLM must follow in operations such as knowledge compilation, query response, and health checks. The top-level rule configuration file must include at least the following: knowledge classification system, naming conventions, standard page structure template, knowledge quality rules, bidirectional linking rules, and knowledge update rules.

[0107] The knowledge classification system defines the professional classification of knowledge in the railway field (lines / bridges / tunnels / tracks / signaling / power supply / rolling vehicles / operations, etc.) and knowledge levels (specifications / standards / guidelines / case studies / experience, etc.). Naming conventions define unified naming rules and format requirements for entities, concepts, relationships, and attributes. Standard page structure templates define standard structure templates for different types of knowledge pages (e.g., entity pages must include fields such as name, type, professional affiliation, key attributes, and source citations). Knowledge quality rules define knowledge integrity requirements, confidence level labeling specifications, and conflict resolution rules. Two-way linking rules define which knowledge points should be automatically linked. Knowledge update rules define deduplication rules, conflict resolution rules, and version evolution rules during knowledge compilation. The top-level rule configuration file can be iteratively updated by expert users as domain knowledge evolves, enabling continuous optimization of system behavior.

[0108] Specifically, the knowledge classification rules of the railway field knowledge classification system are based on the railway engineering professional system to establish a multi-level knowledge classification system, which includes: track engineering; bridge engineering; tunnel engineering; track engineering; signaling engineering; power supply engineering; rolling stock engineering; and operation and maintenance engineering. Each professional category is further divided into different knowledge topic nodes, and a mapping relationship between professional categories and knowledge entities is established.

[0109] The knowledge hierarchy organization rules establish a knowledge hierarchy system for railway knowledge from different sources and for different purposes. The knowledge hierarchy includes at least: national and industry standards; technical standards; design guidelines; construction plans; engineering cases; and expert experience. Corresponding priority tags are set for different levels of knowledge for subsequent knowledge retrieval and conflict judgment.

[0110] The naming convention for knowledge entities establishes unified naming rules for knowledge entities in the railway field, standardizing the definition of entities, concepts, attributes, and relationships in the knowledge base. Entity naming rules define the name format for equipment, engineering objects, processes, defect types, and testing indicators. Concept naming rules define the expression of technical terms. Relationship naming rules define the types of associations between entities, including: "belonging to"; "composition"; "influence"; "applicability"; "causal"; and "constraint". Attribute naming rules define the names and data formats of entity attribute fields.

[0111] The standard knowledge page template rules are designed to create Wiki page structure templates for different types of knowledge objects. Entity-related page templates should include at least: entity name; entity type; relevant field; functional description; key technical parameters; related entities; and source citation information. Concept-related page templates should include at least: project name; application scenario; technical solution; implementation process; application effects; and source documents. Comprehensive analysis page templates should include at least: standard name; issuing organization; scope of application; core clauses; and related technical objects.

[0112] Knowledge quality constraint rules are used to establish knowledge quality evaluation rules and to perform integrity, credibility, and consistency checks on knowledge pages. Specifically: integrity checks are used to determine whether a knowledge page contains fields required by the template; confidence labeling is used to assign credibility levels to knowledge content based on the knowledge source level and model generation results; conflict handling rules are used to determine the final valid knowledge version based on the knowledge source level and publication time when multiple knowledge pages have contradictory descriptions.

[0113] Two-way linking rules are automatic association rules for establishing relationships between Wiki knowledge pages. When two knowledge objects meet preset association conditions, a two-way link is established between the two knowledge pages. Association conditions include at least: association within the same engineering object; association within the same professional field; existence of a technical causal relationship; existence of a hierarchical relationship; and existence of an application case reference relationship.

[0114] Knowledge update rules establish rules for knowledge version evolution, managing the versioning of newly added, modified, and deleted knowledge. Each knowledge record is bound to a unique source ID (source_id) and records the update time (timestamp). When new knowledge enters the knowledge base, the following actions are performed: content duplication detection; semantic similarity matching; conflict determination; version merging; resulting in a new knowledge version. The top-level domain rule configuration file is stored in the rule layer and allows railway domain experts to modify it according to changes in the knowledge system, adjusting the knowledge processing behavior of the large language model.

[0115] In S40, a knowledge-based self-evolution engine is established, and the Wiki knowledge base is continuously evolved through the self-evolution engine based on the top-level rule configuration file.

[0116] refer to Figure 3 The self-growth engine achieves continuous evolution of the railway expert knowledge base through the following three driving modes: data-driven growth, interaction-driven knowledge growth, and inspection-driven knowledge growth.

[0117] For data-driven growth, a knowledge compilation process is automatically triggered when new original data is ingested. This knowledge compilation process includes: (a) Incremental parsing: The system only performs text parsing and knowledge extraction on the new data to obtain the parsing results, rather than recompiling the entire knowledge base; (b) Change impact analysis: The system uses a large language model to analyze the semantic relationship between the newly extracted knowledge units and existing Wiki pages, and predicts the range of pages that may be affected; (c) Conflict detection and resolution: When a conflict is detected between new knowledge and existing knowledge, it is automatically resolved according to the conflict handling rules defined in the S3 rule layer (such as source priority, publication time order, and data type authority level). Conflicts that cannot be automatically resolved are marked as pending review and expert users are notified; (d) Incremental update: Only the knowledge pages that have been changed or added are written to, updating their version_id (version identifier) ​​and timestamp, and maintaining their binding with the original data through the source_id.

[0118] For interaction-driven growth, the system captures interaction information corresponding to user behaviors during the use of the expert database. This interaction information includes: user editing and modifications to knowledge pages, user feedback on knowledge content (e.g., "useful / useless / needs correction"), and questions submitted by users through the query interface. The following steps are used to achieve continuous evolution of the Wiki knowledge base based on interactive knowledge growth: (a) Knowledge compilation: Compile user-edited or supplemented information (i.e., interactive information) into structured knowledge units; (b) Consistency verification: Call the large language model to perform multi-dimensional verification of the knowledge submitted by the user and the original data bound in the original data layer. The verification dimensions include: factual consistency (whether there is a factual contradiction with the original data), logical consistency (whether it conforms to the domain logical relationship defined by the S3 rule layer), and source traceability (whether it can be traced back to the specific original data clause or paragraph); (c) Decision and writing: If the LLM determines that the content submitted by the user is effectively supported in the original data and is not distorted, then the domain professional knowledge is deposited into a new or updated Wiki page; if the verification fails, then the knowledge compilation content is abandoned and the specific reason for the inconsistency is returned to the user; (d) User feedback loop: Record the user's evaluation feedback as a weight factor for the quality evaluation of the knowledge page, which is used for subsequent optimization of knowledge retrieval ranking.

[0119] For inspection-driven growth, a knowledge health check process is initiated periodically or as needed. Health checks include: page isolation detection (pages without any bidirectional links); link integrity detection (links pointing to non-existent pages); knowledge duplication detection (multiple pages with highly repetitive content identified based on semantic similarity calculations); knowledge conflict detection (contradictory descriptions of the same knowledge point); knowledge timeliness detection (knowledge pages that have not been updated for more than a preset time); and page structure detection (whether they conform to the template defined by the rule configuration). After the health check, a tiered repair strategy is implemented: (a) Automatic repair: For clearly identifiable issues (such as automatic association recommendations for isolated pages, automatic correction of broken links, and automatic merging of duplicate pages), the system automatically completes the repair; (b) Semi-automatic repair: For issues requiring expert judgment (such as knowledge conflict resolution), the system generates a repair suggestion report and pushes it to expert users for review and confirmation; (c) Manual review: For complex structural issues, a manual review process is triggered. All repair results are written as new knowledge versions to the Wiki layer, and repair logs are recorded to ensure the traceability of the knowledge evolution process. The health check module outputs a health check report; based on the detection results: automatically merges pages; repairs broken links; and updates the knowledge version. The repaired knowledge content is rewritten into the Wiki layer, generating a new version record. Through the above processes of data input, knowledge compilation, user interaction, health checks, and knowledge repair, a closed loop of continuous evolution of the knowledge base is formed.

[0120] The three driving modes described above do not operate in isolation, but rather together form a closed-loop "growth flywheel" for the knowledge base: data input triggers knowledge compilation, user interaction generates feedback, health checks identify system defects, and self-repair and improve the knowledge system, thereby enhancing the quality of subsequent knowledge compilation and user queries. This closed loop enables the knowledge base to continuously optimize itself, achieving a transformation from a manually maintained knowledge base to an intelligently growing knowledge system. The three driving modes together constitute the "growth flywheel" of the knowledge base: data input → knowledge compilation → user use → interactive feedback → health checks → self-repair → knowledge base evolution, forming a closed loop.

[0121] In S50, the system receives technical queries from users in the railway field, performs intent recognition and entity extraction on the queries, conducts multi-hop retrieval and reasoning, and generates answers based on the top-level rule configuration file for source tracing and display.

[0122] The intelligent query and reasoning solution layer provides a natural language query interface, receiving users' input of technical questions in the railway field. It performs intent recognition and entity extraction on the query questions, transforming them into knowledge base retrieval tasks. Multi-hop retrieval is performed in the Wiki knowledge layer, navigating between related knowledge pages via bidirectional Wiki Links to collect knowledge fragments related to the query question. Based on the domain logic defined in the top-level rule configuration file, the system infers and synthesizes the retrieved knowledge. It then calls a large language model, using the retrieved knowledge fragments as context, to generate a structured answer. The answer explicitly references the specific original data supporting the answer using `source_id`, ensuring the traceability and credibility of the answer. The system records the user's query history; for frequently queried questions, it automatically generates a "Comprehensive Page of Frequently Asked Questions" and stores it in the Wiki layer, achieving "one-time query, permanent record."

[0123] Compared with the prior art, the present invention has the following advantages and beneficial effects.

[0124] 1. A novel railway knowledge organization method based on LLM Wiki knowledge compilation is proposed, which differs from the traditional knowledge graph construction method that relies on manually defining entities and relationships. This method realizes the automatic generation of structured Wiki knowledge pages from raw railway data, thereby improving the efficiency of knowledge construction.

[0125] 2. By constructing a three-layer architecture consisting of a raw data layer, a Wiki knowledge layer, and a domain rule layer, the knowledge source, knowledge content, and knowledge rules are separated and managed, enabling railway professional knowledge to have the characteristics of traceable source, organizeable structure, and controllable rules.

[0126] 3. Utilize the bidirectional linking mechanism of Wiki to organize railway-related knowledge, expanding the static relationship connections in traditional knowledge graphs into a dynamic relational network oriented towards knowledge content, thereby improving the ability to discover knowledge and analyze relationships in complex railway professional problems.

[0127] 4. A three-tiered knowledge growth mechanism—data-driven, interaction-driven, and inspection-driven—is proposed, enabling the knowledge base to automatically update based on new data, expert feedback, and health status, thus transforming it from a manually maintained knowledge base to a self-evolving knowledge base.

[0128] 5. By constraining the knowledge generation process of the large language model through the domain rule layer, unified control is exercised over knowledge classification, page structure, naming conventions, conflict handling, and version evolution, thereby reducing the risk of knowledge illusion in the application of the large language model in the railway professional field.

[0129] 6. By using Wiki multi-hop retrieval and knowledge-based generation mechanisms, intelligent answers can be linked to specific specification documents, engineering cases, and technical data, thereby improving the credibility and engineering application value of intelligent question-and-answer results in the railway industry.

[0130] 7. By combining the semantic understanding capabilities of large language models, the knowledge organization method of Wiki, the knowledge rule constraint mechanism, and the knowledge self-growth mechanism, a new intelligent expert knowledge base technology system for the railway industry is formed, which can be widely applied to railway design, construction, equipment operation and maintenance, safety management and engineering technology decision-making scenarios.

[0131] On the other hand, this invention provides a railway industry LLM Wiki self-growing expert knowledge base construction system. Figure 4 This is a structural block diagram of a railway industry LLM Wiki self-growing expert knowledge base construction system according to an embodiment of the present invention. (Reference) Figure 4 The system includes: a raw data layer construction module, a Wiki knowledge base construction module, a rule configuration file creation module, a Wiki knowledge base evolution module, and a question query and reasoning module.

[0132] The raw data layer construction module is used to acquire knowledge data from multiple sources in the railway field, and to process and parse the acquired knowledge data in the railway field to construct the raw data layer.

[0133] The Wiki knowledge base building module is used to call the Large Language Model (LLM) to compile knowledge from the raw data in the raw data layer and build a Wiki knowledge base with bidirectional links between Wiki knowledge pages.

[0134] The rule configuration file creation module is used to: create a top-level rule configuration file for a railway industry expert database based on knowledge of the railway industry.

[0135] The Wiki knowledge base evolution module is used to establish a self-growing engine for continuous knowledge evolution, and based on the top-level rule configuration file, to continuously evolve the Wiki knowledge base through the self-growing engine.

[0136] The question query reasoning module is used to receive technical questions from users in the railway field, perform intent recognition and entity extraction on the questions, conduct multi-hop retrieval and reasoning, and generate answers based on the top-level rule configuration file for source tracing and display.

[0137] For further details regarding the construction system of the railway industry LLM Wiki self-growing expert knowledge base, please refer to the previous description of the construction method of the railway industry LLM Wiki self-growing expert knowledge base, which will not be repeated here.

[0138] In the case of implementing the functions of the integrated modules described above in hardware, the embodiments of the present invention provide a structure of an electronic device as described in the above embodiments. Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. (Reference) Figure 5 The device includes: at least one processor; and at least one memory. The at least one memory is coupled to the at least one processor and stores instructions for execution by the at least one processor, which, when executed by the at least one processor, implement the methods described above.

[0139] A processor can be a set of logic blocks, modules, and circuits that implement or execute the various exemplary logic blocks, modules, and circuits described in connection with embodiments of the present invention. The processor can be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in connection with embodiments of the present invention. A processor can also be a combination that implements computational functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, etc.

[0140] The memory may be read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, electrically erasable programmable read-only memory (EEPROM), disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.

[0141] In one implementation, the memory can exist independently of the processor. The memory can be connected to the processor via a bus and used to store instructions or program code. When the processor calls and executes the instructions or program code stored in the memory, it can implement the method provided in the embodiments of the present invention. In another implementation, the memory can also be integrated with the processor.

[0142] On the other hand, the present invention also provides a computer-readable storage medium (e.g., a non-transitory computer-readable storage medium) storing computer program instructions that, when executed on a computer, cause the computer to perform the method as described in any of the above embodiments.

[0143] Exemplary examples show that the aforementioned computer-readable storage media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks, or magnetic tapes), optical discs (e.g., compact disks (CDs), digital versatile disks (DVDs), etc.), smart cards, and flash memory devices (e.g., erasable programmable read-only memory (EPROMs), cards, sticks, or key drives, etc.). The various computer-readable storage media described in this invention may represent one or more devices and / or other machine-readable storage media for storing information. The term "machine-readable storage medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing, and / or carrying instructions and / or data.

[0144] This invention provides a computer program that, when run on a computer, causes the computer to perform the method of any of the above embodiments.

[0145] This invention provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the method of any of the above embodiments.

[0146] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for constructing a self-growing expert knowledge base LLM Wiki in the railway industry, characterized in that, The method includes: Acquire knowledge data from multiple sources in the railway field, and process and analyze the acquired knowledge data to construct the original data layer; The Large Language Model (LLM) is invoked to compile knowledge from the raw data in the raw data layer and construct a Wiki knowledge base with bidirectional links between Wiki knowledge pages. Based on knowledge of the railway industry, establish a top-level rule configuration file for the railway industry expert database; A knowledge-based self-evolution engine is established, and the Wiki knowledge base is continuously evolved through the self-evolution engine based on the top-level rule configuration file. The system receives technical queries from users in the railway field, performs intent recognition and entity extraction on the queries, conducts multi-hop retrieval and reasoning, and generates answers based on the top-level rule configuration file for source tracing and display.

2. The method according to claim 1, characterized in that, The acquired multi-source railway-related knowledge data is processed and analyzed to construct the original data layer, including: The acquired multi-source railway-related knowledge data is subjected to format recognition and standardization processing. Text extraction, paragraph segmentation, and metadata annotation are performed on the multi-source railway domain knowledge data after the format recognition and unification processing. The multi-source railway domain knowledge data, after text extraction, paragraph segmentation, and metadata annotation, is stored in the original data layer in an immutable manner. For each document in the original data layer, a unique content identifier and version record are generated, and a full-text index and a vectorized index are established.

3. The method according to claim 1, characterized in that, Building a Wiki knowledge base with bidirectional links between Wiki knowledge pages includes: When generating or updating Wiki knowledge pages, LLM is used to perform semantic analysis on the page content to identify implicitly referenced railway knowledge entities or concepts as link targets. Based on the identified railway knowledge entities or concepts, perform fuzzy matching and semantic similarity calculation on each Wiki knowledge page to find the matching target Wiki page; If a matching Wiki target page is found, an explicit link pointing to the Wiki target page is inserted into the current page, and the reference source identifier of the current page is automatically recorded in the backlink area of ​​the Wiki target page, forming a two-way association; If no matching Wiki target page is found, a candidate page placeholder in the pending state is automatically generated as a reference identifier, and the context in which the reference identifier appears is recorded for subsequent knowledge compilation process or for manual improvement by expert users.

4. The method according to any one of claims 1 to 3, characterized in that, The Wiki knowledge base is continuously evolved through the self-growth engine, including: continuous evolution of the Wiki knowledge base based on data-driven knowledge growth, wherein the continuous evolution of the Wiki knowledge base based on data-driven knowledge growth includes: triggering a knowledge compilation process when new railway technical data is received, the knowledge compilation process including: The new data is parsed and knowledge is extracted to obtain the analysis results of the new knowledge; The LLM is invoked to analyze the semantic relationship between the parsing results of new knowledge and the current Wiki knowledge pages, and to predict the range of pages that will be affected. When a conflict is detected between new knowledge and existing knowledge, the conflict is automatically resolved based on the conflict handling rules in the top-level rule configuration file. If the conflict cannot be resolved automatically, the conflict is marked as pending review and the expert user is notified. Write operations are only performed on Wiki knowledge pages that have been changed or added, updating the version identifier and timestamp, and maintaining a connection with the original data through the source identifier.

5. The method according to claim 4, characterized in that, The continuous evolution of the Wiki knowledge base through the self-growth engine further includes: continuous evolution of the Wiki knowledge base based on interaction-driven knowledge growth, wherein the continuous evolution of the Wiki knowledge base based on interaction-driven knowledge growth includes: Collect user interaction information during the process of using the Wiki knowledge base, wherein the interaction information includes at least: user modification of knowledge page content; user evaluation of knowledge pages; user submission of domain questions; The interactive information is compiled into structured knowledge units; The LLM is invoked, and based on the top-level rule configuration file, the interaction information and the original information bound in the original data layer are verified in multiple dimensions. The multi-dimensional verification includes: factual consistency verification, logical consistency verification, and source traceability verification. If the LLM determines that the interactive information is effectively supported in the original data and is not distorted, the professional knowledge in that field will be converted into a new or updated Wiki knowledge page; if the LLM determines that the knowledge compilation fails, the compiled knowledge content will be abandoned and the reasons for the inconsistency in multi-dimensional verification will be returned to the user. User feedback is recorded as a weighting factor in the quality assessment of Wiki knowledge pages, and is used to optimize the ranking of knowledge retrieval in subsequent processes.

6. The method according to claim 5, characterized in that, The continuous evolution of the Wiki knowledge base through the self-growth engine further includes: continuous evolution of the Wiki knowledge base based on inspection-driven knowledge growth, wherein the continuous evolution of the Wiki knowledge base based on inspection-driven knowledge growth includes: Knowledge health checks are initiated according to a preset cycle or as needed. These checks include at least: page orphanage detection, broken link detection, knowledge redundancy detection, knowledge obsolescence detection, and structural integrity detection. Based on the results of the knowledge health check, a graded repair strategy is implemented, which includes: automatic repair, semi-automatic repair, and manual review. The automatic repair automatically completes the repair for clearly identified problems. The semi-automatic repair generates a repair suggestion report for problems that require expert judgment and pushes it to expert users for review and confirmation. The manual review triggers a manual review process for complex structural problems. The corrected knowledge content is rewritten into the Wiki knowledge base, and a new version record is generated.

7. The method according to claim 1, characterized in that, The system receives technical queries from users in the railway field, performs intent recognition and entity extraction on the queries, conducts multi-hop retrieval and reasoning, and generates answers based on the top-level rule configuration file for source tracing and display, including: LLM is used to perform intent recognition, domain identification, key entity extraction, and query target determination on user input questions in order to generate structured query tasks; Based on the structured query task, in the Wiki knowledge base, multi-hop retrieval is performed through the bidirectional link relationship between Wiki knowledge pages to obtain multiple knowledge nodes related to the target question; multi-hop navigation is performed through the bidirectional link relationship between Wiki knowledge pages to obtain multiple knowledge nodes related to the target question, wherein the multi-hop retrieval path includes at least: question entity → related entity → technical relationship → case page → specification page; Reasoning is performed on multiple knowledge fragments retrieved, and combined reasoning is performed on the multiple knowledge fragments according to the top-level rule configuration file; The LLM is invoked to generate a structured answer, wherein the structured answer includes: retrieved knowledge as context input, source identifier, and when a question is detected to meet preset conditions, a comprehensive knowledge page for the question is automatically generated and stored in the Wiki knowledge base.

8. The method according to claim 1, characterized in that, The top-level rule configuration file can be iteratively updated by expert users as domain knowledge evolves, and includes at least: a knowledge classification system, naming conventions, a standard page structure template, knowledge quality rules, bidirectional linking rules, and knowledge update rules. The knowledge classification system is used to define the professional classification and knowledge hierarchy of knowledge in the railway field; The naming convention is used to define the unified naming rules and format requirements for entities, concepts, relationships, and attributes; The standard page structure template is used to define the standard structure template for different types of knowledge pages; The knowledge quality rules are used to define knowledge integrity requirements, confidence level labeling specifications, and conflict resolution rules. The bidirectional linking rules are used to define which knowledge points should be automatically linked bidirectionally. The knowledge update rules are used to define the deduplication rules, conflict resolution rules, and version evolution rules during knowledge compilation.

9. The method according to claim 1, characterized in that, The Wiki knowledge pages include: entity pages, concept pages, and comprehensive analysis pages, among which... The entity page is used to record the name, type, professional affiliation, attribute parameters, and source references of railway lines, stations, structures, or railway equipment; The concept page is used to record the names, definitions, professional affiliations, related concepts, and source references of technical terms in the railway field. The comprehensive analysis page is used to record the comparison of attribute parameters, similarities, differences, and source citations between at least two railway entities or technical concepts.

10. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the method described in any one of claims 1 to 9.