A vertical domain content refinement and intelligent question answering method and system

By performing copyright and whitelist verification on multi-source content, constructing a controlled index library, and using a domain model for dynamic template assembly and consistency verification, the problem of ambiguous knowledge boundaries in vertical domain question-answering systems is solved, resulting in a highly consistent and secure intelligent question-answering system suitable for fields such as medicine and law.

CN123180362APending Publication Date: 2026-11-27CAIXIN MEDIA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611419387.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-14
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing vertical domain question-answering systems struggle to overcome the blurring of knowledge boundaries, lack automated error correction and continuous evolution capabilities, and lack full-process self-healing functions, resulting in insufficient content compliance and consistency.

Method used

By verifying copyrights and whitelisting multiple sources of content, a controlled index library is constructed. Domain models are used for dynamic template assembly and consistency verification. By combining long short-term memory joint attention mechanism and conditional random field model, efficient recombination and output control of knowledge fragments are achieved.

Benefits of technology

It achieves high consistency and security in vertical domain content and intelligent question-answering system, ensuring the legality and professionalism of output content, possessing self-evolution capabilities, and is suitable for highly sensitive fields such as medical and legal consulting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180362A_ABST
    Figure CN123180362A_ABST
Patent Text Reader

Abstract

The application discloses a vertical field content refining and intelligent question-answering method and system, relates to the technical field of natural language processing, and performs copyright verification and white list access verification on multi-source content, extracts unstructured documents through the verification, cuts the unstructured documents into multiple available knowledge segments, and obtains a controlled index library; in response to a received user question, available knowledge segments matched with the user question are searched from the controlled index library, field knowledge points are called, according to question-answering constraint conditions, the available knowledge segments, the field knowledge points and the question-answering constraint conditions are spliced into a first feature vector through a dynamic template assembler; the first feature vector is processed by using a field model, and target content is output; the target content is intercepted, consistency post-verification is performed on the target content, and after verification, the verified target content and corresponding available knowledge segment sources are associated and output.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of natural language processing technology, and in particular to a method and system for refining content in a vertical domain and providing intelligent question answering. Background Technology

[0002] With the explosive growth of large language model technology, intelligent question answering systems based on retrieval enhancement have been widely used in vertical fields such as enterprise knowledge bases, medical consultation, and legal compliance. The traditional RAG method usually adopts a static mode of first building a database by slicing vectors and then injecting semantic retrieval into the model. However, when facing specific vertical fields with extremely stringent requirements for content compliance, data authority, and high consistency of answers, the following significant shortcomings still exist: Traditional systems struggle to effectively block unauthorized content, and large models themselves possess generalization and divergence characteristics, making them prone to calling open-domain field data from their pre-training phase when generating answers, resulting in outputs exceeding the specified copyright control scope and triggering copyright disputes or compliance risks; Existing static slice retrieval often only performs simple semantic similarity matching, lacking the ability to reorganize the deep logical context of long texts, resulting in low formatting and accuracy of model outputs when facing complex tasks such as summary generation and multi-attribute structured extraction; The autoregressive mechanism of large models inevitably produces semantic illusions, and existing post-processing mechanisms mostly rely on manual labeling and fine-tuning, lacking a mechanism that can automatically trigger prompt word correction or dynamically reduce the retrieval weight of low-quality segments based on output quality. Summary of the Invention

[0003] The technical problem solved by this invention is that existing technologies are unable to overcome the ambiguity of knowledge boundaries, lack of automated error correction and continuous evolution capabilities, and difficulty in refining content for specific content sources with full-process self-healing functions in existing vertical domain question-and-answer systems.

[0004] To solve the above-mentioned technical problems, the present invention provides the following technical solution: Firstly, a method for refining content and providing intelligent question answering within a vertical domain includes the following steps: Step S1: Perform copyright verification and whitelist access verification on multi-source content, extract unstructured documents through verification, and divide the unstructured documents into multiple usable knowledge fragments to obtain a controlled index library; Step S2: In response to the received user question, retrieve available knowledge fragments that match the user question from the controlled index library, retrieve domain knowledge points, and according to the question-and-answer constraints, use a dynamic template assembler to concatenate the available knowledge fragments, domain knowledge points, and question-and-answer constraints into a first feature vector. Step S3: Process the first feature vector using the domain model and output the target content; Step S4: Intercept the target content and perform a consistency check on the target content. After the check is passed, associate the verified target content with the source of the corresponding available knowledge fragment and output the result.

[0005] Preferably, step S1 includes the following sub-steps: Step S11: Obtain the unique digital copyright identifier and publication timestamp embedded in the multi-source content, compare and verify them through the preset copyright legality rule base, and complete the copyright verification; Step S12: Match the verified multi-source content with the whitelist of allowed institutions to block non-compliant data and extract compliant unstructured documents; Step S13: Using a semantic-level sentence segmentation algorithm and a hierarchical tree parser, the unstructured document is segmented, preserving the relationship between contextual parent and child nodes, and generating multiple usable knowledge fragments; Step S14: Extract the keyword features and category entities of each available knowledge fragment, and construct a controlled index library based on the inverted index and high-dimensional vector index.

[0006] Preferably, step S2 includes the following sub-steps: Step S21: Perform word segmentation and dependency parsing analysis on the user's question to extract the core intent, and perform semantic distance similarity retrieval based on the dual-path hybrid controlled index library to recall the Top-K available knowledge fragments; Step S22: Retrieve the domain standard terminology set and common sense logic graph associated with the core intent, and extract relevant domain knowledge points; Step S23: Activate the constraint analysis model based on the long short-term memory joint attention mechanism, analyze the output type restrictions and safety boundary restrictions of the user's current question, and generate question-and-answer constraints; Step S24: The available knowledge fragments, domain knowledge points and question-answering constraints are concatenated according to a standard template and transformed by dense vectorization embedding to generate a first feature vector representing high-density information.

[0007] Preferably, step S3 includes the following sub-steps: Step S31: Construct a large domain model with a hybrid architecture of three task branches; Step S32: Input the first feature vector into the domain-wide model to trigger the corresponding task branch for parallel inference. When the task branch generates a summary, a multi-level compression mechanism is activated to output a summary text containing the core structure of the source document. When the task branch is structured extraction, the entity is aligned using a conditional random field model, and regularized attribute JSON data is output. When the task branch is a restricted solution, the autoregressive probability space of the large model is restricted, and word frequency sampling is performed only within the boundary indicated by the first feature vector, outputting a natively interpretable draft answer.

[0008] Preferably, step S4 includes the following sub-steps: Step S41: Capture the initial draft answer output by the domain big model through the output interception gateway, calculate the semantic consistency probability between the initial draft answer and the original available knowledge fragment using the implication relation comparison model, and obtain the content consistency score; Step S42: The content consistency score is compared with the preset system security threshold by interval alignment to determine the current hallucination risk level. The hallucination risk level includes safe level, potential risk level and high risk level.

[0009] Preferably, the specific method for comparing the content consistency score with a preset system security threshold in step S42 is as follows: When the content consistency score is greater than or equal to the preset high score threshold, the output is determined not to contain large model illusion, and a safety-level risk is generated. When the content consistency score is between a preset low score threshold and a high score threshold, it is determined that the output has local ambiguity or conceptual deviation, generating a potential risk. When the content consistency score is less than the preset low score threshold, it is determined that the output deviates from the controlled knowledge source or produces a serious logical illusion, generating a high-risk level risk.

[0010] Preferably, step S42 is followed by evolutionary feedback based on risk level: When the risk level is security level, execute the normal output stream, directly allow the first draft answer, and automatically increase the citation confidence weight of the corresponding available knowledge fragment in the controlled index library; When it is a potential risk, the silent correction feedback is triggered, the initial draft answer is redirected to the prompt word correction module, and after adding the strict prohibition of divergence constraint, it returns to step S2 to assemble the vector. When the risk level is high, the current output is forcibly blocked and the answer is refused. At the same time, the user's current question and the knowledge fragment ID that caused the failure are extracted, packaged into a gap evolution log and sent to the backend evolution module.

[0011] Preferably, a Markov decision process and a reinforcement learning proximal policy optimization algorithm are used for global optimization and evolutionary updating of the system's capabilities, specifically including: The gap evolution log is used as the input to the state space, and the knowledge coverage and model answer accuracy in the controlled index are used as the multi-objective optimization reward function. The reinforcement learning algorithm dynamically adjusts the weight coefficients of various constraints in the dynamic template assembler and adaptively lowers the initial weights of available knowledge fragments that lead to high risk during recall, outputting the globally optimal solution set of context organization strategies.

[0012] Preferably, step S3 further includes: Real-time monitoring of implicit feedback signals from the user interface, including page dwell time, single-word copy rate, and number of high-frequency follow-up questions; If multiple outputs of a certain available knowledge fragment lead to frequent follow-up questions or short dwell times, the current node is determined to be semantically ambiguous, a chain-breaking attenuation strategy is executed, and the node is removed from the core retrieval area. If a user's query does not find any fragment in the controlled index, a web crawler or an external trusted database API is automatically triggered. The large model is then reworked and incrementally updated to the controlled index, completing the active stitching process.

[0013] Secondly, a vertical domain content refinement and intelligent question answering system includes a boundary access module, a context organization module, an execution module, and a verification output module; The boundary access module is used to perform copyright verification and whitelist access verification on multi-source content, extract unstructured documents through verification, and divide the unstructured documents into multiple usable knowledge fragments to obtain a controlled index library. The context organization module is used to respond to a received user question by retrieving available knowledge fragments that match the user question from the controlled index library, retrieving domain knowledge points, and concatenating the available knowledge fragments, domain knowledge points, and question-answering constraints into a first feature vector through a dynamic template assembler. The execution module is used to process the first feature vector using the domain model and output the target content; The verification output module is used to intercept the target content and perform a consistency check on the target content. After the verification is passed, the verified target content and the corresponding source of available knowledge fragments are associated and output.

[0014] The beneficial effects of this invention are as follows: A dual admission mechanism ensures the legitimacy of the controlled index library from the source; simultaneously, in steps S2 and S3, a security boundary constraint is dynamically generated through a long short-term memory joint attention mechanism, forcibly locking the model output space during the word frequency sampling stage, fundamentally eliminating the illusion of divergence across copyright boundaries and ensuring the consistency of domain content; it changes the traditional single text output mode of question answering, constructing a hybrid architecture domain-wide model with three task branches: summary generation, structured extraction, and restricted solution. Combined with models such as Conditional Random Fields (CRF), it can efficiently and accurately reorganize messy controlled fragments into a one-sentence summary or regularized attribute JSON data, greatly enhancing the practical value of content refinement; this invention... Attached Figure Description

[0015] Figure 1 A flowchart illustrating the steps of a vertical domain content refinement and intelligent question answering method provided in one embodiment of the present invention; Figure 2 A basic flowchart of a vertical domain content refinement and intelligent question-answering system is provided as an embodiment of the present invention; Figure 3 This is a basic flowchart of a hybrid architecture domain model with three task branches. Detailed Implementation

[0016] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.

[0017] Example 1, referring to Figure 1-3 This paper provides a method for refining content and providing intelligent question answering in a vertical field, which includes the following steps: Step S1: Perform copyright verification and whitelist access verification on multi-source content, extract unstructured documents through verification, and divide the unstructured documents into multiple usable knowledge fragments to obtain a controlled index library; Step S2: In response to the received user question, retrieve available knowledge fragments that match the user question from the controlled index library, retrieve domain knowledge points, and according to the question-and-answer constraints, use a dynamic template assembler to concatenate the available knowledge fragments, domain knowledge points, and question-and-answer constraints into a first feature vector. Step S3: Process the first feature vector using the domain model and output the target content; Step S4: Intercept the target content and perform a consistency check on the target content. After the check is passed, associate the verified target content with the source of the corresponding available knowledge fragment and output the result.

[0018] This embodiment organically integrates copyright verification, knowledge retrieval, logical constraints, and consistency verification by constructing a closed-loop system across the entire chain. Step S1 ensures the compliance and security of the knowledge base content, mitigating intellectual property risks at the source. Step S2 introduces key domain knowledge points and constraints to construct a structured input vector, addressing the issue of unprofessional and divergent responses from general-purpose models in vertical domains. The consistency post-verification mechanism in step S4 provides a fact-checking checkpoint for the system output, effectively suppressing model illusions. This invention improves the controllability, accuracy, and security of intelligent question-answering systems in highly sensitive vertical domains such as medicine and law, and is suitable for scenarios with strict requirements for content authenticity and copyright, such as enterprise-level knowledge base construction and professional consulting assistance. Step S1 includes the following sub-steps: Step S11: Obtain the unique digital copyright identifier and publication timestamp embedded in the multi-source content, compare and verify them through the preset copyright legality rule base, and complete the copyright verification; Step S12: Match the verified multi-source content with the whitelist of allowed institutions to block non-compliant data and extract compliant unstructured documents; Step S13: Using a semantic-level sentence segmentation algorithm and a hierarchical tree parser, the unstructured document is segmented, preserving the relationship between contextual parent and child nodes, and generating multiple usable knowledge fragments; Step S14: Extract the keyword features and category entities of each available knowledge fragment, and construct a controlled index library based on the inverted index and high-dimensional vector index.

[0019] In this embodiment, the documents entering the database are first subject to a strict compliance review. Specifically, the SHA-256 algorithm is used to calculate the digital fingerprint of the document content, i.e., the unique digital copyright identifier. Simultaneously, extract the publication timestamp T from the document metadata and maintain a hash list containing legally authorized content. If Hdoc∈ If the source organization is on a pre-defined whitelist, it is deemed compliant; otherwise, it is blocked. To ensure that only content from trusted sources can enter the knowledge base, we construct a data security boundary to extract compliant unstructured documents and use a BERT-based semantic-level sentence segmentation algorithm to calculate the semantic similarity of adjacent sentences. When the similarity is below a preset threshold, segmentation is performed, and a hierarchical tree parser is used to preserve the parent-child logic between paragraphs. This embodiment utilizes a document parsing engine to extract the layout features and structural tags (such as H1 and H2 heading tags) of unstructured documents; the parser uses the highest-level heading as the root node, and subheadings and body paragraphs as child nodes to construct a Document Object Model (DOM); during segmentation, if the child node fragment is short, it is merged with the parent node context to generate structured tags, such as "<Chapter: Contraindications> - <Paragraph: Not for Pregnant Women>", ensuring that knowledge fragments do not lose global context, solving the semantic fragmentation problem caused by traditional hard character segmentation. Afterwards, we constructed... The hybrid indexing mechanism utilizes keywords to build an inverted index to support exact matching and high-dimensional vectors (768-dimensional embeddings) to build a vector index to support semantic fuzzy retrieval. In specific implementation, the inverted index path uses jieba word segmentation combined with the TF-IDF algorithm to extract core keywords and construct a sparse retrieval index based on the BM25 algorithm; the high-dimensional vector index path inputs knowledge fragments into a pre-trained BERT model, extracts the average pooling features of the last hidden layer as a 768-dimensional dense vector, and uses the HNSW graph indexing algorithm to build a vector database for nearest neighbor search. This embodiment constructs a complete controlled index library through an admission mechanism and a segmentation strategy.

[0020] Step S2 includes the following sub-steps: Step S21: Perform word segmentation and dependency parsing analysis on the user's question to extract the core intent, and perform semantic distance similarity retrieval based on the dual-path hybrid controlled index library to recall the Top-K available knowledge fragments; Step S22: Retrieve the domain standard terminology set and common sense logic graph associated with the core intent, and extract relevant domain knowledge points; Step S23: Activate the constraint analysis model based on the long short-term memory joint attention mechanism, analyze the output type restrictions and safety boundary restrictions of the user's current question, and generate question-and-answer constraints; Step S24: The available knowledge fragments, domain knowledge points and question-answering constraints are concatenated according to a standard template and transformed by dense vectorization embedding to generate a first feature vector representing high-density information.

[0021] In this embodiment, step S21 employs a dual-path retrieval strategy, comprehensively calculating the keyword matching score and the vector semantic distance score. The comprehensive scoring formula is as follows: ; in and The weighting coefficients can be obtained through grid search on the historical question-and-answer data of the validation set, and are preferably set as needed. =0.4, =0.6. This formula recalls the most relevant Top-K fragments. Using external knowledge enhancement techniques, medical terminology sets or legal logic chains are dynamically attached based on the core intent (e.g., "medication consultation"), supplementing the original document with potentially implicit common-sense knowledge. Then, an LSTM model is used to parse the implicit constraints in user questions, with attention weights... The calculation formula is: ; in This reflects the importance of specific vocabulary in constraint judgments. The importance of the j-th specific word to the constraint judgment. , representing the hidden state of the LSTM at time step t. Attention energy value after linear transformation and For learnable parameters, As a bias term, initialized to 0, this step identifies constraints such as listing only key points, not exceeding 100 words, and requiring source citations. Prompt Engineering assembles these elements to generate a first feature vector, which contains rich contextual and instructional information. This embodiment enhances the domain model's understanding of the user's true intent and controls the output format through deep fusion of multi-source information and explicit modeling of constraints.

[0022] Step S3 includes the following sub-steps: Step S31: Construct a large domain model with a hybrid architecture of three task branches; Step S32: Input the first feature vector into the domain-wide model to trigger the corresponding task branch for parallel inference. When the task branch generates a summary, a multi-level compression mechanism is activated to output a summary text containing the core structure of the source document. When the task branch is structured extraction, the entity is aligned using a conditional random field model, and regularized attribute JSON data is output. When the task branch is a restricted solution, the autoregressive probability space of the large model is restricted, and word frequency sampling is performed only within the boundary indicated by the first feature vector, outputting a natively interpretable draft answer.

[0023] In this embodiment, refer to Figure 3 The domain-specific large model employs a hybrid expert architecture, invoking the optimal inference path for different task types. For constrained solution branches, this embodiment introduces a strict sampling control mechanism. The modified autoregressive probability distribution formula is as follows: ; in, It includes the union of entities defined by knowledge fragments in the first feature vector, term vocabulary set, and general function vocabulary, including professional entities extracted from knowledge fragments, key term set, and general function vocabulary, and the general function vocabulary includes conjunctions, pronouns, prepositions, and punctuation. As a normalization factor, this mechanism forces the model to generate answers only within the vocabulary provided by the knowledge base, cutting off the path to illusion at the probability space level. For structured extraction, a conditional random field model is used, utilizing the joint probability of the state sequence Y and the observation sequence X. Perform entity alignment; The model first outputs sequence labeling results in BIO format. The Conditional Random Field (CRF) model learns the transition matrix between entity labels and applies probabilistic penalties to illegal sequence paths. Finally, the Viterbi algorithm is used to decode the globally optimal label sequence, which is then assembled into regularized attribute JSON data, ensuring the output JSON data structure is rigorous and the fields are accurate. This embodiment achieves efficient processing of complex tasks through multi-branch parallel inference and probability space constraints, ensuring that the output results meet the stringent requirements of the vertical domain in terms of professionalism and accuracy.

[0024] Step S4 includes the following sub-steps: Step S41: Capture the initial draft answer output by the domain big model through the output interception gateway, calculate the semantic consistency probability between the initial draft answer and the original available knowledge fragment using the implication relation comparison model, and obtain the content consistency score; Step S42: The content consistency score is compared with the preset system security threshold by interval alignment to determine the current hallucination risk level. The hallucination risk level includes safe level, potential risk level and high risk level.

[0025] This embodiment takes the initial draft answer A as an assumption, the original knowledge fragment as a premise, inputs it into the implication relation comparison model, and calculates the semantic consistency probability. This score quantifies whether the answer is supported by the original text and sets a dynamic safety threshold range; when A score of 0.9 is considered safe, indicating that the answer is highly based on facts. When 0.7 A score of 0.9 indicates a potential risk level, meaning the answer contains some subjective inferences or slight deviations. when When the score is 0.7, it is considered a high-risk level, indicating that the answer may contain fabricated content or serious logical fallacies; This embodiment provides users with reliable answer output by introducing quantitative consistency scoring and a hierarchical risk control mechanism, which is a key step in building a highly reliable intelligent question-answering system.

[0026] The specific method for comparing the content consistency score with the preset system security threshold in step S42 is as follows: When the content consistency score is greater than or equal to the preset high score threshold, the output is determined not to contain large model illusion, and a safety-level risk is generated. When the content consistency score is between a preset low score threshold and a high score threshold, it is determined that the output has local ambiguity or conceptual deviation, generating a potential risk. When the content consistency score is less than the preset low score threshold, it is determined that the output deviates from the controlled knowledge source or produces a serious logical illusion, generating a high-risk level risk.

[0027] This embodiment details the specific logic of risk assessment. For safe-level risks, they are treated as high-quality direct output, requiring no additional intervention. For potential risks, situations are identified that are generally correct but may have minor flaws, such as stating "possible" as "certain" in the original text. While these risks may not be completely wrong, they could be misleading in the professional field and therefore require a correction process. For high-risk risks, the system identifies severe hallucination behaviors, such as the model generating drug dosages or legal clauses that do not exist in the original text. Such outputs are highly misleading and harmful and must be strictly blocked. This embodiment, through refined threshold division, achieves differentiated processing of outputs at different quality levels, ensuring both the efficient delivery of high-quality content and preventing the outflow of low-quality content.

[0028] Step S42 is followed by evolutionary feedback based on risk level: When the risk level is security level, execute the normal output stream, directly allow the first draft answer, and automatically increase the citation confidence weight of the corresponding available knowledge fragment in the controlled index library; When it is a potential risk, the silent correction feedback is triggered, the initial draft answer is redirected to the prompt word correction module, and after adding the strict prohibition of divergence constraint, it returns to step S2 to assemble the vector. When the risk level is high, the current output is forcibly blocked and the answer is refused. At the same time, the user's current question and the knowledge fragment ID that caused the failure are extracted, packaged into a gap evolution log and sent to the backend evolution module.

[0029] This embodiment constructs a closed-loop mechanism for system self-evolution. For security levels, the system utilizes a positive feedback mechanism to update the index database weights: This makes high-quality knowledge fragments easier to recall in subsequent searches. For potential risk levels, the system employs a self-correction strategy, adding strong constraints to the Prompt, such as prohibiting the use of information outside the knowledge base and requiring answers to be based solely on the provided materials. This forces the model to perform secondary reasoning in an attempt to salvage usable answers. For high-risk levels, the system transforms them into optimization signals, generating a gap evolution log. This log not only records failure cases but also points out deficiencies in the knowledge base, such as missing relevant knowledge or unclear knowledge descriptions, providing data support for subsequent model iterations and knowledge base expansion. This embodiment, through a risk-level feedback strategy, enables the system to have online learning and self-correction capabilities. As usage time increases, the system's answer accuracy and robustness will continuously improve.

[0030] The system's capabilities are globally optimized and updated using Markov decision processes and reinforcement learning proximal policy optimization algorithms. Specifically, this includes: The gap evolution log is used as the input to the state space, and the knowledge coverage and model answer accuracy in the controlled index are used as the multi-objective optimization reward function. The reinforcement learning algorithm dynamically adjusts the weight coefficients of various constraints in the dynamic template assembler and adaptively lowers the initial weights of available knowledge fragments that lead to high risk during recall, outputting the globally optimal solution set of context organization strategies.

[0031] This embodiment models the system optimization as a Markov decision process: Define the state space S as a vector representation of the gap evolution log, reflecting the weak links in the current system; define the action space A as a combination of adjustment constraint weight coefficients and index recall weights; define the reward function as a multi-objective weighted sum: ; in For accuracy, For coverage, To mitigate risk, a proximal policy optimization (PPO) algorithm is employed to update policy parameters. An Actor-Critic architecture is used: the Actor network receives the state space vector and outputs the probability distribution of actions that adjust the dynamic template weights; the Critic network evaluates the value of the current state. A dominance function is used to prune the update magnitude of the Actor network, preventing drastic oscillations in the system's assembly policy caused by a single severe gap log, thus ensuring the convergence stability of the knowledge base retrieval and generation process. The objective function limits the policy update magnitude to ensure training stability. This embodiment continuously interacts with the environment and automatically learns the optimal context organization policy based on reward feedback. For example, when a constraint is detected leading to frequent high-risk interceptions, the agent automatically reduces the weight of that constraint. This embodiment utilizes reinforcement learning to achieve automatic optimization of system parameters, eliminating reliance on human experience and enabling the intelligent question-answering system to adapt to constantly changing business scenarios and user needs, achieving true intelligent evolution.

[0032] Step S3 further includes: Real-time monitoring of implicit feedback signals from the user interface, including page dwell time, single-word copy rate, and number of high-frequency follow-up questions; If multiple outputs of a certain available knowledge fragment lead to frequent follow-up questions or short dwell times, the current node is determined to be semantically ambiguous, a chain-breaking attenuation strategy is executed, and the node is removed from the core retrieval area. If a user's query does not find any fragment in the controlled index, a web crawler or an external trusted database API is automatically triggered. The large model is then reworked and incrementally updated to the controlled index, completing the active stitching process.

[0033] This embodiment utilizes implicit feedback signals to evaluate the actual utility of knowledge fragments.

[0034] Define the implicit feedback feature vector. If, after multiple outputs, the user's average dwell time is extremely short or the number of frequent follow-up questions is very high, it indicates that the segment has failed to solve the user's problem, is semantically ambiguous, or is of poor quality. In this case, execute the link breakage and decay strategy. If the value is below the threshold, it will be removed from the core search area to purify the search results.

[0035] For cases where segments are not matched, the system initiates an active stitching mechanism.

[0036] The system automatically calls web crawlers or external APIs (such as search engines or professional database interfaces) to obtain relevant information, and uses a large model to clean, deduplicate, and restructure the relevant information to generate new knowledge fragments and insert them into the index. This embodiment continuously optimizes the quality of knowledge by analyzing user behavior data and actively fills knowledge gaps through external data sources, thus solving the problems of data silos and delayed updates in closed knowledge bases.

[0037] Example 2, refer to Figure 2 It provides a vertical domain content refinement and intelligent question answering system, including a boundary access module, a context organization module, an execution module, and a verification output module; The boundary access module is used to perform copyright verification and whitelist access verification on multi-source content, extract unstructured documents through verification, and divide the unstructured documents into multiple usable knowledge fragments to obtain a controlled index library. The context organization module is used to respond to a received user question by retrieving available knowledge fragments that match the user question from the controlled index library, retrieving domain knowledge points, and concatenating the available knowledge fragments, domain knowledge points, and question-answering constraints into a first feature vector through a dynamic template assembler. The execution module is used to process the first feature vector using the domain model and output the target content; The verification output module is used to intercept the target content and perform a consistency check on the target content. After the verification is passed, the verified target content and the corresponding source of available knowledge fragments are associated and output.

[0038] The system architecture of this embodiment corresponds to that of the method embodiment described above. The boundary access module ensures the legality and high quality of the input data; the context organization module is responsible for converting unstructured user questions and knowledge base information into structured instructions that the model can understand; the execution module generates answers using the powerful reasoning capabilities of the domain-wide model; the verification output module ensures the authenticity and security of the output content; this system not only provides accurate question-and-answer services, but also has the ability to self-evolve and actively learn, and can be widely applied in professional fields such as medical consultation, legal aid, and financial compliance, providing users with professional and reliable intelligent services; This invention forms a tightly coupled system with mutually supporting logic; the controlled index constructed by the boundary access module, which preserves hierarchical semantics, provides the necessary structured data foundation for the dynamic constraint template of the context organization module; the first feature vector generated by the context organization module, which incorporates hard constraints, directly affects the autoregressive probability sampling space of the underlying model of the execution module, cutting off the path of free divergence of the model; the initial draft generated by the execution module and the source fragment of the boundary access module are used together as the benchmark input to the semantic comparison of the verification output module; finally, the risk log quantified by the verification output module serves as a special reward and penalty signal, driving the PPO algorithm to adjust the weights of the first two missing parameters in reverse, solving the problem of illusionary output in vertical domains that cannot be solved by simply relying on fine-tuning of the large model or relying on external retrieval.

[0039] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code. The storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0040] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the protection scope of the present invention.

Claims

1. A method for content refinement and intelligent question answering in a vertical domain, characterized in that, Includes the following steps: Step S1: Perform copyright verification and whitelist access verification on multi-source content, extract unstructured documents through verification, and divide the unstructured documents into multiple usable knowledge fragments to obtain a controlled index library; Step S2: In response to the received user question, retrieve available knowledge fragments that match the user question from the controlled index library, retrieve domain knowledge points, and according to the question-and-answer constraints, use a dynamic template assembler to concatenate the available knowledge fragments, domain knowledge points, and question-and-answer constraints into a first feature vector. Step S3: Process the first feature vector using the domain model and output the target content; Step S4: Intercept the target content and perform a consistency check on the target content. After the check is passed, associate the verified target content with the source of the corresponding available knowledge fragment and output the result.

2. The method for refining vertical domain content and intelligent question answering as described in claim 1, characterized in that, Step S1 includes the following sub-steps: Step S11: Obtain the unique digital copyright identifier and publication timestamp embedded in the multi-source content, compare and verify them through the preset copyright legality rule base, and complete the copyright verification; Step S12: Match the verified multi-source content with the whitelist of allowed institutions to block non-compliant data and extract compliant unstructured documents; Step S13: Using a semantic-level sentence segmentation algorithm and a hierarchical tree parser, the unstructured document is segmented, preserving the relationship between contextual parent and child nodes, and generating multiple usable knowledge fragments; Step S14: Extract the keyword features and category entities of each available knowledge fragment, and construct a controlled index library based on the inverted index and high-dimensional vector index.

3. The method for refining content and providing intelligent question answering in a vertical domain as described in claim 2, characterized in that, Step S2 includes the following sub-steps: Step S21: Perform word segmentation and dependency parsing analysis on the user's question to extract the core intent, and perform semantic distance similarity retrieval based on the dual-path hybrid controlled index library to recall the Top-K available knowledge fragments; Step S22: Retrieve the domain standard terminology set and common sense logic graph associated with the core intent, and extract relevant domain knowledge points; Step S23: Activate the constraint analysis model based on the long short-term memory joint attention mechanism, analyze the output type restrictions and safety boundary restrictions of the user's current question, and generate question-and-answer constraints; Step S24: The available knowledge fragments, domain knowledge points and question-answering constraints are concatenated according to a standard template and transformed by dense vectorization embedding to generate a first feature vector representing high-density information.

4. The method for refining vertical domain content and intelligent question answering as described in claim 3, characterized in that, Step S3 includes the following sub-steps: Step S31: Construct a large domain model with a hybrid architecture of three task branches; Step S32: Input the first feature vector into the domain-wide model to trigger the corresponding task branch for parallel inference. When the task branch generates a summary, a multi-level compression mechanism is activated to output a summary text containing the core structure of the source document. When the task branch is structured extraction, the entity is aligned using a conditional random field model, and regularized attribute JSON data is output. When the task branch is a restricted solution, the autoregressive probability space of the large model is restricted, and word frequency sampling is performed only within the boundary indicated by the first feature vector, outputting a natively interpretable draft answer.

5. The method for refining content and providing intelligent question answering in a vertical domain as described in claim 4, characterized in that, Step S4 includes the following sub-steps: Step S41: Capture the initial draft answer output by the domain big model through the output interception gateway, calculate the semantic consistency probability between the initial draft answer and the original available knowledge fragment using the implication relation comparison model, and obtain the content consistency score; Step S42: The content consistency score is compared with the preset system security threshold by interval alignment to determine the current hallucination risk level. The hallucination risk level includes safe level, potential risk level and high risk level.

6. The method for refining content and providing intelligent question answering in a vertical domain as described in claim 5, characterized in that, The specific method for comparing the content consistency score with the preset system security threshold in step S42 is as follows: When the content consistency score is greater than or equal to the preset high score threshold, the output is determined not to contain large model illusion, and a safety-level risk is generated. When the content consistency score is between a preset low score threshold and a high score threshold, it is determined that the output has local ambiguity or conceptual deviation, generating a potential risk. When the content consistency score is less than the preset low score threshold, it is determined that the output deviates from the controlled knowledge source or produces a serious logical illusion, generating a high-risk level risk.

7. The method for refining vertical domain content and intelligent question answering as described in claim 6, characterized in that, Step S42 is followed by evolutionary feedback based on risk level: When the risk level is security level, execute the normal output stream, directly allow the first draft answer, and automatically increase the citation confidence weight of the corresponding available knowledge fragment in the controlled index library; When it is a potential risk, the silent correction feedback is triggered, the initial draft answer is redirected to the prompt word correction module, and after adding the strict prohibition of divergence constraint, it returns to step S2 to assemble the vector. When the risk level is high, the current output is forcibly blocked and the answer is refused. At the same time, the user's current question and the knowledge fragment ID that caused the failure are extracted, packaged into a gap evolution log and sent to the backend evolution module.

8. The method for refining vertical domain content and intelligent question answering as described in claim 7, characterized in that, The system's capabilities are globally optimized and updated using Markov decision processes and reinforcement learning proximal policy optimization algorithms. Specifically, this includes: The gap evolution log is used as the input to the state space, and the knowledge coverage and model answer accuracy in the controlled index are used as the multi-objective optimization reward function. The reinforcement learning algorithm dynamically adjusts the weight coefficients of various constraints in the dynamic template assembler and adaptively lowers the initial weights of available knowledge fragments that lead to high risk during recall, outputting the globally optimal solution set of context organization strategies.

9. The method for refining vertical domain content and intelligent question answering as described in claim 8, characterized in that, Step S3 further includes: Real-time monitoring of implicit feedback signals from the user interface, including page dwell time, single-word copy rate, and number of high-frequency follow-up questions; If multiple outputs of a certain available knowledge fragment lead to frequent follow-up questions or short dwell times, the current node is determined to be semantically ambiguous, a chain-breaking attenuation strategy is executed, and the node is removed from the core retrieval area. If a user's query does not find any fragment in the controlled index, a web crawler or an external trusted database API is automatically triggered. The large model is then reworked and incrementally updated to the controlled index, completing the active stitching process.

10. A vertical domain content refinement and intelligent question-answering system, applied in a vertical domain content refinement and intelligent question-answering method as described in any one of claims 1-9, characterized in that, It includes a boundary access module, a context organization module, an execution module, and a verification output module; The boundary access module is used to perform copyright verification and whitelist access verification on multi-source content, extract unstructured documents through verification, and divide the unstructured documents into multiple usable knowledge fragments to obtain a controlled index library. The context organization module is used to respond to a received user question by retrieving available knowledge fragments that match the user question from the controlled index library, retrieving domain knowledge points, and concatenating the available knowledge fragments, domain knowledge points, and question-answering constraints into a first feature vector through a dynamic template assembler. The execution module is used to process the first feature vector using the domain model and output the target content; The verification output module is used to intercept the target content and perform a consistency check on the target content. After the verification is passed, the verified target content and the corresponding source of available knowledge fragments are associated and output.