Control system and method based on large language model and communication
By introducing task priority calculation and dynamic adjustment modules into the large language model communication system, the complexity of task priorities and resource allocation strategies is solved, system load balancing and efficient resource utilization are achieved, and system performance and user experience are improved.
Patent Information
- Application Number
- CN202410875257.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-15
AI Technical Summary
In communication systems based on large language models, the dynamic adjustment of task priorities and resource allocation strategies is complex, making it difficult for the system to effectively coordinate task processing sequences under high load conditions, affecting performance, and may lead to delays or low priority for high-priority tasks. Level tasks await.
A system is designed that includes a user interface module, a task allocation module, a large language model module and a communication and data transmission module. Through the task priority calculation unit and the dynamic adjustment unit, the task progress and load conditions are monitored in real time and the task priority is dynamically adjusted. and resource allocation to ensure system load balancing and effective resource utilization.
It realizes resource sharing, reduces costs and maintenance complexity, improves resource utilization and system performance, and ensures timely processing of key tasks and stable system operation.
Smart Images

Figure CN118784576A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence and communication technology, and in particular to a communication control system and method based on a large language model. Background Art
[0002] Large Language Model (LLM) is a large-scale natural language processing model based on deep learning technology. It can understand, generate and operate natural language through training on massive text data, and has extensive language processing capabilities. The main features of large language models include large-scale parameters, extensive training data, and powerful language generation and understanding capabilities.
[0003] Currently, in large language models and communication systems, model maintenance is difficult, and many users find it difficult to use the convenience brought by large language models. There are also ideas based on sharing large language models, but task priority and task allocation are still a major problem. Dynamic adjustment of task priority and allocation strategy requires real-time monitoring and calculation, which increases the complexity of the system; there may be conflicts between priorities and resource allocations between different tasks, and it is difficult to achieve the best in all cases; the system may find it difficult to effectively coordinate the processing order of tasks under high load, affecting the overall performance; imperfect adjustment mechanism may cause delays in high-priority tasks or long waiting for low-priority tasks; Summary of the invention
[0004] The purpose of the present invention is to provide a system and method based on a large language model and a communication control system to solve the problems raised in the above background technology.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions: A large language model and communication control system, characterized in that: the system includes a user interface module, a task allocation module, a large language model module and a communication and data transmission module;
[0006] The user interface module is used to provide an interface for users to interact with the large language model, so that users can input tasks and view answers; the task assignment module is used to sort multiple tasks input by multiple users according to priority and assign tasks according to priority; the large language model module is used to analyze and answer the assigned tasks and generate answer results; the data transmission module is used to transmit task data, including data transmission between users and the large language model and data transmission between the large language model and the database;
[0007] The output end of the user interface module is connected to the input end of the task assignment module; the output end of the task assignment module is connected to the input end of the large language model module; the output end of the large language model module is connected to the input end of the communication and data transmission module; the output end of the communication and data transmission module is connected to the input end of the user interface module.
[0008] The task allocation module includes a task priority calculation unit and a dynamic adjustment unit;
[0009] The task priority calculation unit is used to calculate the priorities of all tasks, and to allocate tasks according to the priorities, and the large language model is used to answer according to the allocation; the dynamic adjustment unit is used to perform secondary calculation on the task priorities and dynamically adjust the task allocation;
[0010] The output end of the task priority calculation unit and the output end of the dynamic adjustment unit are connected to the input end of the large language model module.
[0011] The large language model module includes a data processing unit, a database retrieval unit, a calculation unit and a language processing unit;
[0012] The data processing unit is used to pre-process the task input by the user; the database retrieval unit is used to retrieve the database to answer the question; the calculation unit is used to solve the part of the task that requires calculation; the language processing unit is used to summarize the content of the answer and transmit the answer result to the user;
[0013] The output end of the data processing unit is connected to the input end of the database retrieval unit; the output end of the database retrieval unit is connected to the input end of the calculation unit; the output end of the calculation unit is connected to the input end of the language processing unit; the output end of the language processing unit is connected to the input end of the communication and data transmission module.
[0014] A method based on a large language model and communication control, the method comprising the following steps:
[0015] S1, shared large language model and communication system deployment;
[0016] S2, user signal reception and preprocessing;
[0017] S3, assign tasks based on comprehensive priorities;
[0018] S4, dynamically adjust the assigned tasks and integrate resource redistribution;
[0019] S5, semantic analysis and result generation;
[0020] S6. Determine the best transmission path for the information based on the generated results; the security module encrypts the information to be sent to ensure the security during the transmission process;
[0021] S7. Send the processed information to the target recipient via the signal transmitter to complete the entire communication process.
[0022] In steps S1-S2,
[0023] Deploy large language models on the cloud platform; configure signal receivers and signal transmitters;
[0024] When the system receives a text message, the preprocessor converts it into a standard format, including removing noise and redundant data.
[0025] In step S3,
[0026] Priority is an important basis for allocating tasks received by the system. A priority judgment mechanism is added to the large language model. The factors affecting the priority include time sensitivity, resource requirement, user priority, and task type. The weights of the priority calculation are W and TS =0.4, W RR =0.3, W UP =0.2 and W TT =0.1;
[0027] Among them, tasks with different time requirements correspond to different levels of scores. Time sensitivity includes immediate tasks, urgent tasks, general tasks, and non-urgent tasks, and their scores are 1.0, 0.8, 0.5, and 0.2 respectively;
[0028] Resource requirements are scored based on the computational and storage resources required for the task: high resource requirement score: 1.0, medium resource requirement score: 0.7, and low resource requirement score: 0.4;
[0029] User priority is scored based on the user's tags: VIP user score: 1.0 and ordinary user score: 0.5;
[0030] Task type is scored based on the importance of the task: critical task score: 1.0, important task score: 0.7 and general task score: 0.4;
[0031] The comprehensive priority OP is as follows:
[0032] OP=W TS *TS+W RR *RR+W UP*UP+W TT *TT
[0033] Among them, OP is the comprehensive priority; W TS is the time sensitivity weight; W RR is the weight of resource demand; W UP is the weight of user priority; W TT is the weight of the task type; TS is the time sensitivity score; RR is the resource requirement score; UP is the user priority score; TT is the score of the task type.
[0034] In step S4,
[0035] Dynamically adjust task allocation, recalculate task priority, increase waiting time and system load; factors affecting task priority include time sensitivity, resource requirements, user priority, task type, waiting time and system load. Due to the increase in waiting time and system load, the weight size is redesigned. The weight size is as follows: W TS =0.3, W RR =0.25, W UP =0.15, W TT =0.1, W WT = 0.1 and W SL =0.1;
[0036] Waiting time scoring: Scoring is based on the time the task waits in the queue; the waiting time T is in the range [0, T max ], waiting time score WT:
[0037]
[0038] Where, T is the waiting time; T max is the maximum waiting time; WT is the waiting time score;
[0039] System load score: Score based on the current system load; the current load L is in the range [0,L max ], the system load score SL:
[0040]
[0041] Where SL is the system load score; L is the current load; L max Maximum system load;
[0042] Calculate the overall priority OP again: assign tasks based on the calculated overall priority
[0043] OP=W TS *TS+W RR *RR+WUP *UP+W TT *TT+W WT *WT+W SL *SL
[0044] Where OP is the comprehensive priority; W TS is the time sensitivity weight; W RR is the weight of resource demand; W UP is the weight of user priority; W TT is the weight of the task type; W WT is the weight of waiting time; W SL is the weight of the system load; TS is the time sensitivity score; RR is the resource requirement score; UP is the user priority score; TT is the task type score; WT is the waiting time score; SL is the system load score.
[0045] In step S3,
[0046] The scoring method for user priority is as follows: when using the large language model, account login and real-name authentication are required. After logging into the account, the large model will automatically identify whether the user is a VIP user or a common user, and give a corresponding score when calculating the priority;
[0047] Resource requirement scoring includes computing resources and storage resources. The specific scoring method is as follows:
[0048] Scoring based on the computing resources required for the task:
[0049] High computing resource requirements: 8 CPU cores or more are required, with a score of 1.0; Medium computing resource requirements: 4-8 CPU cores are required, with a score of 0.7; Low computing resource requirements: less than 4 CPU cores are required, with a score of 0.4;
[0050] Scoring based on the storage resources required for the task:
[0051] High storage resource requirements: more than 100GB of disk space or more than 32GB of memory are required, with a score of 1.0; Medium storage resource requirements: 50-100GB of disk space or 16-32GB of memory are required, with a score of 0.7; Low storage resource requirements: less than 50GB of disk space or less than 16GB of memory are required, with a score of 0.4;
[0052] The maximum score is recorded as the resource demand score.
[0053] In step S3,
[0054] The scoring mechanism in time sensitivity and task type is trained using machine learning; specifically:
[0055] Segment and quantify the input content and extract keywords. Check the database and randomly select 10,000 immediate tasks, urgent tasks, general tasks, non-urgent tasks, key tasks, important tasks and general tasks input by users. Analyze the user input content. Take immediate tasks as an example, extract keywords from each input content and record them as follows:
[0056] Immediate Task 1: [token 11 ,token 12 ,…];
[0057] Immediate Task 2: [token 21 ,token 22 ,…];
[0058]
[0059] Instant task n: [token n1 ,token n2 ,…];
[0060] Among them, token 11 The first keyword in the immediate task 1; token 12 The second keyword in the immediate task 1; token 21 The first keyword in the instant task 2; token 22 The second keyword in the instant task 2; token n1 The first keyword in the immediate task n; token n2 It is the second keyword in the immediate task n;
[0061] After extracting the keywords, we union them to get the keywords representing the immediate tasks, which are recorded as [token1, token2,…, token n ]; token1 is the first keyword of the immediate task; token2 is the second keyword of the immediate task; token n is the nth keyword of the immediate task; for the keywords [token1, token2, …, token n ] is quantized, and the digital vector is represented as: [n1,n2,…,n n ], where n1 is the digitized vector of token1; n2 is the digitized vector of token2; n n is token n The digitized vector of
[0062] According to this method, the keywords of urgent tasks, general tasks, non-urgent tasks, critical tasks, important tasks and general tasks are extracted respectively;
[0063] Extract keywords from user input and record them as: [token1, token2, …, tokenm]; where token1 is the first keyword input by the user; token2 is the second keyword input by the user; tokenm is the mth keyword input by the user; digital vector representation: [n1, n2, …, nm], where n1 is the digital vector of token1; n2 is the digital vector of token2; nm is the digital vector of tokenm;
[0064] Calculate the similarity S:
[0065]
[0066] Among them, S is the similarity; n1 is the digitized vector of token1; n2 is the digitized vector of token2; n n is token n ; n1 is the digitized vector of token1; n2 is the digitized vector of token2; nm is the digitized vector of tokenm;
[0067] According to the above formula, the similarities of immediate tasks, urgent tasks, general tasks, non-urgent tasks, critical tasks, important tasks and general tasks are calculated respectively. Among the immediate tasks, urgent tasks, general tasks and non-urgent tasks, the tasks with the greatest similarity are selected for scoring; among the critical tasks, important tasks and general tasks, the tasks with the greatest similarity are selected for scoring.
[0068] In step S5,
[0069] After calculating the task priority, the high-priority tasks are input into the large language model, which then performs task content analysis and result generation, specifically:
[0070] Task execution: Based on the parsed intent and information, the corresponding background services and functions are called to execute the tasks requested by the user, including querying the database, calling external APIs, and executing system commands;
[0071] Result processing: Process and format the results of task execution to generate user responses; including sorting, filtering, and summarizing query results;
[0072] Natural language generation: Generate natural language responses using a trained large language model; including content planning, sentence generation, and language polishing;
[0073] Multi-round dialogue management: In multi-round dialogues, the dialogue status and context information are maintained to ensure the logical consistency of continuous dialogues; including adjusting the response content according to the user's subsequent input, tracking the dialogue topic, etc.
[0074] The content planning is to determine the content and structure of the response; the sentence generation is to convert the structured content into natural language sentences; and the language polishing is to polish the generated sentences to make them meet the grammatical and style requirements.
[0075] Compared with the prior art, the beneficial effects achieved by the present invention are:
[0076] 1. The present invention proposes a shared large language model, which has an important impact on cost-effectiveness, resource utilization and maintenance. Cost-effectiveness: resource sharing can significantly reduce costs because multiple users share the cost of computing and storage resources; efficient resource utilization: in the shared resource mode, the system can dynamically adjust resource allocation according to the load of user requests to improve resource utilization; convenient maintenance and update: the unified model and system maintenance are relatively simple, and updating the model and fixing problems can be done at one time, which is applicable to all users;
[0077] 2. The present invention adopts a dynamic adjustment strategy, which can perform real-time monitoring. The system monitors the processing progress, waiting time and current load of each task in real time, and uses the monitoring data to dynamically adjust the comprehensive priority of each task; load balancing, dynamically adjust the task allocation strategy according to the load of each submodule to ensure balanced operation of the system, and give priority to allocating tasks to submodules with lighter loads to avoid overloading of a certain submodule; task redistribution, when the waiting time of a task is too long or a delay occurs in the processing of a task by a submodule, the system automatically recalculates the priority of the task and reallocates the task to other submodules; the redistribution strategy is based on real-time load and historical data, which greatly shortens the task completion time;
[0078] 3. The present invention adds a resource utilization optimization module, which optimizes resource utilization strategies by analyzing historical task processing data, and improves the overall resource utilization of the system; dynamically adjusts the resource allocation of sub-modules to ensure that key tasks are given priority and sufficient resource support. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0080] Figure 1 It is a flow chart of a large language model and a communication control system according to the present invention;
[0081] Figure 2 It is a schematic diagram of the steps of the present invention based on a large language model and a communication control method. DETAILED DESCRIPTION
[0082] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0083] See also Figure 1-Figure 2 ,The present invention provides a technical solution: a large language model and communication control system, characterized in that the system includes a user interface module, a task allocation module, a large language model module, and a communication and data transmission module;
[0084] The user interface module is used to provide an interface for users to interact with the large language model, so that users can input tasks and view answers; the task assignment module is used to sort multiple tasks input by multiple users according to priority and assign tasks according to priority; the large language model module is used to analyze and answer the assigned tasks and generate answer results; the data transmission module is used to transmit task data, including data transmission between users and the large language model and data transmission between the large language model and the database;
[0085] The output end of the user interface module is connected to the input end of the task assignment module; the output end of the task assignment module is connected to the input end of the large language model module; the output end of the large language model module is connected to the input end of the communication and data transmission module; the output end of the communication and data transmission module is connected to the input end of the user interface module.
[0086] The task allocation module includes a task priority calculation unit and a dynamic adjustment unit;
[0087] The task priority calculation unit is used to calculate the priorities of all tasks, and to allocate tasks according to the priorities, and the large language model is used to answer according to the allocation; the dynamic adjustment unit is used to perform secondary calculation on the task priorities and dynamically adjust the task allocation;
[0088] The output end of the task priority calculation unit and the output end of the dynamic adjustment unit are connected to the input end of the large language model module.
[0089] The large language model module includes a data processing unit, a database retrieval unit, a calculation unit and a language processing unit;
[0090] The data processing unit is used to pre-process the task input by the user; the database retrieval unit is used to retrieve the database to answer the question; the calculation unit is used to solve the part of the task that requires calculation; the language processing unit is used to summarize the content of the answer and transmit the answer result to the user;
[0091] The output end of the data processing unit is connected to the input end of the database retrieval unit; the output end of the database retrieval unit is connected to the input end of the calculation unit; the output end of the calculation unit is connected to the input end of the language processing unit; the output end of the language processing unit is connected to the input end of the communication and data transmission module.
[0092] A method based on a large language model and communication control, the method comprising the following steps:
[0093] S1, shared large language model and communication system deployment;
[0094] S2, user signal reception and preprocessing;
[0095] S3, assign tasks based on comprehensive priorities;
[0096] S4, dynamically adjust the assigned tasks and integrate resource redistribution;
[0097] S5, semantic analysis and result generation;
[0098] S6. Determine the best transmission path for the information based on the generated results; the security module encrypts the information to be sent to ensure the security during the transmission process;
[0099] S7. Send the processed information to the target recipient via the signal transmitter to complete the entire communication process.
[0100] In steps S1-S2,
[0101] Deploy large language models on the cloud platform; configure signal receivers and signal transmitters;
[0102] When the system receives a text message, the preprocessor converts it into a standard format to remove noise and redundant data.
[0103] In step S3,
[0104] Priority is an important basis for allocating tasks received by the system. A priority judgment mechanism is added to the large language model. The factors affecting the priority include time sensitivity, resource requirement, user priority, and task type. The weights of the priority calculation are W and TS =0.4, W RR =0.3, W UP =0.2 and W TT =0.1;
[0105] Among them, tasks with different time requirements correspond to different levels of scores. Time sensitivity includes immediate tasks, urgent tasks, general tasks, and non-urgent tasks, and their scores are 1.0, 0.8, 0.5, and 0.2 respectively;
[0106] Resource requirements are scored based on the computational and storage resources required for the task: high resource requirement score: 1.0, medium resource requirement score: 0.7, and low resource requirement score: 0.4;
[0107] User priority is scored based on the user's tags: VIP user score: 1.0 and ordinary user score: 0.5;
[0108] Task type is scored based on the importance of the task: critical task score: 1.0, important task score: 0.7 and general task score: 0.4;
[0109] The comprehensive priority OP is as follows:
[0110] OP=W TS *TS+W RR *RR+W UP *UP+W TT *TT
[0111] Among them, OP is the comprehensive priority; W TS is the weight of time sensitivity; W RR is the weight of resource demand; W UP is the weight of user priority; W TT is the weight of the task type; TS is the time sensitivity score; RR is the resource requirement score; UP is the user priority score; TT is the score of the task type.
[0112] In step S4,
[0113] Dynamically adjust task allocation, recalculate task priority, increase waiting time and system load; factors affecting task priority include time sensitivity, resource requirements, user priority, task type, waiting time and system load. Due to the increase in waiting time and system load, the weight size is redesigned. The weight size is as follows: W TS =0.3, W RR =0.25, W UP =0.15, W TT =0.1, W WT = 0.1 and W SL =0.1;
[0114] Waiting time scoring: Scoring is based on the time the task waits in the queue; the waiting time T is in the range [0, T max ], waiting time score WT:
[0115]
[0116] Where, T is the waiting time; T max is the maximum waiting time; WT is the waiting time score;
[0117] System load score: Score based on the current system load; the current load L is in the range [0,L max ], the system load score SL:
[0118]
[0119] Where SL is the system load score; L is the current load; L max Maximum system load;
[0120] Calculate the overall priority OP again: assign tasks based on the calculated overall priority
[0121] OP=W TS *TS+W RR *RR+W UP *UP+W TT *TT+W WT *WT+W SL *SL
[0122] Where OP is the comprehensive priority; W TS is the time sensitivity weight; W RR is the weight of resource demand; W UP is the weight of user priority; W TT is the weight of the task type; W WT is the weight of waiting time; W SLis the weight of the system load; TS is the time sensitivity score; RR is the resource requirement score; UP is the user priority score; TT is the task type score; WT is the waiting time score; SL is the system load score.
[0123] In step S3,
[0124] The scoring method for user priority is as follows: when using the large language model, account login and real-name authentication are required. After logging into the account, the large model will automatically identify whether the user is a VIP user or a common user, and give a corresponding score when calculating the priority;
[0125] Resource requirement scoring includes computing resources and storage resources. The specific scoring method is as follows:
[0126] Scoring based on the computing resources required for the task:
[0127] High computing resource requirements: 8 CPU cores or more are required, with a score of 1.0; Medium computing resource requirements: 4-8 CPU cores are required, with a score of 0.7; Low computing resource requirements: less than 4 CPU cores are required, with a score of 0.4;
[0128] Scoring based on the storage resources required for the task:
[0129] High storage resource requirements: more than 100GB of disk space or more than 32GB of memory are required, with a score of 1.0; Medium storage resource requirements: 50-100GB of disk space or 16-32GB of memory are required, with a score of 0.7; Low storage resource requirements: less than 50GB of disk space or less than 16GB of memory are required, with a score of 0.4;
[0130] The maximum score is recorded as the resource demand score.
[0131] In step S3,
[0132] The scoring mechanism in time sensitivity and task type is trained using machine learning; specifically:
[0133] Segment and quantify the input content and extract keywords. Check the database and randomly select 10,000 immediate tasks, urgent tasks, general tasks, non-urgent tasks, key tasks, important tasks and general tasks input by users. Analyze the user input content. Take immediate tasks as an example, extract keywords from each input content and record them as follows:
[0134] Immediate Task 1: [token 11 ,token 12 ,…];
[0135] Instant Task 2: [token21 ,token 22 ,…];
[0136]
[0137] Instant task n: [token n1 ,token n2 ,…];
[0138] Among them, token 11 The first keyword in the immediate task 1; token 12 The second keyword in the immediate task 1; token 21 The first keyword in the instant task 2; token 22 The second keyword in the instant task 2; token n1 The first keyword in the immediate task n; token n2 It is the second keyword in the immediate task n;
[0139] After extracting the keywords, we union them to get the keywords representing the immediate task, which is recorded as [token1, token2, ..., token n ]; token1 is the first keyword of the immediate task; token2 is the second keyword of the immediate task; token n is the nth keyword of the immediate task; for the keywords [token1, token2, …, token n ] is quantized, and the digital vector is represented as: [n1,n2,…,n n ], where n1 is the digitized vector of token1; n2 is the digitized vector of token2; n n is token n The digitized vector of
[0140] According to this method, the keywords of urgent tasks, general tasks, non-urgent tasks, critical tasks, important tasks and general tasks are extracted respectively;
[0141] Extract keywords from user input and record them as: [token1, token2, ..., tokenm]; where token1 is the first keyword input by the user; token2 is the second keyword input by the user; tokenm is the mth keyword input by the user; digital vector representation: [n1, n2, ..., nm], where n1 is the digital vector of token1; n2 is the digital vector of token2; nm is the digital vector of tokenm;
[0142] Calculate the similarity S:
[0143]
[0144] Among them, S is the similarity; n1 is the digitized vector of token1; n2 is the digitized vector of token2; n n is token n ; n1 is the digitized vector of token1; n2 is the digitized vector of token2; nm is the digitized vector of tokenm;
[0145] According to the above formula, the similarities of immediate tasks, urgent tasks, general tasks, non-urgent tasks, critical tasks, important tasks and general tasks are calculated respectively. Among the immediate tasks, urgent tasks, general tasks and non-urgent tasks, the tasks with the greatest similarity are selected for scoring; among the critical tasks, important tasks and general tasks, the tasks with the greatest similarity are selected for scoring.
[0146] In step S5,
[0147] After calculating the task priority, the high-priority tasks are input into the large language model, which then performs task content analysis and result generation, specifically:
[0148] Task execution: Based on the parsed intent and information, the corresponding background services and functions are called to execute the tasks requested by the user, including querying the database, calling external APIs, and executing system commands;
[0149] Result processing: Process and format the results of task execution to generate user responses; including sorting, filtering, and summarizing query results;
[0150] Natural language generation: Generate natural language responses using a trained large language model; including content planning, sentence generation, and language polishing;
[0151] Multi-round dialogue management: In multi-round dialogues, the dialogue status and context information are maintained to ensure the logical consistency of continuous dialogues; including adjusting the response content according to the user's subsequent input, tracking the dialogue topic, etc.
[0152] The content planning is to determine the content and structure of the response; the sentence generation is to convert the structured content into natural language sentences; and the language polishing is to polish the generated sentences to make them meet the grammatical and style requirements.
[0153] In an embodiment of the present invention,
[0154] The received user request is in the format of {"task number", "user tag", "task content"}
[0155] {"001","Normal user","Please help me check the weather conditions in Beijing on Saturday."}
[0156] {“002”, “VIP user”, “Need to book a hotel in Shanghai tonight, budget is less than 500 yuan, give a list of clean, comfortable and conveniently located hotels.”}
[0157] {“003”, “VIP user”, “All the progress of research on attention mechanism in current domestic journals, summarized by time and achievements”}
[0158] Analyze received user requests:
[0159] Extract keywords: The format is {"task number", "keyword 1", "keyword 2", ...}
[0160] {"001","Saturday","Beijing","check","weather"}
[0161] The time sensitivity score, resource requirement score, user priority score, and task type score calculated by the model are: TS = 0.5, RR = 0.4, UP = 0.5, TT = 0.4;
[0162] Calculate the task priority of "001":
[0163] OP=W TS *TS+W RR *RR+W UP *UP+W TT *TT
[0164] OP=0.4*0.5+0.3*0.4+0.2*0.5+0.1*0.4=0.46
[0165] The task priorities of "002" and "003" are calculated in this way:
[0166] {“002”, “VIP user”, “Need to book a hotel in Shanghai tonight, budget is less than 500 yuan, give a list of clean, comfortable and conveniently located hotels.”}
[0167] Extract keywords:
[0168] {"002","tonight","hotel","book","less than 500 yuan","Shanghai","clean","comfortable","convenient transportation","recommended list"}
[0169] The time sensitivity score, resource requirement score, user priority score, and task type score calculated by the model are: TS = 1.0, RR = 1.0, UP = 1.0, TT = 0.7;
[0170] Calculate the task priority of "002":
[0171] OP=0.4*1.0+0.3*1.0+0.2*1.0+0.1*0.7=0.97
[0172] {“003”, “VIP user”, “All the progress of research on attention mechanism in current domestic journals, summarized by time and achievements”}
[0173] Extract keywords:
[0174] {"003","attention","domestic journals","progress","time","achievements","summary"}
[0175] The time sensitivity score, resource requirement score, user priority score, and task type score calculated by the model are: TS = 0.5, RR = 1.0, UP = 1.0, TT = 0.7;
[0176] Calculate the task priority of "003":
[0177] OP=0.4*0.5+0.3*1.0+0.2*1.0+0.1*0.7=0.77
[0178] Sort by priority: The format is {"serial number", "task number", "user tag", "task content"}
[0179] {"1","002","VIP user","Need to book a hotel in Shanghai tonight, budget is less than 500 yuan, give a list of clean, comfortable and conveniently located hotels."}
[0180] {"2","003","VIP user","All the progress of research on attention mechanism in current domestic journals, summarized by time and achievements"}
[0181] {"3","001","Normal user","Please help me check the weather conditions in Beijing on Saturday."}
[0182] Input the tasks into the large language model one by one to answer them:
[0183] {"1","002","VIP user","Need to book a hotel in Shanghai tonight, budget is less than 500 yuan, give a list of clean, comfortable and conveniently located hotels."}
[0184] Call the hotel request API, API request:
[0185] GET / hotel-booking? location = Shanghai & date = tomorrow night & budget = less than 500 yuan
[0186] API response and results: {"Shanghai Hotel A" "Price 480" "More than 75% of the comments of a group are 'comfortable and quiet'" "60% of the comments of a group in the same city are 'clean' and 'convenient transportation'"},
[0187] {"Shanghai Hotel B" "Price 500" "More than 90% of a group commented 'clean and comfortable'" "70% of a local commented 'quiet' and 'convenient transportation'"}, ...;
[0188] {"2","003","VIP user","All the progress of research on attention mechanism in current domestic journals, summarized by time and achievements"}
[0189] Call major domestic databases and search websites, and enter keywords for search:
[0190] Output results: {"Time 1" "a certain journal" "important discoveries in the field of machine vision" "author X" "summary of the main contents of the journal"};
[0191] {"Time 2", "Journal X", "Soft Attention", "Author X", "Summary of Main Content"};
[0192] {"Time 3" "XX Journal" "Strong Attention" "Author XX" "Summary of Main Content"};...;
[0193] {"3","001","Normal user","Please help me check the weather conditions in Beijing on Saturday."}
[0194] Call the weather forecast interface:
[0195] API request: GET / weather? location=Beijing&date=tomorrow
[0196] API response and result: {Tomorrow Beijing will be sunny, the temperature will be 25℃-30℃, the air quality will be good, there will be no wind, the UV index will be 4, and the hourly weather conditions will be as follows...;}
[0197] Multi-turn dialogue management:
[0198] After getting the answer, "001" continues to ask {"004", "ordinary user", "what about tomorrow"}
[0199] After the tasks are prioritized, the system stores the last answer record and then answers:
[0200] API response and results: {The day after tomorrow, Beijing will be sunny, with a temperature of 18℃-30℃, good air quality, no wind, UV index 4.2, and hourly weather conditions are as follows...;}.
[0201] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0202] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A large language model and communication control system, characterized in that: The system includes a user interface module, a task allocation module, a large language model module and a communication and data transmission module; The user interface module is used to provide an interface for users to interact with the large language model, so that users can input tasks and view answers; the task allocation module is used to sort multiple tasks input by multiple users according to priority and allocate tasks according to priority; The large language model module is used to analyze and answer the assigned tasks and generate answer results; the data transmission module is used to transmit task data, including data transmission between the user and the large language model and data transmission between the large language model and the database; The output end of the user interface module is connected to the input end of the task assignment module; the output end of the task assignment module is connected to the input end of the large language model module; The output end of the large language model module is connected to the input end of the communication and data transmission module; the output end of the communication and data transmission module is connected to the input end of the user interface module.
2. A communication control system based on a large language model according to claim 1, characterized in that: The task allocation module includes a task priority calculation unit and a dynamic adjustment unit; The task priority calculation unit is used to calculate the priorities of all tasks, and to allocate tasks according to the priorities, and the large language model is used to answer according to the allocation; the dynamic adjustment unit is used to perform secondary calculation on the task priorities and dynamically adjust the task allocation; The output end of the task priority calculation unit and the output end of the dynamic adjustment unit are connected to the input end of the large language model module.
3. The large language model and communication control system according to claim 1, characterized in that: The large language model module includes a data processing unit, a database retrieval unit, a calculation unit and a language processing unit; The data processing unit is used to pre-process the task input by the user; the database retrieval unit is used to retrieve the database to answer the question; the calculation unit is used to solve the part of the task that requires calculation; the language processing unit is used to summarize the content of the answer and transmit the answer result to the user; The output end of the data processing unit is connected to the input end of the database retrieval unit; the output end of the database retrieval unit is connected to the input end of the calculation unit; the output end of the calculation unit is connected to the input end of the language processing unit; the output end of the language processing unit is connected to the input end of the communication and data transmission module.
4. A method based on a large language model and communication control, characterized in that: The method comprises the following steps: S1, shared large language model and communication system deployment; S2, user signal reception and preprocessing; S3, assign tasks based on comprehensive priorities; S4, dynamically adjust the assigned tasks and integrate resource redistribution; S5, semantic analysis and result generation; S6. Determine the best transmission path for the information based on the generated results; the security module encrypts the information to be sent to ensure the security during the transmission process; S7. Send the processed information to the target recipient via the signal transmitter to complete the entire communication process.
5. The method based on a large language model and communication control according to claim 4, characterized in that: In steps S1-S2, Deploy large language models on the cloud platform; configure signal receivers and signal transmitters; When the system receives a text message, the preprocessor converts it into a standard format, including removing noise and redundant data.
6. The method based on a large language model and communication control according to claim 4, characterized in that: In step S3, Priority is an important basis for allocating tasks received by the system. A priority judgment mechanism is added to the large language model. The factors affecting the priority include time sensitivity, resource requirement, user priority, and task type. The weights of the priority calculation are W and TS =0.4, W RR =0.3, W UP =0.2 and W TT =0.1; Among them, tasks with different time requirements correspond to different levels of scores. Time sensitivity includes immediate tasks, urgent tasks, general tasks, and non-urgent tasks, and their scores are 1.0, 0.8, 0.5, and 0.2 respectively; Resource requirements are scored based on the computational and storage resources required for the task: high resource requirement score: 1.0, medium resource requirement score: 0.7, and low resource requirement score: 0.4; User priority is scored based on the user's tags: VIP user score: 1.0 and ordinary user score: 0.5; Task type is scored based on the importance of the task: critical task score: 1.0, important task score: 0.7 and general task score: 0.4; The comprehensive priority OP is as follows: OP=W TS *TS+W RR *RR+W UP *UP+W TT *TT Among them, OP is the comprehensive priority; W TS is the time sensitivity weight; W RR is the weight of resource demand; W UP is the weight of user priority; W TT is the weight of the task type; TS is the time sensitivity score; RR is the resource requirement score; UP is the user priority score; TT is the score of the task type.
7. The method based on a large language model and communication control according to claim 4, characterized in that: In step S4, Dynamically adjust task allocation, recalculate task priority, increase waiting time and system load; factors affecting task priority include time sensitivity, resource requirements, user priority, task type, waiting time and system load. Due to the increase in waiting time and system load, the weights are redesigned. The weights are as follows: W TS =0.3, W RR =0.25, W UP =0.15, W TT =0.1, W WT = 0.1 and W SL =0.1; Waiting time scoring: Scoring is based on the time the task waits in the queue; the waiting time T is in the range [0, T max ], waiting time score WT: Where, T is the waiting time; T max is the maximum waiting time; WT is the waiting time score; System load score: Score based on the current system load; the current load L is in the range [0,L max ], the system load score SL: Where SL is the system load score; L is the current load; L max Maximum system load; Calculate the overall priority OP again: assign tasks based on the calculated overall priority OP=W TS *TS+W RR *RR+W UP *UP+W TT *TT+W WT *WT+W SL *SL Where OP is the comprehensive priority; W TS is the weight of time sensitivity; W RR is the weight of resource demand; W UP is the weight of user priority; W TT is the weight of the task type; W WT is the weight of waiting time; W SL is the weight of the system load; TS is the time sensitivity score; RR is the resource requirement score; UP is the user priority score; TT is the task type score; WT is the waiting time score; SL is the system load score.
8. The method based on a large language model and communication control according to claim 6, characterized in that: In step S3, The scoring method for user priority is as follows: when using the large language model, account login and real-name authentication are required. After logging into the account, the large model will automatically identify whether the user is a VIP user or a common user, and give a corresponding score when calculating the priority; Resource requirement scoring includes computing resources and storage resources. The specific scoring method is as follows: Scoring based on the computing resources required for the task: High computing resource requirements: 8 CPU cores or more are required, with a score of 1.0; Medium computing resource requirements: 4-8 CPU cores are required, with a score of 0.7; Low computing resource requirements: less than 4 CPU cores are required, with a score of 0.4; Scoring based on the storage resources required for the task: High storage resource requirements: more than 100GB of disk space or more than 32GB of memory are required, with a score of 1.0; Medium storage resource requirements: 50-100GB of disk space or 16-32GB of memory are required, with a score of 0.7; Low storage resource requirements: less than 50GB of disk space or less than 16GB of memory are required, with a score of 0.4; The maximum score is recorded as the resource demand score.
9. The method based on a large language model and communication control according to claim 6, characterized in that: In step S3, The scoring mechanism in time sensitivity and task type is trained using machine learning; specifically: Segment and quantify the input content and extract keywords. Check the database and randomly select 10,000 immediate tasks, urgent tasks, general tasks, non-urgent tasks, key tasks, important tasks and general tasks input by users. Analyze the user input content. Take immediate tasks as an example, extract keywords from each input content and record them as follows: Immediate Task 1: [token 11 ,token 12 ,...]; Instant Task 2: [token 21 ,token 22 ,…]; Instant task n: [token n1 ,token n2 ,…]; Among them, token 11 The first keyword in the immediate task 1; token 12 The second keyword in the immediate task 1; token 21 The first keyword in the instant task 2; token 22 The second keyword in the instant task 2; token n1 The first keyword in the immediate task n; token n2 It is the second keyword in the immediate task n; After extracting the keywords, we union them to get the keywords representing the immediate tasks, which are recorded as [token1, token2,…, token n ]; token1 is the first keyword of the immediate task; token2 is the second keyword of the immediate task; token n is the nth keyword of the immediate task; for the keywords [token1, token2, ..., token n ] is quantized, and the digital vector is represented as: [n1,n2,...,n n ], where n1 is the digitized vector of token1; n2 is the digitized vector of token2; n n is token n The digitized vector of According to this method, the keywords of urgent tasks, general tasks, non-urgent tasks, critical tasks, important tasks and general tasks are extracted respectively; Extract keywords from user input and record them as: [token1, token2, ..., tokenm]; where token1 is the first keyword input by the user; token2 is the second keyword input by the user; tokenm is the mth keyword input by the user; digital vector representation: [n1, n2, ..., nm], where n1 is the digital vector of token1; n2 is the digital vector of token2; nm is the digital vector of tokenm; Calculate the similarity S: Among them, S is the similarity; n1 is the digitized vector of token1; n2 is the digitized vector of token2; n n is token n ; n1 is the digitized vector of token1; n2 is the digitized vector of token2; nm is the digitized vector of tokenm; According to the above formula, the similarities of immediate tasks, urgent tasks, general tasks, non-urgent tasks, critical tasks, important tasks and general tasks are calculated respectively. Among the immediate tasks, urgent tasks, general tasks and non-urgent tasks, the tasks with the greatest similarity are selected for scoring; among the critical tasks, important tasks and general tasks, the tasks with the greatest similarity are selected for scoring.
10. A method based on a large language model and communication control according to claim 9, characterized in that: In step S5, After calculating the task priority, the high-priority tasks are input into the large language model, which then performs task content analysis and result generation, specifically: Task execution: Based on the parsed intent and information, the corresponding background services and functions are called to execute the tasks requested by the user, including querying the database, calling external APIs, and executing system commands; Result processing: Process and format the results of task execution and generate user responses; Including sorting, filtering, and summarizing query results; Natural language generation: Generate natural language responses using a trained large language model; Including content planning, sentence generation and language polishing; Multi-round dialogue management: In multi-round dialogues, the dialogue status and context information are maintained to ensure the logical consistency of continuous dialogues; including adjusting the response content according to the user's subsequent input, tracking the dialogue topic, etc. The content planning is to determine the content and structure of the response; the sentence generation is to convert the structured content into natural language sentences; and the language polishing is to polish the generated sentences to make them meet the grammatical and style requirements.
