A course scene-based intelligent question-answering method and system based on an agent workflow arrangement

By using intelligent agent workflow orchestration and multi-dimensional teaching tag annotation, combined with static and dynamic knowledge sources, the problems of knowledge adaptability and learning scenario scheduling in the course-based intelligent question-and-answer system were solved, realizing the association of knowledge points across chapters and the generation of personalized content.

CN123178567APending Publication Date: 2026-11-27QILU INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing intelligent question-and-answer systems for course scenarios have shortcomings in knowledge adaptability, knowledge point connection ability, knowledge retrieval scheduling, and learning scenario scheduling. They cannot effectively combine real-time classroom courseware dynamic adaptation and cross-chapter knowledge point association.

Method used

By orchestrating intelligent agent workflows, multi-dimensional teaching labels are labeled and unified semantic vectorization is performed. Combined with static and dynamic knowledge sources, knowledge fusion is achieved. Furthermore, course scenario decision-making is carried out through intent recognition and confidence calibration to generate lightweight pre-study and personalized Q&A content.

Benefits of technology

It has improved knowledge adaptability, linked knowledge points across chapters, enhanced the ability to schedule learning scenarios, and improved the teaching adaptability and pertinence of scenario-based Q&A in courses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178567A_ABST
    Figure CN123178567A_ABST
Patent Text Reader

Abstract

The application discloses a course scene intelligent question and answer method and system based on an agent workflow arrangement, relates to the field of artificial intelligence question and answer technology, and through double-source knowledge fusion of a static knowledge base and a dynamic courseware, question and answer content is no longer limited to pre-imported offline course resources, can be dynamically adapted in combination with real-time courseware in a classroom, and the knowledge adaptability is improved; relies on multi-dimensional teaching label labeling and unified semantic vector coding, breaks through the limitation of temporary analysis of a single courseware, realizes association and connection of knowledge points across chapters; through course scene decision shunting of intention recognition and confidence calibration, can distinguish preview and question-answering learning situation scenes, and respectively generates lightweight preview content and individualized question-answering content through priority rearrangement scoring, realizes arrangement scheduling and on-demand shunting under the driving of an agent workflow, and improves the teaching adaptability and pertinence of course scene question and answer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence question answering technology, specifically to a course-based scenario-based intelligent question answering method and system based on intelligent agent workflow orchestration. Background Technology

[0002] With the deep integration of artificial intelligence technology and higher education teaching technology, intelligent classroom assistance tools are being applied more and more widely in various professional courses in higher education. Intelligent question-answering technology based on natural language processing and large language models enables students to access course-related knowledge in natural language at any time, effectively alleviating problems such as insufficient teachers and untimely responses in traditional Q&A models. However, the complexity of course teaching scenarios means that providing highly adaptable knowledge services based on specific course scenarios remains a challenge.

[0003] Existing intelligent question-answering methods for course scenarios mainly include question-answering methods based on fixed static knowledge bases, question-answering methods based on single-session courseware parsing, and question-answering methods based on retrieval-enhanced generation. These typically involve knowledge base construction, knowledge retrieval, answer generation, and scenario adaptation. Therefore, existing technologies still have the following technical shortcomings in actual course teaching scenarios: 1. Poor knowledge adaptability: Existing intelligent teaching assistance solutions are mostly based on the traditional question-and-answer mode of fixed static knowledge bases. They rely too much on pre-imported offline course resources to conduct question-and-answer, and can only retrieve existing content in the database. They cannot be dynamically adapted to combine with real-time classroom courseware.

[0004] 2. Insufficient ability to connect knowledge points: Some intelligent teaching aids adopt a question-and-answer mode of real-time courseware analysis, which is mostly based on temporary analysis of single courseware uploaded by users, and cannot achieve cross-chapter knowledge point association and connection.

[0005] 3. Lack of workflow scheduling in knowledge retrieval scheduling: Most existing technologies only perform simple knowledge retrieval on original teaching files such as PDFs and PPTs, and lack the ability to orchestrate workflows and dynamically distribute them driven by intelligent agents.

[0006] 4. Poor ability to schedule learning scenarios: Existing question-and-answer systems generally lack the ability to identify and schedule learning states, and cannot effectively distinguish between different learning scenarios such as pre-class preparation and post-class Q&A.

[0007] Therefore, how to solve the problems of poor knowledge adaptability, insufficient knowledge point connection ability, lack of workflow scheduling for knowledge retrieval and scheduling, and poor learning scenario scheduling ability in existing technologies, so as to achieve effective integration of static and dynamic knowledge, cross-chapter knowledge point connection, and intelligent question answering in course scenarios, has become a technical problem that urgently needs to be solved in this field. Summary of the Invention

[0008] In view of this, this application provides a course-based scenario-based intelligent question-answering method and system based on intelligent agent workflow orchestration, which helps to solve the problems of poor knowledge adaptability, insufficient knowledge point connection ability, lack of workflow scheduling for knowledge retrieval and scheduling, and poor learning scenario scheduling ability in the existing technology.

[0009] In a first aspect, embodiments of this application provide a course-based scenario-based intelligent question-answering method based on intelligent agent workflow orchestration, comprising the following steps: Based on knowledge construction workflow nodes, the received course source files are labeled with multi-dimensional teaching tags, and standardized question-and-answer pairs are generated for each knowledge element; The standardized question-answer pairs, the knowledge elements, and the teaching tags are uniformly semantically vectorized and encoded through the static knowledge base workflow nodes to form a static knowledge set. When receiving a user query request, the dynamic knowledge source workflow node parses and cleans the uploaded courseware resources to obtain a dynamic knowledge set. The dual-source knowledge fusion workflow node performs knowledge fusion on the static knowledge set and the dynamic knowledge set to construct a candidate knowledge element set; The intent recognition workflow node parses user input and performs confidence calibration to make course scenario-based decision-making and routing. If the user is determined to be in a pre-study state, the pre-study workflow node directly inherits and retrieves the static knowledge set, calculates the pre-study priority comprehensive re-ranking score, and generates lightweight pre-study content. If the user is determined to be in a question-answering state, the question-answering workflow node directly retrieves the candidate knowledge element set, calculates the question-answering priority, re-ranks the scores, and generates personalized question-answering content.

[0010] In one possible implementation, the knowledge-based workflow node performs multi-dimensional teaching tagging on the received course source files, generating standardized question-and-answer pairs for each knowledge element, including: The course source files are subjected to knowledge parsing and semantic annotation, knowledge elements are transformed into standardized question-answer pairs, the relationship between knowledge elements, teaching tags and question-answer pairs is established, and a knowledge index is constructed. The tag matching degree between the query text and the knowledge element tag set is used as the first round of coarse screening for static knowledge retrieval, and only candidate knowledge elements that meet the preset conditions are retained for subsequent semantic retrieval. The feature discrimination weight is determined based on the frequency of occurrence of various teaching tags in the course knowledge base. The lower the frequency of occurrence of a tag, the higher its feature discrimination weight and the higher its priority in retrieval scheduling.

[0011] In one possible implementation, a static knowledge set is formed by performing unified semantic vectorization encoding on the standardized question-answer pairs, the knowledge elements, and the teaching tags through static knowledge base workflow nodes, including: After uniformly semantically vectorizing the standardized question-answer pairs, the knowledge elements, and the teaching tags, they are written into a static vector database to establish vector indexes, tag indexes, and knowledge element indexes. The query text is encoded into a query vector, and the semantic relevance score between the query vector and the candidate knowledge element is calculated. The feature discrimination weight is introduced in the calculation process. The candidate knowledge set is reordered by combining the semantic relevance score and the teaching label, and the sorted static knowledge set is output and stored in the classroom static knowledge source.

[0012] In one possible implementation, encoding the query text into a query vector, calculating the semantic relevance score between the query vector and candidate knowledge elements, and incorporating the feature discriminative weights during the calculation process, includes: Define user query Include m The first core keyword, the Candidate knowledge elements Include n The semantic relevance scoring formula between two sub-knowledge items is as follows: , Represents the semantic transition matrix, matrix elements Indicates the user query number The core keywords and knowledge elements The semantic mapping weights between the core words For the cost of local semantic transmission, st Subsequent terms are the hard constraint control rules executed during the solution process; The feature discriminative weights are introduced when calculating the local semantic transmission cost: and The feature discrimination weight, This is the tag gain adjustment coefficient.

[0013] In one possible implementation, when receiving a user query request, the dynamic knowledge source workflow node parses and cleans the uploaded courseware resources to obtain a dynamic knowledge set, including: The received in-class materials are extracted and organized into a structured format according to semantic units, and then transformed into a standardized text sequence. The standardized text sequence is semantically understood by calling a large language model, text content irrelevant to teaching is removed, and real-time classroom teaching content is extracted to form the dynamic knowledge set; Establish the association between the dynamic knowledge set and course chapters, knowledge points and teaching tags, and store it in the classroom dynamic knowledge source.

[0014] In one possible implementation, the dual-source knowledge fusion workflow node performs knowledge fusion on the static knowledge set and the dynamic knowledge set to construct a candidate knowledge element set, including: The threshold for dual-source knowledge fusion is determined based on the internal semantic similarity and tag overlap between the static knowledge set and the dynamic knowledge set. Calculate the semantic relevance score between the static knowledge element and the dynamic knowledge element, and perform different fusion processes based on the semantic relevance score; When the score is greater than or equal to the dual-source knowledge fusion threshold, the static knowledge element is retained and the incremental knowledge in the dynamic knowledge element is used to form a fused knowledge node. When the score is lower than the dual-source knowledge fusion threshold, the dynamic knowledge element is treated as an independent knowledge node; Establish a source identifier field based on the knowledge source of each fused knowledge element. This is used to subsequently execute different knowledge scheduling strategies, form a dual-source fusion knowledge system, and construct a candidate knowledge element set.

[0015] In one possible implementation, the intent recognition workflow node parses user input and performs confidence calibration to perform course scenario decision-making and routing, including: The large language model is invoked to perform semantic parsing on the query text to obtain the predicted probability distribution corresponding to the preset intent category; Search the query text for whether it contains a preset explicit status keyword, and set the intent feature status bit according to the inclusion status; Calculate the comprehensive confidence evaluation value of intent recognition based on the predicted probability distribution and the intent feature state bits; Based on the comprehensive confidence evaluation value of the intent recognition and the predicted probability distribution, determine whether the user is in a pre-study state or a Q&A state and execute the corresponding workflow accordingly; When the confidence score of the intent recognition comprehensive confidence evaluation value is insufficient, it is determined that the user input is ambiguous, and an ambiguity confirmation prompt is output to wait for user confirmation.

[0016] In one possible implementation, if the user is determined to be in a pre-study state, the pre-study workflow node directly inherits and retrieves the static knowledge set, calculates a comprehensive re-ranking score for pre-study priority, and generates lightweight pre-study content, including: If it is determined that the user is in a pre-study state, the pre-study workflow node inherits and retrieves the static knowledge set; Complex knowledge points are removed from the static knowledge set, and low-difficulty basic knowledge elements that match the basic concept tags are retained. These low-difficulty basic knowledge elements are then used as candidate pre-study knowledge elements. Calculate the score for re-ranking the preview priority of each candidate preview knowledge element; The candidate pre-study knowledge elements are sorted in descending order according to the pre-study priority to generate lightweight pre-study content that fits the pre-study scenario.

[0017] In one possible implementation, if it is determined that the user is in a question-answering state, the question-answering workflow node directly retrieves the candidate knowledge element set, calculates the question-answering priority re-ranking score, and generates personalized question-answering content, including: If it is determined that the user is in a question-answering state, the static knowledge set and the fused knowledge elements are retrieved to form a candidate knowledge element set; According to the description of each candidate knowledge element Determine its dynamic incremental indication value; The comprehensive score for reordering the question-answering priority of each candidate knowledge element is calculated based on the semantic relevance score and the dynamic incremental indicator value. The comprehensive scores are rearranged in descending order according to the question-answering priority to generate personalized question-answering content.

[0018] Secondly, embodiments of this application provide a course-based scenario-based intelligent question-answering system based on intelligent agent workflow orchestration, including: The knowledge construction module is used to annotate the received course source files with multi-dimensional teaching tags and generate standardized question-and-answer pairs for each knowledge element. A static knowledge base construction module is used to perform unified semantic vectorization encoding on the standardized question-answer pairs, the knowledge elements, and the teaching tags to form a static knowledge set; The dynamic knowledge source parsing module is used to parse and clean the uploaded courseware resources to obtain a dynamic knowledge set when a user query request is received. The dual-source knowledge fusion module is used to perform knowledge fusion on the static knowledge set and the dynamic knowledge set to construct a candidate knowledge element set; The intent recognition module is used to parse user input and perform confidence calibration to make course scenario-based decision-making. The preview content generation module is used to directly inherit and retrieve the static knowledge set when it is determined that the user is in the preview state, calculate the preview priority comprehensive re-ranking score, and generate lightweight preview content; The Q&A content generation module is used to directly retrieve the candidate knowledge element set when it is determined that the user is in a Q&A state, calculate the Q&A priority re-ranking score, and generate personalized Q&A content.

[0019] Thirdly, embodiments of this application provide an electronic device, including: processor; Memory; And a computer program, wherein the computer program is stored in the memory, the computer program including instructions that, when executed by the processor, cause the electronic device to perform the method described in any one of the first aspects.

[0020] Fourthly, embodiments of this application provide a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform the method described in any one of the first aspects.

[0021] By adopting the technical solution of this application, through the fusion of dual-source knowledge from static knowledge base and dynamic courseware, the question-and-answer content is no longer limited to pre-imported offline course resources, but can be dynamically adapted to real-time classroom courseware, thus improving knowledge adaptability. Relying on multi-dimensional teaching tag annotation and unified semantic vectorization encoding, it breaks through the limitations of temporary parsing of single courseware, and realizes the association and connection of knowledge points across chapters. Through intent recognition and confidence calibration, the course scenario decision-making and diversion can be carried out, which can distinguish between pre-study and Q&A learning scenarios, and generate lightweight pre-study content and personalized Q&A content respectively through priority re-sorting and scoring. This realizes the orchestration and scheduling and on-demand diversion driven by intelligent agent workflow, improving the teaching adaptability and pertinence of course scenario-based question and answer. Attached Figure Description

[0022] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 A schematic diagram of a scenario-based intelligent question-answering method for courses based on intelligent agent workflow orchestration is provided for an embodiment of this application; Figure 2 This is a schematic diagram of the workflow orchestration of a question-answering agent provided in an embodiment of this application; Figure 3 Example 1: Problem Input Display Interface Diagram provided in this application embodiment; Figure 4 Example 2, a diagram showing the input interface for an embodiment of this application; Figure 5 This application provides a schematic diagram of the framework of a scenario-based intelligent question-answering system for courses based on intelligent agent workflow orchestration. Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0024] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0025] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0026] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0027] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.

[0028] In the embodiments of this application, Figure 1 This is a flowchart illustrating a scenario-based intelligent question-answering method for courses based on intelligent agent workflow orchestration, provided as an embodiment of this application. Figure 2 This is a schematic diagram of the workflow orchestration for a question-answering agent. The course-based scenario-based intelligent question-answering method disclosed in this application, based on agent workflow orchestration, includes: S101: Knowledge Construction Workflow Node. First, the system receives the course source files, performs knowledge parsing on files of different formats, and the workflow calls a large language model to perform semantic analysis on various knowledge elements. Knowledge annotation is completed based on preset multi-dimensional teaching tags, including dimensions such as basic concepts, core knowledge, key points and difficulties, and extensions. Each course knowledge element corresponds to at least one teaching tag, thereby establishing a mapping relationship between course knowledge elements and teaching tags.

[0029] After tagging is completed, the system constructs a knowledge base sub-workflow. First, it performs format recognition, content parsing, and text standardization on course source files of different formats. Then, based on chapter structure, paragraph boundaries, and semantic integrity, it performs semantic segmentation to form knowledge elements that can independently express course content, and establishes a mapping relationship between knowledge elements and teaching tags. On this basis, it calls a large language model to generate standardized question-and-answer pairs based on each knowledge element. Each question-and-answer pair includes a question item and an answer item, where the question item describes the corresponding knowledge point, and the answer item fully expresses the corresponding knowledge content.

[0030] Once generated, the knowledge question-and-answer pairs and corresponding tags are input into the knowledge organization module to establish relationships between knowledge elements, tags, and question-and-answer pairs, and to construct a knowledge index. Specifically, a vector index is built using the question text, a tag index using teaching tags, and an association index using knowledge element numbers, enabling the system to support semantic retrieval, tag filtering, and knowledge localization respectively. When a user queries in real time, the question-and-answer agent first extracts the intersection-union ratio (IUU) of the tag set of the query text and the knowledge element tag set in the static knowledge base. The resulting tag matching degree serves as the first round of coarse screening in the static knowledge retrieval stage, retaining only candidate knowledge elements whose tag relevance meets preset conditions for subsequent semantic retrieval, thereby reducing the data scale of subsequent vector recall and improving knowledge retrieval efficiency.

[0031] To differentiate the importance of different labels, the question-answering agent prioritizes different labels during the knowledge scheduling process, defining the feature discrimination weight formula for the i-th type of label as follows: In the formula For the first The frequency of class tags appearing in the course knowledge base This represents the total number of tag categories in the multidimensional teaching tag system. This represents the total cumulative frequency of all category tags in the knowledge base. This is a preset smoothing control factor used to prevent the denominator from being zero; in this embodiment, it takes the value of... The value range is [0, +]. Within the positive number field of ), the frequency of occurrence in the course knowledge base. The lower the label, the higher its feature discriminative weight. The higher the value, the stronger the knowledge discrimination ability of the tag, and the higher the priority it provides in retrieval scheduling.

[0032] S102: Static Knowledge Base Workflow Node Construction. After completing the knowledge construction workflow node in step S101, the agent continues to execute the static knowledge base construction workflow node. It performs unified semantic vectorization encoding on the standardized knowledge question-and-answer pairs, course knowledge elements, and corresponding teaching tags generated in S101, converting unstructured text into a fixed-dimensional dense vector representation, with the spatial dimension D set to 1024 dimensions. Through vector space mapping, the semantic matching capability in the knowledge retrieval stage is improved. After encoding, the system writes all the above information into a static vector database and establishes a vector index, a tag index, and a knowledge element index. The vector index is used for semantic similarity retrieval, the tag index is used for tag filtering, and the knowledge element index is used for knowledge localization, thus completing the construction of the static knowledge base.

[0033] When a subsequent workflow receives a user query request, the system first vectorizes the user input text, representing the query text as a query vector Q. To improve the semantic matching degree between the user query and course knowledge, bulldozer distance (EMD) based on optimal transport theory is used to calculate the semantic relevance between the user query and candidate knowledge elements in the static knowledge base. The user query is defined to contain m core words, and their corresponding feature vector set is { In a static knowledge base, the i-th knowledge point contains n knowledge sub-items, and its corresponding feature vector set is { Define user query and the first... The formula for scoring the semantic relevance between static knowledge elements is as follows: st , In the formula Represents the semantic transition matrix, matrix elements Indicates the user query number The core keywords and knowledge elements The semantic mapping weights between the core words. The subsequent terms of `st` are the hard constraint control rules executed during the solution process. These constraints ensure that the semantic mapping process satisfies non-negativity constraints, query semantic conservation constraints, knowledge element capacity constraints, and global normalization constraints, enabling the semantic information in the user query to be completely mapped to the corresponding knowledge elements. To reflect the importance of course tags for knowledge retrieval, the tag feature discriminative weights calculated in step S101 are introduced when calculating the local semantic transmission cost. The calculation formula is as follows: For users to query the number The core keywords and knowledge elements Cosine semantic distance between core words and The label feature discrimination weights obtained in step S101 are and the label gain adjustment coefficients are . .

[0034] Based on semantic relevance scores, the first stage of knowledge retrieval is completed according to the scores. A higher semantic relevance score indicates a greater semantic relevance between the user query and the corresponding knowledge element, prioritizing its inclusion in the candidate knowledge set. Next, the workflow enters the knowledge reordering stage. The system combines semantic relevance and teaching tags to perform a Rerank reordering of the candidate knowledge set, outputting a sorted static knowledge set. This static knowledge set is then placed into the classroom static knowledge source, reflecting the current course's static teaching content, and serves as the static knowledge input for the S104 dual-source knowledge fusion workflow node.

[0035] S103: Construction of Dynamic Knowledge Source Workflow Nodes. After completing the construction of the static knowledge base, the agent executes the dynamic knowledge source workflow node, receiving in-class reference materials associated with the current question-and-answer request in real time, extracting the text, and organizing it into a structured organization according to semantic units, converting it into a standardized text sequence. Then, the workflow calls a large language model to perform semantic understanding on the standardized text sequence. The system automatically identifies text content in the courseware that is irrelevant to teaching, so as to reduce the impact on knowledge retrieval. After completing text cleaning, the large model extracts real-time classroom teaching content from the remaining text to form a dynamic knowledge set. For each dynamic knowledge element, the system synchronously establishes its association with course chapters, knowledge points, and teaching tags. Finally, the above knowledge element set is put into the classroom dynamic knowledge source, reflecting the current classroom teaching content, and serves as the dynamic knowledge input for the S104 dual-source knowledge fusion workflow node.

[0036] S104: Construction of the Dual-Source Knowledge Fusion Workflow Node. When a user initiates a real-time question, the agent reads the static knowledge set recalled in step S2 and the cleaned dynamic knowledge elements in S103 and fuses them in real time. It calculates the average semantic similarity within the static knowledge set and the average semantic similarity within the dynamic knowledge set, respectively. Based on the static and dynamic knowledge tag sets, it calculates the degree of tag overlap between the two types of knowledge. The dual-source knowledge fusion threshold formula is defined as follows: In the formula and This represents the average semantic similarity within the static and dynamic knowledge sets. and The preset static and dynamic adjustment factors satisfy the constraints. + =1, in this embodiment, we take... , . The smoothing factor has a value of After obtaining the fusion threshold, the system calls the semantic relevance scoring formula in step S102 to cross-calculate the semantic relevance score between any set of dynamic knowledge elements and static knowledge elements. When the calculated correlation score is greater than or equal to the fusion threshold. At this time, static knowledge elements are retained as basic knowledge, and incremental knowledge from dynamic knowledge elements is used to supplement and form fused knowledge nodes, which are then incorporated into the dual-source fused knowledge; when the relevance score is lower than the fusion threshold... When the system determines that a dynamic knowledge element belongs to new incremental knowledge, it is placed into the dual-source fusion knowledge as an independent knowledge node.

[0037] After knowledge fusion is completed, the agent establishes a source identifier field for each knowledge element in the fused knowledge set. When knowledge originates from a static knowledge base, then... Record static knowledge identifiers; when knowledge originates from dynamic knowledge sources, then... Record classroom material identifiers; when a knowledge node contains both static knowledge and dynamic supplementary content. Record the dual-source correlation information so that subsequent workflows can execute different knowledge scheduling strategies based on the knowledge source, ultimately forming a dual-source fusion knowledge system.

[0038] S105: Intent-based workflow node construction. For example... Figure 2 As shown, the system first extracts the course documents, and the large language model node 1 identifies the user's learning intent. Then, the large language model node 2 analyzes the text, and the question classifier categorizes the user request into pre-study and Q&A states. For the pre-study state, the system retrieves the static knowledge set, and the large language model node 3 generates pre-study content. For the Q&A state, the system retrieves the candidate knowledge set, and the large language model node 4 generates personalized Q&A content. Through this process, classification processing and question-and-answer responses are achieved for different learning scenarios.

[0039] The agent collects the query text input by the user in real time, calls a large model to perform semantic parsing on the input text, and outputs the current text mapped to a preset... Original prediction probability distribution vector of the large model of class intent In this embodiment At this time, P=[ This corresponds to the probability of pre-study guidance intention in S106 and the probability of Q&A consultation intention in S107, and... Simultaneously, the agent searches the user's input text for preset explicit state keywords. If a static match in the text matches preset basic concepts or preview-related vocabulary, the preview feature state bit is then applied. Set to 1 otherwise; if the static match in the text matches words related to answering questions or confusion, then set the answer feature status bit. Set to 1 otherwise set to 0. Define the multidimensional context indicator score. .

[0040] To quantify the reliability of the intent output results of a large model, the formula for the comprehensive confidence score of intent recognition is defined as follows: In the formula , These are weighted control coefficients. =0.7, =0.3, For the intent calibration term, when the large model outputs probabilities = When the overall confidence level is 0.5, this term will take a minimum value; when the intention is relatively clear, this term will take a maximum value of 1. And the probability predicted by the large model The intelligent agent workflow determines that the user is in a pre-learning state and proceeds to step S106; when the overall confidence level... And the probability predicted by the large model The intelligent agent workflow determines that the user is in a question-and-answer state and proceeds to step S107; when the overall confidence level... or If the system determines that the user's input is ambiguous, the agent outputs "Do you want to preview this section or ask questions about a specific knowledge point?" to the system's front-end interface and waits for the user to click to confirm, providing standard input for subsequent steps.

[0041] S106: Construction of Pre-study Workflow Nodes. If step S105 determines that the user is in a pre-study state, the pre-study workflow directly inherits and retrieves the static knowledge set already recalled in step S102, eliminating complex knowledge points tagged with "Key Points" or "Extensions," and retaining only low-difficulty basic knowledge elements matching the "Basic Concepts" tag. To finely adjust the output priority of the selected basic knowledge elements, the comprehensive re-ranking scoring formula for the pre-study priority of the i-th candidate pre-study knowledge element is defined as follows: In the formula The semantic relevance score calculated by the formula in step S102, Let be the set of tags related to basic knowledge in the i-th candidate knowledge element. The course label feature discrimination weight is calculated by the formula in step S101 for the j-th label. As a regulating factor, used to prevent When the value is small, the inverse mapping result is excessively amplified, which improves the numerical stability of the rearrangement score calculation. In this embodiment, we take... . and In this embodiment, the preset scene weight adjustment factor is used. , The primary weighting is based on fundamental tag weights. The higher the semantic relevance of a knowledge element to the user's question, the higher its final pre-study priority will be in the overall re-ranking score. The larger the score, the better. After the re-ranking and scoring calculation is completed, the agent sorts all candidate pre-class knowledge elements in descending order of score. In order to adapt to the lightweight requirements of the pre-class scenario, the system only extracts the top 5 knowledge points and their corresponding standardized question-and-answer pairs and injects them into the prompt word stream, and finally generates personalized pre-class pre-class content that fits the pre-class scenario.

[0042] S107: Q&A Workflow Node Construction. If step S105 determines that the user is in a Q&A state, the Q&A workflow directly retrieves the dual-source fusion knowledge system formed in step S4 to constitute a candidate knowledge element set. To highlight the priority of the lecture content during sorting, the comprehensive scoring formula for the Q&A priority reordering of the i-th candidate knowledge element is defined as follows: In the formula The semantic relevance score obtained in step S102, This is a dynamic incremental indicator value. The agent reads the current candidate knowledge unit. Source identifier in step S104 If the value represents a unique string identifier for dynamic knowledge presented in class, then... The value is assigned to 1.0; if the value represents a unique string identifier for a standardized static knowledge base, then it is assigned a value of 0.7; where and The preset Q&A scenario weight adjustment factor satisfies In this embodiment, , This assigns priority to recommending the latest courseware content for the current lesson. After the dual-source comprehensive re-ranking score is calculated, the agent sorts the candidate knowledge elements according to... The scores are sorted globally in descending order, and only the top 8 knowledge points and their corresponding question-and-answer pairs are extracted and injected into the large model's prompt word stream to ultimately generate accurate and detailed personalized Q&A content.

[0043] The methods provided in the embodiments of this application will be illustrated below with reference to specific application scenarios.

[0044] Example 1: Expected Results of Pre-Class Preparation like Figure 3As shown, the user enters "I want to study the physics layer in the next class, what concepts should I preview?" on the user Q&A interface. The system parses the original predicted probability distribution vector of the large model through the intent recognition workflow node in step S105 and combines it with context keyword verification to calculate the comprehensive confidence evaluation value of intent recognition. Based on this, the system performs learning status decision-making and routing, confirms that the user is currently in the preview state, and routes the user to the preview workflow node.

[0045] Under the pre-study workflow node, the system performs preliminary vector recall only on the static knowledge base constructed in step S102, actively removing complex knowledge points with "key points" and "extension" tags, and retaining only low-difficulty basic knowledge elements matching the "basic concept" tag; it performs inverse mapping by taking the reciprocal of the tag feature discrimination weight, calculates the comprehensive re-ranking score of pre-study priority and sorts it in global descending order, extracts the top 5 knowledge points and their corresponding standardized question-and-answer pairs and injects them into the large model prompt word stream, and finally generates lightweight pre-class pre-study content such as physical layer core concepts and related definitions.

[0046] Example 2: Expected Results of After-Class Q&A Scenario like Figure 4 As shown, the user enters "When I was learning, I didn't fully understand the Amplitude Shift Keying (ASK) method. Could you explain it to me?" in the user Q&A interface. The system calculates the comprehensive confidence evaluation value of intent recognition through the intent recognition workflow node in step S105 and performs confidence calibration. Based on this, it performs decision routing, confirms that the user is currently in the Q&A state, and transfers the user to the Q&A workflow node.

[0047] Under the Q&A workflow node, the system takes user questions as input, directly performs preliminary vector recall on the dual-source fusion knowledge system constructed in step S104, reads the Source_ID field of the candidate knowledge unit and assigns a differentiated score, calculates the Q&A priority, re-ranks the comprehensive score and sorts it in global descending order, extracts the top 8 knowledge points and their corresponding question-answer pairs and injects them into the large model's prompt word stream, and finally assigns priority to recommending the latest courseware content of the current class, generating accurate and detailed personalized Q&A content that includes the core idea of ​​amplitude shift keying, intuitive examples, mathematical representations and other content.

[0048] Corresponding to the above embodiments, this application also provides an embodiment of a course-based scenario-based intelligent question-and-answer system based on intelligent agent workflow orchestration.

[0049] See Figure 5 The course-based scenario-based intelligent question-answering system 20 provided in this embodiment includes: The knowledge construction module 201 is used to receive course source files, perform knowledge annotation based on preset course multi-dimensional tags, construct a knowledge base sub-workflow, enable each knowledge element to automatically generate standardized question-answer pairs and establish relevant indexes, and calculate the feature discrimination weight of each type of teaching tag.

[0050] The static knowledge base construction module 202 is used to perform unified semantic vectorization encoding on the standardized question-answer pairs, the knowledge elements and the teaching tags to construct a static knowledge base; when a user question-answering request is received subsequently, a preliminary retrieval is performed in the static knowledge base to form a static knowledge set. The dynamic knowledge source parsing module 203 is used to receive in-class materials associated with the user's question and answer request in real time, extract and organize the text, and parse and clean it into a dynamic knowledge set in real time. The dual-source knowledge fusion module 204 is used to read the static knowledge set and the dynamic knowledge element, perform knowledge fusion using a dynamic threshold, establish a data source identifier for the fused knowledge element, and form a dual-source fusion knowledge system. The intent recognition module 205 is used to collect the text information of the user's question and answer request, calculate the intent recognition confidence evaluation value and perform confidence calibration based on large model semantic parsing and context keyword verification, and perform course scenario decision-making and diversion. The preview content generation module 206 is used to directly inherit and retrieve the static knowledge set when it is determined that the user is in the preview state, calculate the preview priority comprehensive re-ranking score, and generate lightweight preview content; The Q&A content generation module 207 is used to directly retrieve the static knowledge set and the fused knowledge elements to form a candidate set when it is determined that the user is in a Q&A state, calculate the Q&A priority, re-rank the score, and generate personalized Q&A content.

[0051] It should be noted that the specific content involved in the embodiments of this application can be found in the description of the above method embodiments, and will not be repeated here for the sake of brevity.

[0052] Corresponding to the above embodiments, this application also provides an electronic device.

[0053] See Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 6 As shown, the electronic device 30 may include a processor 301, a memory 302, and a communication unit 303. These components communicate via one or more buses. Those skilled in the art will understand that the electronic device structure shown in the figures does not constitute a limitation on the embodiments of this application. It may be a bus topology or a star topology, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0054] The communication unit 303 is used to establish a communication channel, thereby enabling the electronic device to communicate with other devices.

[0055] The processor 301 serves as the control center of the electronic device, connecting various parts of the device via various interfaces and lines. It executes software programs and / or modules stored in the memory 302, and calls data stored in the memory to perform various functions and / or process data. The processor can be composed of integrated circuits (ICs), such as a single packaged IC or multiple packaged ICs with the same or different functions connected together. For example, the processor 301 may consist only of a central processing unit (CPU). In this embodiment, the CPU may have a single processing core or include multiple processing cores.

[0056] Memory 302 is used to store the execution instructions of processor 301. Memory 302 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.

[0057] When the execution instructions in memory 302 are executed by processor 301, the electronic device 30 is able to perform some or all of the steps in the above method embodiments.

[0058] Corresponding to the above embodiments, this application also provides a computer-readable storage medium, wherein the computer-readable storage medium may store a program, wherein when the program runs, it can control the device where the computer-readable storage medium is located to execute some or all of the steps in the above method embodiments. In specific implementation, the computer-readable storage medium may be a magnetic disk, an optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0059] Corresponding to the above embodiments, this application also provides a computer program product containing executable instructions that, when executed on a computer, cause the computer to perform some or all of the steps in the above method embodiments.

[0060] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, the simultaneous existence of A and B, or the existence of B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0061] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0062] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0063] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0064] The above description is merely a specific embodiment of this application. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application. The protection scope of this application should be determined by the protection scope of the claims.

Claims

1. A scenario-based intelligent question-answering method for courses based on intelligent agent workflow orchestration, characterized in that, Includes the following steps: Based on knowledge construction workflow nodes, the received course source files are labeled with multi-dimensional teaching tags, and standardized question-and-answer pairs are generated for each knowledge element; The standardized question-answer pairs, the knowledge elements, and the teaching tags are uniformly semantically vectorized and encoded through the static knowledge base workflow nodes to form a static knowledge set. When receiving a user query request, the dynamic knowledge source workflow node parses and cleans the uploaded courseware resources to obtain a dynamic knowledge set. The dual-source knowledge fusion workflow node performs knowledge fusion on the static knowledge set and the dynamic knowledge set to construct a candidate knowledge element set; The intent recognition workflow node parses user input and performs confidence calibration to determine course scenario-based decision-making. If the user is determined to be in a pre-study state, the pre-study workflow node directly inherits and retrieves the static knowledge set, calculates the pre-study priority comprehensive re-ranking score, and generates lightweight pre-study content. If the user is determined to be in a question-answering state, the question-answering workflow node directly retrieves the candidate knowledge element set, calculates the question-answering priority, re-ranks the scores, and generates personalized question-answering content.

2. The method according to claim 1, characterized in that, The knowledge-based workflow nodes perform multi-dimensional teaching tagging on the received course source files, generating standardized question-and-answer pairs for each knowledge element, including: The course source files are subjected to knowledge parsing and semantic annotation, knowledge elements are transformed into standardized question-answer pairs, the relationship between knowledge elements, teaching tags and question-answer pairs is established, and a knowledge index is constructed. The tag matching degree between the query text and the knowledge element tag set is used as the first round of coarse screening for static knowledge retrieval, and only candidate knowledge elements that meet the preset conditions are retained for subsequent semantic retrieval. The feature discrimination weight is determined based on the frequency of occurrence of various teaching tags in the course knowledge base. The lower the frequency of occurrence of a tag, the higher its feature discrimination weight and the higher its priority in retrieval scheduling.

3. The method according to claim 1, characterized in that, The standardized question-answer pairs, knowledge elements, and teaching tags are subjected to unified semantic vectorization encoding through static knowledge base workflow nodes to form a static knowledge set, including: After uniformly semantically vectorizing the standardized question-answer pairs, the knowledge elements, and the teaching tags, they are written into a static vector database to establish vector indexes, tag indexes, and knowledge element indexes. The query text is encoded into a query vector, and the semantic relevance score between the query vector and the candidate knowledge element is calculated. The feature discrimination weight is introduced in the calculation process. The candidate knowledge set is reordered by combining the semantic relevance score and the teaching label, and the sorted static knowledge set is output and stored in the classroom static knowledge source.

4. The method according to claim 3, characterized in that, The process of encoding the query text into a query vector, calculating the semantic relevance score between the query vector and candidate knowledge elements, and incorporating the feature discrimination weights during the calculation includes: Define user query Include m The first core keyword, the Candidate knowledge elements Include n The semantic relevance scoring formula between two sub-knowledge items is as follows: , Represents the semantic transition matrix, matrix elements Indicates the user query number The core keywords and knowledge elements Semantic mapping weights between core words For the cost of local semantic transmission, st Subsequent terms are the hard constraint control rules executed during the solution process; The feature discriminative weights are introduced when calculating the local semantic transmission cost: and The feature discrimination weight, This is the tag gain adjustment coefficient.

5. The method according to claim 1, characterized in that, When receiving a user query request, the dynamic knowledge source workflow node parses and cleans the uploaded courseware resources to obtain a dynamic knowledge set, including: The received in-class materials are extracted and organized into a structured format according to semantic units, and then transformed into a standardized text sequence. The standardized text sequence is semantically understood by calling a large language model, text content irrelevant to teaching is removed, and real-time classroom teaching content is extracted to form the dynamic knowledge set; Establish the association between the dynamic knowledge set and course chapters, knowledge points and teaching tags, and store it in the classroom dynamic knowledge source.

6. The method according to claim 1, characterized in that, The dual-source knowledge fusion workflow node performs knowledge fusion on the static knowledge set and the dynamic knowledge set to construct a candidate knowledge element set, including: The threshold for dual-source knowledge fusion is determined based on the internal semantic similarity and tag overlap between the static knowledge set and the dynamic knowledge set. Calculate the semantic relevance score between the static knowledge element and the dynamic knowledge element, and perform different fusion processes based on the semantic relevance score; When the score is greater than or equal to the dual-source knowledge fusion threshold, the static knowledge element is retained and the incremental knowledge in the dynamic knowledge element is used to form a fused knowledge node. When the score is lower than the dual-source knowledge fusion threshold, the dynamic knowledge element is treated as an independent knowledge node; Establish a source identifier field based on the knowledge source of each fused knowledge element. This is used to subsequently execute different knowledge scheduling strategies, form a dual-source fusion knowledge system, and construct a candidate knowledge element set.

7. The method according to claim 1, characterized in that, The intent recognition workflow node parses user input and performs confidence calibration to perform course scenario decision-making and routing, including: The large language model is invoked to perform semantic parsing on the query text to obtain the predicted probability distribution corresponding to the preset intent category; Search the query text for whether it contains a preset explicit status keyword, and set the intent feature status bit according to the inclusion status; Calculate the comprehensive confidence evaluation value of intent recognition based on the predicted probability distribution and the intent feature state bits; Based on the comprehensive confidence evaluation value of the intent recognition and the predicted probability distribution, determine whether the user is in a pre-study state or a Q&A state and execute the corresponding workflow accordingly; When the confidence score of the intent recognition comprehensive confidence evaluation value is insufficient, it is determined that the user input is ambiguous, and an ambiguity confirmation prompt is output to wait for user confirmation.

8. The method according to claim 7, characterized in that, If the user is determined to be in a pre-study state, the pre-study workflow node directly inherits and retrieves the static knowledge set, calculates the pre-study priority comprehensive re-ranking score, and generates lightweight pre-study content, including: If it is determined that the user is in a pre-study state, the pre-study workflow node inherits and retrieves the static knowledge set; Complex knowledge points are removed from the static knowledge set, and low-difficulty basic knowledge elements that match the basic concept tags are retained. These low-difficulty basic knowledge elements are then used as candidate pre-study knowledge elements. Calculate the score for re-ranking the preview priority of each candidate preview knowledge element; The candidate pre-study knowledge elements are sorted in descending order according to the pre-study priority to generate lightweight pre-study content that fits the pre-study scenario.

9. The method according to claim 6, characterized in that, If it is determined that the user is in a question-answering state, the question-answering workflow node directly retrieves the candidate knowledge element set, calculates the question-answering priority, re-ranks the scores, and generates personalized question-answering content, including: If it is determined that the user is in a question-answering state, the static knowledge set and the fused knowledge elements are retrieved to form a candidate knowledge element set; According to the description of each candidate knowledge element Determine its dynamic incremental indication value; The comprehensive score for reordering the question-answering priority of each candidate knowledge element is calculated based on the semantic relevance score and the dynamic incremental indicator value. The comprehensive scores are rearranged in descending order according to the question-answering priority to generate personalized question-answering content.

10. A scenario-based intelligent question-and-answer system for courses based on intelligent agent workflow orchestration, characterized in that, include: The knowledge construction module is used to perform multi-dimensional teaching tagging on the received course source files based on the knowledge construction workflow nodes, and generate standardized question-and-answer pairs for each knowledge element; The static knowledge base construction module is used to perform unified semantic vectorization encoding on the standardized question-answer pairs, the knowledge elements, and the teaching tags through the static knowledge base workflow nodes to form a static knowledge set; The dynamic knowledge source parsing module is used to parse and clean the uploaded courseware resources to obtain a dynamic knowledge set when a user query request is received. The dual-source knowledge fusion module is used by the dual-source knowledge fusion workflow node to perform knowledge fusion on the static knowledge set and the dynamic knowledge set to construct a candidate knowledge element set; The intent recognition module is used to parse user input and perform confidence calibration in the intent recognition workflow nodes, and to make course scenario decision-making and routing. The preview content generation module is used to directly inherit and call the static knowledge set by the preview workflow node, calculate the preview priority comprehensive re-ranking score, and generate lightweight preview content. The Q&A content generation module is used to directly retrieve the candidate knowledge element set when it is determined that the user is in a Q&A state, calculate the Q&A priority, re-rank the score, and generate personalized Q&A content.