Enhanced generative large model system

Through Insight Engine and Persona Synthesizer components combined with Tree Document Retrieval technology, the existing technology's dependence on specific data and high operating costs are solved, flexibility and personalized dialogue generation are achieved, and the responsiveness and users of the role-playing system are improved. Interactive experience.

CN118643131AInactive Publication Date: 2024-09-13EAST CHINA JIAOTONG UNIVERSITY
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410671531.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing technologies are highly dependent on specific data training in professional role-playing and simulation training scenarios, resulting in high operation and maintenance costs, limited flexibility, and limited response capabilities to non-standard answers.

Method used

Using an enhanced generative large model system, Insight Engine and Persona Synthesizer components are combined with natural language processing and Tree Document Retrieval technology to parse user queries, perform intent recognition and key information extraction, and generate dialogue content that conforms to the character's characteristics and background, reducing confusion. Dependence on specific data improves system flexibility and responsiveness.

Benefits of technology

It significantly improves the system's response time and user interaction fluency, reduces operation and maintenance costs, enhances the personalized performance and accuracy of role dialogue, can quickly adapt to new situations and data, and reduces initial setup and ongoing maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118643131A
    Figure CN118643131A
Patent Text Reader

Abstract

According to the enhanced generation type large model system, firstly, query of a user can be analyzed, intention and key content of the user can be recognized, then relevant role characteristics and background information are retrieved, on the basis of the information, the system further generates answers conforming to role personalities and dialogue situations through cognitive reasoning, and therefore the user experience is improved. The reality sense and personalized performance of the role are enhanced, a new method is provided for a role playing system by combining the innovativeness of a generative model and the accuracy of a retrieval system, information can be dynamically retrieved from a huge data set according to specific input of a user, more relevant and more accurate response is generated, and the role playing system can play a role more accurately. The technical problems that in the prior art, training of specific data is highly depended on, and collection and preparation of high-quality industry specific data are high in cost, time-consuming, limited in generalization ability, high in operation cost and limited in flexibility and creativity are solved. The dependency on specific training data is high; and the operation and maintenance cost is low.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of natural language processing, and in particular relates to an enhanced generative large model system. Background Art

[0002] In the current technical context, although role-playing applications (not limited to games) use preset scripts and dialogues to simulate various professional roles, such as data analysts, customer service representatives, etc., to enhance task-specific training and simulation practices, these systems usually lack dynamic interaction capabilities and cannot provide truly personalized responses based on the user's specific input. Faced with the growing demand for professional role-playing and simulation training scenarios, several solutions have been proposed to enhance the interactivity and personalization of these systems. Among them, RoleLLM and CharacterGLM are two technical solutions in the prior art that are closer to the present invention. These systems, RoleLLM and CharacterGLM, simulate specific roles by using large language models, and usually require supervised fine-tuning (SFT) to adapt to specific roles or scenarios. This approach can improve the accuracy and relevance of role dialogues, so that the simulated characters can reflect their predetermined industry or personality characteristics to a certain extent, but there are also some technical problems, such as high reliance on specific data for training (techniques such as RoleLLM and CharacterGLM rely on a large amount of labeled data for model fine-tuning), and it is costly and time-consuming to collect and prepare high-quality industry-specific data. Over-reliance on specific data sets may cause the model to perform poorly when faced with unseen situations or dialogues, that is, limited generalization ability; update and maintenance issues. As industry knowledge and practices continue to evolve, fine-tuned models need to be regularly updated to reflect the latest industry standards and practices. This ongoing maintenance requirement increases long-term operating costs; flexibility and creativity limitations: Although these models show a high degree of accuracy in performing their training tasks, they are limited in their ability to handle unpredictable creative tasks or generate non-standard responses, which limits the possibility for users to explore new areas in simulated interactions. Summary of the invention

[0003] The purpose of the present invention is to solve the technical problems that the prior art has high reliance on training of specific data, high operation and maintenance costs, limited flexibility, and limited ability to respond to non-standard answers in professional role-playing and simulation training scenarios.

[0004] The invention provides an enhanced generative large model system, comprising the following steps:

[0005] S1, User Input: The user enters a query or request through the user interface (UI); the UI is responsible for receiving the user's input and passing it to the system;

[0006] S2, query processing: using the Insight Engine component: receiving user queries, identifying intent and extracting key information; parsing query content and understanding user intent through natural language processing (NLP) technology;

[0007] S3, data retrieval: use the Tree Document Retrieval method to retrieve relevant information from the database; index construction: convert documents into vector representations and build a tree index structure; retrieval process: according to the vector representation of the user query, recursively retrieve relevant nodes in the tree index;

[0008] S4, Information Integration: Use the Persona Synthesizer component to integrate the output of the Insight Engine and the retrieved information; use role-based dialogue generation technology to combine role characteristics and background information to generate answers;

[0009] S6, Output: The generated answer is returned to the user through the UI.

[0010] Preferably, the method further includes S5, post-processing, for filtering and optimizing the generated content to ensure the relevance, accuracy and appropriateness of the answers.

[0011] Preferably, a feedback mechanism is also included to collect user satisfaction with answers for subsequent model optimization.

[0012] Preferably, it also includes S7, monitoring and maintenance, using a monitoring component and a maintenance component, wherein the monitoring component is used to track the performance and health of the system; and the maintenance component is responsible for regularly updating the database, model and system configuration.

[0013] Preferably, S8, integration and expansion, is also included. The system is designed with an API or other integration points for integration with external systems or services; the extensibility of the system allows new functions to be added or new data sources to be integrated in the future.

[0014] Furthermore, the method for retrieving data in S3 specifically includes the following steps:

[0015] S3-1, document preprocessing: split the document collection into multiple segments, usually nodes of fixed size; assign a unique identifier to each of the nodes;

[0016] S3-2, vector representation: use the embedding model to convert the node into a high-dimensional vector, which captures the semantic information of the node and facilitates the subsequent similarity calculation; data vectorization specifically includes: using the pre-trained word embedding model to convert the text data in the database into a vector representation; define a function to convert each conversation record di into its vector representation;

[0017] S3-3, constructing an index tree: constructing a tree-like index structure, i.e., an index tree, according to the high-dimensional vector of the node, wherein each node of the index tree represents a fragment of the document, and the child nodes represent finer-grained segmentation;

[0018] S3-4, recursive retrieval: When a user query is received, it is converted into a vector representation. Starting from the root node of the index tree, the query vector and the current node vector are used to calculate the similarity. According to the set similarity threshold, the most relevant node is selected to continue the recursive retrieval;

[0019] S3-5, node matching: In each recursive step, the query vector is compared with the vector similarity of the child node.

[0020] Select the most similar node and continue searching downward until a leaf node is reached;

[0021] S3-6, result aggregation: starting from the leaf node, collect information from all related nodes, aggregate the information, and form a comprehensive response to the user query;

[0022] S3-7, post-processing: Post-process the retrieved results, including but not limited to deduplication, sorting and filtering, to ensure that the returned results are accurate and relevant;

[0023] S3-8, return result: return the processed result to the query engine, and the query engine passes the result to S4 to generate a final answer.

[0024] Furthermore, the Insight Engine component (cognitive reasoning component) is the first component of the enhanced generative large model system, responsible for processing the initial understanding and information retrieval of user queries, and the implementation steps are:

[0025] S2-1, User query parsing: Perform word segmentation and part-of-speech tagging on the query input by the user, use natural language processing techniques including but not limited to dependency parsing to understand the semantic structure of the query, and identify key entities, intents, and sentiment tendencies in the query;

[0026] S2-2, build query vector: use pre-trained language model or embedding technology to convert the parsed query into a vector representation;

[0027] S2-3, Information Retrieval: Use vector retrieval technology to retrieve documents from the database that are most similar to the query vector;

[0028] S2-4, context integration: analyzing retrieved documents, extracting key information, and integrating this information into the causal thinking reasoning (CoT) process;

[0029] S2-5, Noise filtering and optimization: Filter out irrelevant or noisy search results by, but not limited to, setting similarity thresholds, using post-processing rules, and manual review;

[0030] S2-6, output preparation: packaging the filtered and optimized information and preparing it for passing to the next component;

[0031] S2-7, Feedback loop: Collect user feedback on the generated dialogue and use the feedback to update the retrieval strategy and filtering rules of Insight Engine.

[0032] Furthermore, the Persona Synthesizer component (character generation component) is based on the output of "InsightEngine", including the basic reasoning results of the user query and the key character characteristics and background information, and uses CoT reasoning to conduct in-depth analysis and generation of the character's speaking style and dialogue context. The implementation steps of the Persona Synthesizer component are:

[0033] S4-1, input processing: receiving information from the Insight Engine, including basic reasoning results of user queries and key role characteristics and background information;

[0034] S4-2, Character Characteristics Analysis: Analyze the character profile, including but not limited to the character’s personality, habits, and knowledge background, to understand the character’s speaking style and possible reactions;

[0035] S4-3, Context Setting: Construct the background and environment setting of the conversation based on the context information provided by the Insight Engine;

[0036] S4-4, Causal Thinking (CoT): Apply CoT technology to simulate the character's thinking process and predict the character's possible actions and reactions in the current situation. CoT helps generate more coherent and consistent dialogue content with the character's personality;

[0037] S4-5, Generate dialogue: Generate dialogue text based on the character's personality and current situation using natural language generation (NLG) technology. The generation process includes but is not limited to selecting appropriate vocabulary, constructing grammatically correct sentences, and maintaining dialogue coherence;

[0038] S4-6, post-processing: Post-process the generated dialogue to eliminate inconsistencies or errors in the generation process, including but not limited to correcting grammatical errors, smoothing the transition of the dialogue, adding appropriate emotional expressions, etc.;

[0039] S4-7, Output: Provide the final dialogue text to respond to the user's query.

[0040] Compared with the prior art, the present invention has the following beneficial effects:

[0041] The present invention discloses an enhanced generative large model system, which adopts retrieval enhancement generation (RAG) and efficient document retrieval technology (Tree Document Retrieval) for efficient document retrieval, converts documents into vector representations using an embedded model, and performs efficient retrieval through a tree index structure, effectively utilizes huge database resources, and accurately retrieves information related to user queries, which not only improves the accuracy of retrieval but also reduces resource waste; and by using "Insight Engine" and "Persona Synthesizer" components, fast and efficient user query processing and role dialogue generation are achieved. This efficient information processing and generation mechanism significantly improves the system's response time and the fluency of user interaction; a flexible reasoning and generation mechanism is adopted, which reduces the reliance on large-scale specific training data, enables the system to quickly adapt to new situations and data, and reduces the initial setup and ongoing maintenance costs of the system.

[0042] This enhanced generative large model system can first parse the user's query, identify its intent and key content, and then retrieve relevant role characteristics and background information. Based on this information, the system further uses cognitive reasoning to generate answers that are consistent with the role's personality and dialogue context, greatly enhancing the role's realism and personalized performance. By combining the innovation of the generative model with the accuracy of the retrieval system, it provides a new method for role-playing systems, which can dynamically retrieve information from large data sets based on the user's specific input to generate more relevant and accurate responses. It solves the technical problems that the existing technology is highly dependent on the training of specific data, the collection and preparation of high-quality industry-specific data is costly and time-consuming, the generalization ability is limited, the operating cost is high, and the flexibility and creativity are limited. It has the beneficial effects of fast response, high personalization, low dependence on specific training data and low operating and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a framework diagram of the enhanced generative large model system of the present invention.

[0044] Figure 2 It is a flow chart of the data retrieval method of the enhanced generative large model system of the present invention. DETAILED DESCRIPTION

[0046] The present invention will be further described below with reference to the accompanying drawings and a specific embodiment of a roof structure.

[0047] Example 1

[0048] Please refer to the attached Figure 1 and attached Figure 2 , an enhanced generative large model system, comprising the following steps,

[0049] S1, User Input: The user enters a query or request through the user interface (UI); the UI is responsible for receiving the user's input and passing it to the system;

[0050] S2, query processing: using the Insight Engine component: receiving user queries, performing intent recognition and key information extraction; parsing query content and understanding user intent through natural language processing (NLP) technology; the InsightEngine component (cognitive reasoning component) is the first component of the enhanced generative large model system, responsible for processing the initial understanding of user queries and information retrieval, and the implementation steps are as follows:

[0051] S2-1, User query parsing: Perform word segmentation and part-of-speech tagging on the query input by the user, use natural language processing techniques including but not limited to dependency parsing to understand the semantic structure of the query, and identify key entities, intents, and sentiment tendencies in the query;

[0052] S2-2, build query vector: use pre-trained language model or embedding technology to convert the parsed query into a vector representation;

[0053] S2-3, Information Retrieval: Use vector retrieval technology to retrieve documents from the database that are most similar to the query vector;

[0054] S2-4, context integration: analyzing retrieved documents, extracting key information, and integrating this information into the causal thinking reasoning (CoT) process;

[0055] S2-5, Noise filtering and optimization: Filter out irrelevant or noisy search results by, but not limited to, setting similarity thresholds, using post-processing rules, and manual review;

[0056] S2-6, output preparation: packaging the filtered and optimized information and preparing it for passing to the next component;

[0057] S2-7, Feedback loop: Collect user feedback on the generated dialogue and use the feedback to update the retrieval strategy and filtering rules of Insight Engine.

[0058] S3, data retrieval: use the Tree Document Retrieval method to retrieve relevant information from the database; index construction: convert documents into vector representations and build a tree index structure; retrieval process: according to the vector representation of the user query, recursively retrieve relevant nodes in the tree index;

[0059] The data retrieval method specifically comprises the following steps:

[0060] S3-1, document preprocessing: split the document collection into multiple segments, usually nodes of fixed size; assign a unique identifier to each of the nodes;

[0061] S3-2, vector representation: use the embedding model to convert the node into a high-dimensional vector, which captures the semantic information of the node and facilitates the subsequent similarity calculation; data vectorization specifically includes: using the pre-trained word embedding model to convert the text data in the database into a vector representation; define a function to convert each conversation record di into its vector representation;

[0062] S3-3, constructing an index tree: constructing a tree-like index structure, i.e., an index tree, according to the high-dimensional vector of the node, wherein each node of the index tree represents a fragment of the document, and the child nodes represent finer-grained segmentation;

[0063] S3-4, recursive retrieval: When a user query is received, it is converted into a vector representation. Starting from the root node of the index tree, the query vector and the current node vector are used to calculate the similarity. According to the set similarity threshold, the most relevant node is selected to continue the recursive retrieval;

[0064] S3-5, node matching: In each recursive step, compare the query vector with the vector similarity of the child nodes, select the most similar node and continue to search downward until reaching the leaf node;

[0065] S3-6, result aggregation: starting from the leaf node, collect information from all related nodes, aggregate the information, and form a comprehensive response to the user query;

[0066] S3-7, post-processing: Post-process the retrieved results, including but not limited to deduplication, sorting and filtering, to ensure that the returned results are accurate and relevant;

[0067] S3-8, return result: return the processed result to the query engine, and the query engine passes the result to S4 to generate a final answer.

[0068] S4, information integration: Use the Persona Synthesizer component: integrate the output of the Insight Engine and the retrieved information; use the role-based dialogue generation technology, combined with the role characteristics and background information, to generate answers; the Persona Synthesizer component (role generation component) is based on the output of the "Insight Engine", including the basic reasoning results of the user's query and the key role characteristics and background information, and uses CoT reasoning to conduct in-depth analysis and generation of the role's speaking style and dialogue context. The implementation steps of the Persona Synthesizer component are:

[0069] S4-1, input processing: receiving information from the Insight Engine, including basic reasoning results of user queries and key role characteristics and background information;

[0070] S4-2, Character Characteristics Analysis: Analyze the character profile, including but not limited to the character’s personality, habits, and knowledge background, to understand the character’s speaking style and possible reactions;

[0071] S4-3, Context Setting: Construct the background and environment setting of the conversation based on the context information provided by the Insight Engine;

[0072] S4-4, Causal Thinking (CoT): Apply CoT technology to simulate the character's thinking process and predict the character's possible actions and reactions in the current situation. CoT helps generate more coherent and consistent dialogue content with the character's personality;

[0073] S4-5, Generate dialogue: Generate dialogue text based on the character's personality and current situation using natural language generation (NLG) technology. The generation process includes but is not limited to selecting appropriate vocabulary, constructing grammatically correct sentences, and maintaining dialogue coherence;

[0074] S4-6, post-processing: Post-process the generated dialogue to eliminate inconsistencies or errors in the generation process, including but not limited to correcting grammatical errors, smoothing the transition of the dialogue, adding appropriate emotional expressions, etc.;

[0075] S4-7, Output: Provide the final dialogue text to respond to the user's query.

[0076] S5, post-processing: used to filter and optimize the generated content; ensuring the relevance, accuracy and appropriateness of the answers.

[0077] S6, Output: The generated answer is returned to the user through the UI, and also includes a feedback mechanism to collect the user's satisfaction with the answer for subsequent model optimization.

[0078] S7, monitoring and maintenance, uses monitoring components and maintenance components. The monitoring component is used to track the performance and health of the system; the maintenance component is responsible for regularly updating the database, model and system configuration.

[0079] S8, Integration and Expansion: The system is designed with APIs or other integration points for integration with external systems or services; the extensibility of the system allows new features to be added or new data sources to be integrated in the future.

[0080] Example 2

[0081] The same data set was selected, and the current mainstream method, SFT (Supervised fine-tuning) was used, and the parameters in the rolellm paper were used to fine-tune the model. The role-playing ability was compared with the enhanced generative large model system provided by the present invention, the method without fine-tuning.

[0082] (1) Dataset description

[0083] Rolecraft Dataset:

[0084] A. Features: Low quality, mainly Chinese data.

[0085] B. Purpose: Used to test the performance of the model under low-quality data conditions.

[0086] Rolellm Dataset:

[0087] A. Features: High quality, including Chinese and English data.

[0088] B. Purpose: Used to test the performance of the model under high-quality data conditions.

[0089] (2) Evaluation indicators and experimental plan

[0090] Evaluation Metrics:

[0091] A.ROUGE: Evaluate the similarity between generated text and reference text.

[0092] B. Cosine similarity: measures the similarity between the generated text and the standard answer.

[0093] C. Human Evaluation: The quality and consistency of the generated text are evaluated through human review.

[0094] D. Sentiment Analysis: Analyze the emotional tendency of the generated text to evaluate the emotional consistency of the role-playing.

[0095] E. Lexical diversity: Evaluates the lexical diversity of the generated text and measures the richness of the language expression.

[0096] (3) Experimental plan:

[0097] A. Benchmark model comparison: The enhanced generative large model system (GenRole) provided by the present invention is compared with existing benchmark models, including Rolecraft, ChatPlug, Character.AI, Character-LLM and the reproduced Rolellm model.

[0098] B. Pre- and post-training comparison: Compare the performance changes of the model before and after training, focusing on cosine similarity, sentiment analysis, and vocabulary diversity indicators.

[0099] C. Ablation experiment: By removing certain components or functions of the enhanced generative large model system (GenRole) framework provided by the present invention, the impact on the overall performance is evaluated.

[0100] (4) Case presentation

[0101] Several representative cases are selected to demonstrate the generation effects of the enhanced generative large model system provided by the present invention in different scenarios.

[0102] Reproduced Rolellm model: a role-playing model trained based on high-quality Chinese and English data, used to verify the effectiveness of the enhanced generative large model system GenRole provided by the present invention.

[0103] Comparison results before and after training:

[0104] Before training:

[0105] oCosine similarity: 0.008153240873148655

[0106] oEmotion: 0.0

[0107] o Lexical Diversity: 1.0

[0108] After training:

[0109] o Cosine similarity: 0.357

[0110] oEmotion: 0.0

[0111] o Lexical diversity: 0.9024787429764806

[0112] The enhanced generative large model system (GenRole) provided by the present invention:

[0113] oCosine similarity: 0.862

[0114] oEmotion: 0.0

[0115] o Lexical Diversity: 1.0

[0116] (5) Results analysis

[0117] In the comparison of the benchmark models, the enhanced generative large model system (GenRole) provided by the present invention performs well in multiple evaluation indicators. First, in terms of cosine similarity, GenRole significantly outperforms other benchmark models. Specifically, the cosine similarity of GenRole reaches 0.862, which is much higher than 0.008 before training and 0.357 after training, showing its advantage in generating similarities with standard answers. This shows that GenRole can better understand and generate conversation content that meets the context requirements.

[0118] Secondly, in terms of emotional consistency, although the texts generated by each model are emotionally neutral, the texts generated by GenRole are more consistent and coherent in emotional expression. This is especially important in role-playing scenarios, because the emotional expression and language style of the character need to be highly consistent to enhance the user's immersion and sense of reality.

[0119] Finally, GenRole also performs well in terms of vocabulary diversity. GenRole's vocabulary diversity score is 1.0, indicating that the generated text has rich vocabulary usage and does not have too much repetition. This is in stark contrast to the results before and after training, especially the vocabulary diversity after training is only 0.902. This shows that GenRole can not only generate more diverse and rich dialogue content, but also better simulate the language style of different roles.

[0120] In summary, the advantages of GenRole are further demonstrated in the specific case presentations. We selected several cases of complex situations and personalized role dialogues for analysis. The results show that GenRole can accurately understand complex queries entered by users and generate dialogue content that is consistent with the role background and emotional state. For example, in the case of a medical dialogue system, GenRole successfully simulated the professional language and caring attitude of a doctor, making the dialogue both professional and humane. In the case of an education and training platform, the teacher role dialogue generated by GenRole is not only professional and rigorous, but also full of encouragement and inspiration, making the learning process more vivid and interesting.

[0121] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.

Claims

1. An enhanced generative large model system, characterized in that: The following steps are included: S1, User Input: The user enters a query or request through the user interface (UI); the UI is responsible for receiving the user's input and passing it to the system; S2, query processing: using the Insight Engine component: receiving user queries, identifying intent and extracting key information; parsing query content and understanding user intent through natural language processing (NLP) technology; S3, data retrieval: use the Tree Document Retrieval method to retrieve relevant information from the database; index construction: convert documents into vector representations and build a tree index structure; retrieval process: according to the vector representation of the user query, recursively retrieve relevant nodes in the tree index; S4, Information Integration: Use the Persona Synthesizer component to integrate the output of the Insight Engine and the retrieved information; use role-based dialogue generation technology to combine role characteristics and background information to generate answers; S6, Output: The generated answer is returned to the user through the UI.

2. The enhanced generative large model system according to claim 1, characterized in that: Also included is S5, Post-Processing: used to filter and optimize the generated content; ensuring the relevance, accuracy and appropriateness of the answers.

3. The enhanced generative large model system according to claim 1, characterized in that: A feedback mechanism is also included to collect user satisfaction with the answers for subsequent model optimization.

4. The enhanced generative large model system according to claim 1, characterized in that: It also includes S7, monitoring and maintenance, using monitoring components and maintenance components. The monitoring component is used to track the performance and health of the system; the maintenance component is responsible for regularly updating the database, model and system configuration.

5. The enhanced generative large model system according to claim 1, characterized in that: It also includes S8, integration and extension. The system is designed with APIs or other integration points for integration with external systems or services; the extensibility of the system allows new functions to be added or new data sources to be integrated in the future.

6. The enhanced generative large model system according to claim 1, characterized in that: The method for retrieving data in S3 specifically includes the following steps: S3-1, document preprocessing: split the document collection into multiple segments, usually nodes of fixed size; assign a unique identifier to each of the nodes; S3-2, vector representation: Use the embedding model to convert the node into a high-dimensional vector, which captures the semantic information of the node and facilitates the subsequent similarity calculation; data vectorization is specifically: use the pre-trained word embedding model to convert the text data in the database into a vector representation; define a function Used to convert each conversation record di into its vector representation S3-3, constructing an index tree: constructing a tree-like index structure, i.e., an index tree, according to the high-dimensional vector of the node, wherein each node of the index tree represents a fragment of the document, and the child nodes represent finer-grained segmentation; S3-4, recursive retrieval: When a user query is received, it is converted into a vector representation. Starting from the root node of the index tree, the query vector and the current node vector are used to calculate the similarity. According to the set similarity threshold, the most relevant node is selected to continue the recursive retrieval; S3-5, node matching: In each recursive step, compare the query vector with the vector similarity of the child nodes, select the most similar node and continue to search downward until reaching the leaf node; S3-6, result aggregation: starting from the leaf node, collect information from all related nodes, aggregate the information, and form a comprehensive response to the user query; S3-7, post-processing: Post-process the retrieved results, including but not limited to deduplication, sorting and filtering, to ensure that the returned results are accurate and relevant; S3-8, return result: return the processed result to the query engine, and the query engine passes the result to S4 to generate a final answer.

7. The enhanced generative large model system according to claim 1, characterized in that: The implementation steps of the Insight Engine component are: S2-1, User query parsing: Perform word segmentation and part-of-speech tagging on the query input by the user, use natural language processing techniques including but not limited to dependency parsing to understand the semantic structure of the query, and identify key entities, intents, and sentiment tendencies in the query; S2-2, build query vector: use pre-trained language model or embedding technology to convert the parsed query into a vector representation; S2-3, Information Retrieval: Use vector retrieval technology to retrieve documents from the database that are most similar to the query vector; S2-4, context integration: analyzing retrieved documents, extracting key information, and integrating this information into the causal thinking reasoning (CoT) process; S2-5, Noise filtering and optimization: Filter out irrelevant or noisy search results by, but not limited to, setting similarity thresholds, using post-processing rules, and manual review; S2-6, output preparation: packaging the filtered and optimized information and preparing it for passing to the next component; S2-7, Feedback loop: Collect user feedback on the generated dialogue and use the feedback to update the retrieval strategy and filtering rules of Insight Engine.

8. The enhanced generative large model system according to claim 1, characterized in that: The implementation steps of the PersonaSynthesizer component are: S4-1, input processing: receiving information from the Insight Engine, including basic reasoning results of user queries and key role characteristics and background information; S4-2, Character Characteristics Analysis: Analyze the character profile, including but not limited to the character’s personality, habits, and knowledge background, to understand the character’s speaking style and possible reactions; S4-3, Context Setting: Construct the background and environment setting of the conversation based on the context information provided by the Insight Engine; S4-4, Causal Thinking (CoT): Apply CoT technology to simulate the character's thinking process and predict the character's possible actions and reactions in the current situation. CoT helps generate more coherent and consistent dialogue content with the character's personality; S4-5, Generate dialogue: Generate dialogue text based on the character's personality and current situation using natural language generation (NLG) technology. The generation process includes but is not limited to selecting appropriate vocabulary, constructing grammatically correct sentences, and maintaining dialogue coherence; S4-6, post-processing: Post-process the generated dialogue to eliminate inconsistencies or errors in the generation process, including but not limited to correcting grammatical errors, smoothing the transition of the dialogue, adding appropriate emotional expressions, etc.; S4-7, Output: Provide the final dialogue text to respond to the user's query.

Citation Information

Cited By

  • Data source processing method and device based on AI enhancement

    CN120929491A