Information processing system and method fusing short message and large model
By combining the short message platform with the big model server, using the short message service for data transmission and the big model for information processing, the information loss problem of the big model when the mobile data network is poor is solved, and high-quality and time-efficient information processing is achieved under the conditions of network restriction.
Patent Information
- Application Number
- CN202411805035.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-04-25
AI Technical Summary
When the mobile data network is of poor quality or unavailable, existing large models can easily lead to the loss of input or generated content, affecting the reliability and efficiency of information processing.
An information processing system integrating short messages and large models was designed. Through the combination of a short message platform and a large model server, short message services are used to transmit data, improve information transmission capabilities under network restricted conditions, and information processing is carried out through large models to improve information processing capabilities.
It realizes high-quality and time-efficient information processing under the conditions of restricted mobile data network, improves the system's information transmission and processing capabilities, and ensures that users' information processing needs are met under various network conditions.
Smart Images

Figure CN119893452A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an information processing system and method integrating short messages and large models. Background Art
[0002] Artificial intelligence big models enable computers to understand and respond to natural language input, thereby achieving more intelligent and natural information processing. The big models of related technologies mainly use applications as business carriers, which need to be downloaded, installed, and registered on the terminal and can only be used normally under the condition that the mobile data network is unobstructed. In the case of poor quality of mobile data network or unavailable mobile data network, the input content or generated content of the big model may be lost. Summary of the invention
[0003] In order to solve the above problems, the embodiment of the present invention discloses an information processing system and method integrating short messages and large models.
[0004] In a first aspect, an embodiment of the present invention provides an information processing system integrating short messages and large models, including: a short message platform and a large model server;
[0005] The short message platform is used to obtain an information processing request, the information processing request carries information content and a port number corresponding to the large model server; sends the information content to the large model server according to the port number corresponding to the large model server, so that the large model server generates answer content according to the information content, and returns an answer response according to the answer content; receives the answer response returned by the large model server; outputs an information processing reply according to the answer response;
[0006] The large model server is used to receive the information content sent by the short message platform; generate answer content according to the information content, and return the answer response to the short message platform according to the answer content, so that the short message platform outputs the information processing reply according to the answer response.
[0007] Optionally, the answer response includes: the answer content, a first-type status response code and a second-type status response code; the information processing reply includes the answer content;
[0008] The large model server is used to receive the information content sent by the short message platform; call the security fence to detect the information content; if the information content detection passes, generate answer content according to the information content; call the security fence to detect the answer content; if the answer content detection passes, return the answer content and the first type of status response code to the short message platform, so that the short message platform outputs the answer content according to the first type of status response code; if the answer content detection is abnormal, return the second type of status response code to the short message platform, so that the short message platform outputs the information processing reply according to the second type of status response code.
[0009] Optionally, the second type of status response code includes: a first status response code and a second status response code; the information processing reply also includes: a detection anomaly reply and a service timeout reply;
[0010] The short message platform is used to generate the detection exception reply according to the first status response code and output the detection exception reply; generate the service timeout reply according to the second status response code and output the service timeout reply.
[0011] Optionally, the short message platform includes a short message gateway and a short message server;
[0012] The SMS gateway is used to obtain the information processing request and output an information processing response; send the information content to the large model server according to the port number corresponding to the large model server, so that the large model server generates the answer content according to the information content, and sends the answer response to the SMS server according to the answer content;
[0013] The SMS server is used to receive the reply response sent by the large model server; generate an information processing reply based on the reply response, and output the information processing reply.
[0014] In a second aspect, an embodiment of the present invention provides an information processing method integrating short messages and large models, which is applied to a short message platform, and the method includes:
[0015] Obtaining an information processing request, wherein the information processing request carries information content and a port number corresponding to the large model server;
[0016] Sending the information content to the large model server according to the port number corresponding to the large model server, so that the large model server generates answer content according to the information content and returns an answer response according to the answer content;
[0017] receiving the answer response returned by the large model server;
[0018] Based on the answer response, an information processing reply is output.
[0019] Optionally, the answer response includes: the answer content, a first-type status response code, and a second-type status response code; the receiving the answer response returned by the large model server includes:
[0020] In the case where the answer content detection passes, receiving the answer content and the first-category status response code returned by the large model server;
[0021] When the answer content is detected to be abnormal, the second type of status response code returned by the large model server is received.
[0022] Optionally, the second type of status response code includes: a first status response code and a second status response code; the information processing reply includes: the reply content, the detection exception reply and the service timeout reply; the outputting the information processing reply according to the reply response includes:
[0023] generating the detection anomaly reply according to the first status response code, and outputting the detection anomaly reply;
[0024] The service timeout reply is generated according to the second status response code, and the service timeout reply is output.
[0025] Optionally, the short message platform includes a short message gateway and a short message server;
[0026] The request for obtaining information processing includes:
[0027] Obtaining the information processing request through the SMS gateway and outputting an information processing response;
[0028] The step of sending the information content to the large model server according to the port number corresponding to the large model server, so that the large model server generates answer content according to the information content, and returns an answer response according to the answer content, includes:
[0029] The information content is sent to the large model server through the SMS gateway according to the port number corresponding to the large model server, so that the large model server generates the answer content according to the information content, and sends the answer response to the SMS server according to the answer content;
[0030] The step of receiving the answer response returned by the large model server and outputting an information processing reply according to the answer response comprises:
[0031] The answer response sent by the large model server is received through the SMS server; an information processing reply is generated according to the answer response, and the information processing reply is output.
[0032] In a third aspect, an embodiment of the present invention provides an information processing method integrating short messages and a large model, which is applied to a large model server, and the method includes:
[0033] Receive information sent by the short message platform;
[0034] Generate answer content according to the information content;
[0035] An answer response is returned to the short message platform according to the answer content, so that the short message platform outputs an information processing reply according to the answer response.
[0036] Optionally, generating answer content according to the information content includes:
[0037] Calling a security fence to detect the information content;
[0038] If the information content detection passes, generating answer content according to the information content;
[0039] The answer response includes: the answer content, the first type status response code and the second type status response code; the information processing reply includes the answer content; the returning the answer response to the short message platform according to the answer content, so that the short message platform outputs the information processing reply according to the answer response, includes:
[0040] Calling the security fence to detect the answer content;
[0041] If the answer content detection passes, returning the answer content and the first-type status response code to the short message platform, so that the short message platform outputs the answer content according to the first-type status response code;
[0042] In the case where the answer content is detected to be abnormal, the second-type status response code is returned to the short message platform, so that the short message platform outputs the information processing reply according to the second-type status response code.
[0043] Optionally, the second type of status response code includes: a first status response code and a second status response code; the information processing reply also includes: a detection anomaly reply and a service timeout reply; the detection anomaly reply is generated based on the first status response code; the service timeout reply is generated based on the second status response code.
[0044] Optionally, the short message platform includes a short message gateway and a short message server; the information content sent by the short message platform includes:
[0045] Receiving information content sent by the SMS gateway;
[0046] The step of returning a reply response to the short message platform according to the reply content, so that the short message platform outputs an information processing reply according to the reply response, comprises:
[0047] The answer response is sent to the SMS server according to the answer content, so that the short message platform outputs an information processing reply according to the answer response.
[0048] The embodiments of the present invention include the following advantages:
[0049] The information processing system of the embodiment of the present invention includes: a short message platform and a large model server; the short message platform is used to obtain an information processing request, the information processing request carries the information content and the port number corresponding to the large model server; the information content is sent to the large model server according to the port number corresponding to the large model server, so that the large model server generates answer content according to the information content and returns an answer response, thereby data can be transmitted through the short message platform, improving the information transmission capability of the system under network restricted conditions; receiving the answer response returned by the large model server; outputting an information processing reply according to the answer response; the large model server is used to generate an answer content according to the information content, and return an answer response to the short message platform according to the answer content, so that the short message platform outputs an information processing reply according to the answer response, thereby information processing can be performed through the large model, improving the information processing capability of the system, and by combining the short message platform and the large model server, high-quality and time-efficient information processing can be achieved under mobile data network restricted conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0051] Figure 1 It is a structural block diagram of an information processing system integrating short messages and large models according to an embodiment of the present invention;
[0052] Figure 2 It is a structural block diagram of another information processing system integrating short messages and large models according to an embodiment of the present invention;
[0053] Figure 3It is a logic diagram of an information processing system integrating short messages and large models according to an embodiment of the present invention;
[0054] Figure 4 It is a logic diagram of another information processing system integrating short messages and large models according to an embodiment of the present invention;
[0055] Figure 5 It is a flowchart of the steps of an information processing method integrating short messages and large models according to an embodiment of the present invention;
[0056] Figure 6 It is a flowchart of the steps of another information processing method integrating short messages and large models according to an embodiment of the present invention.
[0057] Description of reference numerals:
[0058] Short message platform 11, large model server 12, SMS gateway 21, SMS server 22. DETAILED DESCRIPTION
[0059] The present invention proposes an information processing system and method that integrates short messages and large models, with the purpose of improving the information processing capability of the system. In order to achieve this goal, the system of the embodiment of the present invention is provided with a short message platform and a large model server, and data transmission is performed through the short message platform, thereby improving the information transmission capability of the system under network-restricted conditions; information processing is performed through the large model, thereby improving the information processing capability of the system; and the short message platform and the large model server are combined, so that high-quality and high-efficiency information processing can be achieved under mobile data network-restricted conditions.
[0060] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0061] Reference Figure 1 , shows a structural block diagram of an information processing system integrating short messages and large models according to an embodiment of the present invention, wherein the system may specifically include: a short message platform 11 and a large model server 12;
[0062] The short message platform 11 is used to obtain an information processing request, which carries information content and a port number corresponding to the large model server 12; send the information content to the large model server 12 according to the port number corresponding to the large model server 12, so that the large model server 12 generates answer content according to the information content, and returns an answer response according to the answer content; receive the answer response returned by the large model server 12; output an information processing reply according to the answer response;
[0063] In an embodiment of the present invention, the short message platform can provide a short message service SMS (Short Messaging Service), which is a service for sending and receiving short text messages between mobile phones and other devices. A user can input an information processing request on the short message platform, and the information processing request carries the information content and the port number corresponding to the large model server, wherein the information content may include information retrieval, text creation, image creation, etc. After obtaining the information processing request, the short message platform can send the information content to the large model server according to the port number corresponding to the large model server, so that the large model server generates answer content according to the information content, and returns an answer response according to the answer content. After receiving the answer response returned by the large model server, the short message platform can output an information processing reply according to the answer response. Since the short message service can reduce the dependence on the mobile data network, data transmission through the short message platform can improve the information transmission capability of the system under network-restricted conditions.
[0064] Among them, short message technology is based on mobile communication networks such as GSM (Global System for Mobile Communications) or CDMA (Code Division Multiple Access), and uses signaling channels to transmit messages. When sending a text message, the terminal converts the text message into binary data and sends it to the mobile base station where the terminal is located via radio signals. The base station transmits the data to the SMSC (Short Message Center), which stores, processes and forwards it.
[0065] The large model server 12 is used to receive the information content sent by the short message platform 11; generate answer content according to the information content, and return the answer response to the short message platform 11 according to the answer content, so that the short message platform 11 outputs the information processing reply according to the answer response.
[0066] In the embodiment of the present invention, a large model (Large Language Model) refers to a deep learning model with tens of millions or even hundreds of millions of parameters. Deep learning is a branch of the field of machine learning. It simulates the learning process of the human brain by building a multi-layer neural network to achieve automatic feature extraction and classification of complex data. The large model server can generate answer content based on the information content, and return the answer response to the short message platform based on the answer content. By processing information through a large model, the information processing capability of the system can be improved.
[0067] Exemplarily, when the information content is information retrieval, the answer content generated by the large model server can be the information of the user's question retrieved on the Internet; when the information content is text creation, the answer content generated by the large model server can be text generated according to user needs; when the information content is picture creation, the answer content generated by the large model server can be a picture generated according to user needs.
[0068] Among them, the information content sent by the short message platform can be input into the big model server in the form of big model prompt words. The big model prompt words are used to guide or stimulate the big model server to generate specific outputs. In natural language processing (NLP), prompt words are the bridge between users and big models, helping the big model understand the user's intentions and generate outputs that meet user needs.
[0069] The information processing system of the embodiment of the present invention includes: a short message platform and a large model server; the short message platform is used to obtain an information processing request, the information processing request carries the information content and the port number corresponding to the large model server; the information content is sent to the large model server according to the port number corresponding to the large model server, so that the large model server generates answer content according to the information content and returns an answer response, thereby data can be transmitted through the short message platform, improving the information transmission capability of the system under network restricted conditions; receiving the answer response returned by the large model server; outputting an information processing reply according to the answer response; the large model server is used to generate an answer content according to the information content, and return an answer response to the short message platform according to the answer content, so that the short message platform outputs an information processing reply according to the answer response, thereby information processing can be performed through the large model, improving the information processing capability of the system, and by combining the short message platform and the large model server, high-quality and time-efficient information processing can be achieved under mobile data network restricted conditions.
[0070] In one embodiment, the answer response includes: the answer content, the first type status response code and the second type status response code; the information processing reply includes the answer content;
[0071] The large model server 12 is used to receive the information content sent by the short message platform 11; call the security fence to detect the information content; if the information content detection passes, generate answer content according to the information content; call the security fence to detect the answer content; if the answer content detection passes, return the answer content and the first type of status response code to the short message platform 11, so that the short message platform 11 outputs the answer content according to the first type of status response code; if the answer content detection is abnormal, return the second type of status response code to the short message platform 11, so that the short message platform 11 outputs the information processing reply according to the second type of status response code.
[0072] In an embodiment of the present invention, the large model server may have a safety fence capability. The safety fence is a technology that performs compliance detection on the content generated by the large model based on AI technologies such as content sample analysis, content feature comparison, and cross-modal content conversion. When the large model server receives the information content sent by the short message platform, it can call the safety fence to perform compliance detection on the information content to improve the standardization of the information content. If the information content detection passes, the large model server can generate answer content based on the information content, and call the safety fence a second time to perform compliance detection on the answer content to improve the standardization of the answer content.
[0073] If the answer content passes the detection, the large model server can return the answer content and the first-class status response code indicating that the answer content passes the detection to the short message platform, so that the short message platform can directly output the answer content to the user according to the first-class status response code.
[0074] In the case of an abnormality in the answer content detection, the large model server can return a second-class status response code indicating an abnormality in the answer content detection to the short message platform, so that the short message platform outputs an information processing reply for the second-class status response code according to the second-class status response code.
[0075] In one embodiment, the second type of status response code includes: a first status response code and a second status response code; the information processing reply also includes: a detection anomaly reply and a service timeout reply;
[0076] The short message platform 11 is used to generate the detection exception reply according to the first status response code and output the detection exception reply; generate the service timeout reply according to the second status response code and output the service timeout reply.
[0077] In the embodiment of the present invention, the second type of status response code includes: a first status response code for detection anomaly and a second status response code for service timeout. The short message platform can generate and output a detection anomaly reply according to the first status response code, and generate and output a service timeout reply according to the second status response code.
[0078] For example, assuming that the first-category status response code is Code=200, the second-category status response code is Code=100, the first-category status response code is Code=101, and the second-category status response code is Code=102, the information processing reply output by the short message platform is as follows:
[0079] When Code=200, the detection is passed, and the short message platform outputs the answer content according to the first type of status response code.
[0080] When Code=100, an exception is detected and the short message platform outputs an information processing reply for the second type of status response code.
[0081] When Code=101, the detection is abnormal because the information content entered by the user or the answer content generated by the large model server is not compliant with the detection. The short message platform can generate a specific error message according to the first status response code as a detection abnormality reply, inviting the user to try again.
[0082] When Code=102, the detection is abnormal and the reason is service timeout. The short message platform can generate a specific error message as a service timeout reply according to the second status response code.
[0083] Reference Figure 2 , shows a structural block diagram of another information processing system integrating short messages and large models provided by an embodiment of the present invention. The short message platform 11 includes a short message gateway 21 and a short message server 22;
[0084] The SMS gateway 21 is used to obtain the information processing request and output an information processing response; send the information content to the large model server 12 according to the port number corresponding to the large model server 12, so that the large model server 12 generates the answer content according to the information content, and sends the answer response to the SMS server 22 according to the answer content;
[0085] The SMS server 22 is used to receive the reply response sent by the large model server 12; generate an information processing reply according to the reply response, and output the information processing reply.
[0086] In an embodiment of the present invention, the short message platform may include a short message gateway and a short message server. The short message gateway may obtain an information processing request and output an information processing response, and the information processing response is used to inform the user that the user's information processing request has been received and the user is asked to wait patiently. The short message gateway may send the information content to the large model server according to the port number corresponding to the large model server, so that the large model server generates a reply content according to the information content, and sends a reply response to the short message server according to the reply content.
[0087] The SMS server can receive the reply response sent by the large model server; generate an information processing reply according to the reply response, and output the information processing reply. For example, when the reply response is the reply content and the first type of status response code, the reply content is output; when the reply response is the first status response code, the detection abnormality reply is output; when the reply response is the second status response code, the service timeout reply is output.
[0088] The information processing system of the embodiment of the present invention includes: a short message platform and a large model server; the short message platform is used to obtain an information processing request, the information processing request carries the information content and the port number corresponding to the large model server; the information content is sent to the large model server according to the port number corresponding to the large model server, so that the large model server generates answer content according to the information content and returns an answer response, thereby data can be transmitted through the short message platform, improving the information transmission capability of the system under network restricted conditions; receiving the answer response returned by the large model server; outputting an information processing reply according to the answer response; the large model server is used to generate an answer content according to the information content, and return an answer response to the short message platform according to the answer content, so that the short message platform outputs an information processing reply according to the answer response, thereby information processing can be performed through the large model, improving the information processing capability of the system, and by combining the short message platform and the large model server, high-quality and time-efficient information processing can be achieved under mobile data network restricted conditions.
[0089] Reference Figure 3 , showing a logic diagram of an information processing system integrating short messages and large models provided by an embodiment of the present invention. In order to enable those skilled in the art to better understand the embodiment of the present invention, the following Figure 3 The embodiments of the present invention are described as follows:
[0090] (1) The user terminal sends a message processing request to the SMS gateway;
[0091] Exemplarily, the user opens the mobile terminal and enters the SMS chat window, enters the port number corresponding to the large model system server in the recipient, enters the information processing request in the content box, such as the content to be retrieved "What is a large model", and clicks send to transmit the message to the operator's SMS gateway through the signaling channel in the form of a text message.
[0092] (2) After receiving the message processing request, the SMS gateway returns the message processing response to the user terminal;
[0093] (3) The SMS gateway sends the information content carried in the information processing request to the large model server according to the port number corresponding to the large model server;
[0094] The SMS gateway performs two actions at the same time. The first action is to return the information processing response to the user terminal, informing the user that the user's search request has been received and asking the user to wait patiently. The second action is that since the SMS gateway itself does not have the ability to generate a large model, it is necessary to send an API interface (Application Programming Interface) call request to the large model server and send the user's information content as the content field (large model prompt word) in the API interface to the large model server.
[0095] (4) The large model server calls the security fence to detect the information content;
[0096] (5) If the information content detection passes, generate the answer content according to the information content;
[0097] After the big model server receives the API interface request from the SMS gateway, it will identify and extract the content field ("What is the big model") as the big model prompt word, and call the security fence capability to perform compliance detection on the big model prompt word. If the big model prompt word is compliant, the big model technology will be used to generate the corresponding answer content.
[0098] (6) Call the security fence to detect the answer content;
[0099] (7) If the answer content detection passes, the answer content and the first-class status response code are returned to the SMS server;
[0100] (8) If the response content is detected abnormally, a second status response code is returned to the SMS server;
[0101] (9) The SMS server generates an information processing reply based on the reply response and sends the information processing reply to the user terminal.
[0102] The large model server calls the security fence capability a second time to perform a compliance check on the answer content generated by the large model. If the answer content generated by the large model is compliant, the first-class status response code 200 and the response result are returned to the SMS server, and the msg field in the response result is the answer content; if the answer content generated by the large model is not compliant, the first-class status response code 101 in the second-class status response code is returned to the SMS server, and the SMS server generates a specific fault report "I don't have relevant information about this question, let's try something else"; if the large model prompt word is not compliant, the first-class status response code 101 in the second-class status response code is returned to the SMS server, and the SMS server generates a specific fault report "As an artificial intelligence model, I am still learning about your problem."
[0103] When the large model server returns the first type of status response code and answer content, the SMS server displays the answer content as a downlink SMS to the user through the SMS chat window. When the large model server returns the second type of status response code, the SMS server generates a specific error message and sends it to the user. The embodiment of the present invention innovatively combines the short message channel with the large model technology to realize the large model dialogue through the SMS channel and ensure the user experience in various response states.
[0104] Reference Figure 4, shows a logic diagram of another information processing system integrating short messages and large models provided by an embodiment of the present invention. The information processing system provided by an embodiment of the present invention can be as follows Figure 3 You can use it directly as shown, or you can jump to use it when the mobile data network quality is poor or the mobile data network is unavailable. Figure 4 As shown, the implementation steps of jumping from a certain application of the user terminal to the information processing system of the present invention are specifically as follows:
[0105] (1) Information processing through the terminal's large model application when the mobile data network is available;
[0106] (2) When the mobile data network is unavailable, the SMS protocol is triggered by the large model application of the terminal to automatically jump to the information processing system of the present invention for information processing;
[0107] When the big model application detects that the mobile data network is unavailable, it can pop up a window to remind the user "The network status is not good, do you want to switch to the SMS channel to ask questions" (example business words, which can be adjusted in practice). After the user chooses to switch, it can trigger SMS: / / port number? body=What is the big model, and jump to the SMS chat window. At this time, the corresponding port number has been filled in the recipient of the SMS chat window by default, and the information content "What is the big model" has been filled in the content box by default. After clicking Send, the big model prompt word (i.e., the information content) is transmitted to the operator's SMS gateway through the signaling channel in the form of a text message.
[0108] Among them, SMS: / / is a URI (Uniform Resource Identifier) scheme, which is specifically used to trigger the action of sending a text message in an application or device that supports the text message sending function. When a link starting with SMS: / / is clicked, it usually opens a new text message editing interface pre-filled with the text message recipient number. In the embodiment of the present invention, SMS: / / +service bearer number is used to trigger the short message sending process.
[0109] (3) After receiving the message processing request, the SMS gateway returns the message processing response to the user terminal;
[0110] (4) The SMS gateway sends the information content carried in the information processing request to the large model server according to the port number corresponding to the large model server;
[0111] (5) The large model server calls the security fence to detect the information content;
[0112] (6) If the information content detection passes, generate the answer content according to the information content;
[0113] (7) Call the security fence to detect the answer content;
[0114] (8) If the answer content detection passes, the answer content and the first-class status response code are returned to the SMS server;
[0115] (9) If the response content is detected abnormally, a second status response code is returned to the SMS server;
[0116] (10) The SMS server generates an information processing reply based on the reply response and sends the information processing reply to the user terminal.
[0117] When the mobile data network is unavailable, if the terminal cannot use tools such as picture creation applications, but picture creation is required, picture creation can be performed through the information processing system of the present invention to meet the user's current needs.
[0118] Exemplarily, the user opens the terminal to enter the SMS chat window, enters the port number corresponding to the large model server in the recipient, enters his own creation requirements (such as "a picture of a boy on the beach by the sea") in the content box, and clicks to send. After the message is transmitted to the operator's SMS gateway through the signaling channel in the form of SMS. The SMS gateway sends a call request for the Vincent API interface to the large model server, and sends the user's SMS content as the content field (vincent prompt word) in the Vincent API interface to the large model server. After receiving the Vincent API interface request from the SMS gateway, the large model server will identify and extract the content field ("a picture of a boy on the beach by the sea") as the Vincent creation prompt word, and call the security fence capability to perform compliance detection on the prompt word. If the prompt word is compliant, the large model technology is used to generate the corresponding picture. At this time, the security fence capability will be called twice to perform compliance detection on the large model generated picture. If the large model generates the picture in compliance, the first-class status response code 200 and the answer content are returned to the SMS server. The msg field in the answer content is the corresponding picture; if the large model generates the picture in non-compliant, the second-class status response code 100 is returned to the SMS server. After receiving the reply from the big model server, the SMS server makes a judgment based on different status codes. When the status code is 200, the msg field in the reply content (the creative picture of "a picture of a boy on the beach") is sent to the user as a downlink SMS; when the status code is 10X, the corresponding specific message is generated and sent to the user as a downlink SMS. After the user receives the downlink SMS, the creation is completed.
[0119] The embodiment of the present invention innovatively combines the short message channel with the large model technology to realize the large model dialogue through the short message channel and ensure the user experience in various response states. The prompt words and the large model generated content are transmitted through the signaling channel to ensure that they are not affected by the quality of the mobile data network, solve the information retrieval, text creation, picture creation and other needs of users under the condition of limited mobile data network, and ensure high quality and timeliness.
[0120] Reference Figure 5 , shows a flowchart of the steps of an information processing method integrating short messages and large models according to an embodiment of the present invention, which is applied to a short message platform. The method may specifically include the following steps:
[0121] Step 301, obtaining an information processing request, wherein the information processing request carries information content and a port number corresponding to a large model server;
[0122] Step 302, sending the information content to the large model server according to the port number corresponding to the large model server, so that the large model server generates answer content according to the information content and returns an answer response according to the answer content;
[0123] Step 303, receiving the answer response returned by the large model server;
[0124] In one embodiment, the step of receiving the answer response returned by the large model server may further include the following sub-steps:
[0125] Sub-step S11, when the answer content detection passes, receiving the answer content and the first-category status response code returned by the large model server;
[0126] Sub-step S12, when the answer content is detected to be abnormal, receiving the second-type status response code returned by the large model server.
[0127] Step 304: output an information processing reply based on the answer response.
[0128] In one embodiment, the second type of status response code includes: a first status response code and a second status response code; the information processing reply includes: the reply content, the detection exception reply, and the service timeout reply; the step of outputting the information processing reply according to the reply response may also include the following sub-steps:
[0129] Sub-step S21, generating the detection abnormality reply according to the first status response code, and outputting the detection abnormality reply;
[0130] Sub-step S22, generating the service timeout reply according to the second status response code, and outputting the service timeout reply.
[0131] In one embodiment, the short message platform includes a short message gateway and a short message server;
[0132] The step of obtaining the information processing request includes: obtaining the information processing request through the SMS gateway and outputting an information processing response;
[0133] The step of sending the information content to the large model server according to the port number corresponding to the large model server so that the large model server generates answer content according to the information content, and returns an answer response according to the answer content, comprises: sending the information content to the large model server according to the port number corresponding to the large model server through the SMS gateway so that the large model server generates the answer content according to the information content, and sends the answer response to the SMS server according to the answer content;
[0134] The steps of receiving the answer response returned by the large model server and outputting an information processing reply based on the answer response include: receiving the answer response sent by the large model server through the SMS server; generating an information processing reply based on the answer response, and outputting the information processing reply.
[0135] In an embodiment of the present invention, the short message platform can provide a short message service SMS (Short Messaging Service), which is a service for sending and receiving short text messages between mobile phones and other devices. A user can input an information processing request on the short message platform, and the information processing request carries the information content and the port number corresponding to the large model server, wherein the information content may include information retrieval, text creation, image creation, etc. After obtaining the information processing request, the short message platform can send the information content to the large model server according to the port number corresponding to the large model server, so that the large model server generates answer content according to the information content, and returns an answer response according to the answer content. After receiving the answer response returned by the large model server, the short message platform can output an information processing reply according to the answer response. Since the short message service can reduce the dependence on the mobile data network, data transmission through the short message platform can improve the information transmission capability of the system under network-restricted conditions.
[0136] The large model server can have the security fence capability. The security fence is a technology that performs compliance detection on the content generated by the large model based on AI technologies such as content sample analysis, content feature comparison, and cross-modal content conversion. When the large model server receives the information content sent by the short message platform, it can call the security fence to perform compliance detection on the information content to improve the standardization of the information content. If the information content detection passes, the large model server can generate answer content based on the information content, and call the security fence a second time to perform compliance detection on the answer content to improve the standardization of the answer content.
[0137] The short message platform may include a short message gateway and a short message server. The short message gateway may obtain an information processing request and output an information processing response, which is used to inform the user that the user's information processing request has been received and the user is asked to wait patiently. The short message gateway may send the information content to the large model server according to the port number corresponding to the large model server, so that the large model server generates a reply content according to the information content, and sends a reply response to the short message server according to the reply content. The short message server may receive the reply response sent by the large model server; generate an information processing reply according to the reply response, and output the information processing reply.
[0138] The short message platform of the embodiment of the present invention can obtain an information processing request, which carries information content and a port number corresponding to a large model server; send the information content to the large model server according to the port number corresponding to the large model server, so that the large model server generates answer content according to the information content and returns an answer response, thereby enabling data transmission through the short message platform, thereby improving the information transmission capability of the system under network restricted conditions; receive the answer response returned by the large model server; output an information processing reply based on the answer response; by combining the short message platform and the large model server, high-quality and timely information processing can be achieved under mobile data network restricted conditions.
[0139] Reference Figure 6 , shows a flowchart of another information processing method integrating short messages and large models according to an embodiment of the present invention, which is applied to a large model server. The method may specifically include the following steps:
[0140] Step 401, receiving information content sent by the short message platform;
[0141] Step 402, generating answer content according to the information content;
[0142] In one embodiment, the step of generating answer content according to the information content may further include the following sub-steps:
[0143] Sub-step S31, calling a security fence to detect the information content;
[0144] Sub-step S32, when the information content detection passes, generating answer content according to the information content.
[0145] Step 403, returning an answer response to the short message platform according to the answer content, so that the short message platform outputs an information processing reply according to the answer response.
[0146] In one embodiment, the answer response includes: the answer content, the first type status response code and the second type status response code; the information processing reply includes the answer content; the step of returning the answer response to the short message platform according to the answer content so that the short message platform outputs the information processing reply according to the answer response may also include the following sub-steps:
[0147] Sub-step S41, calling the safety fence to detect the answer content;
[0148] Sub-step S42, when the answer content detection passes, returning the answer content and the first-type status response code to the short message platform, so that the short message platform outputs the answer content according to the first-type status response code;
[0149] Sub-step S43, when the answer content detects an abnormality, returns the second-category status response code to the short message platform, so that the short message platform outputs the information processing reply according to the second-category status response code; the second-category status response code includes: a first status response code and a second status response code; the information processing reply also includes: a detection abnormality reply and a service timeout reply; the detection abnormality reply is generated according to the first status response code; the service timeout reply is generated according to the second status response code.
[0150] In one embodiment, the short message platform includes a short message gateway and a short message server;
[0151] The receiving of information content sent by the short message platform includes: receiving information content sent by the short message gateway;
[0152] The method of returning an answer response to the short message platform according to the answer content, so that the short message platform outputs an information processing reply according to the answer response, includes: sending the answer response to the SMS server according to the answer content, so that the short message platform outputs an information processing reply according to the answer response.
[0153] In the embodiment of the present invention, a large model (Large Language Model) refers to a deep learning model with tens of millions or even hundreds of millions of parameters. Deep learning is a branch of the field of machine learning. It simulates the learning process of the human brain by building a multi-layer neural network to achieve automatic feature extraction and classification of complex data. The large model server can generate answer content based on the information content, and return the answer response to the short message platform based on the answer content. By processing information through a large model, the information processing capability of the system can be improved.
[0154] Exemplarily, when the information content is information retrieval, the answer content generated by the large model server can be the information of the user's question retrieved on the Internet; when the information content is text creation, the answer content generated by the large model server can be text generated according to user needs; when the information content is picture creation, the answer content generated by the large model server can be a picture generated according to user needs.
[0155] The large model server can have the security fence capability. The security fence is a technology that performs compliance detection on the content generated by the large model based on AI technologies such as content sample analysis, content feature comparison, and cross-modal content conversion. When the large model server receives the information content sent by the short message platform, it can call the security fence to perform compliance detection on the information content to improve the standardization of the information content. If the information content detection passes, the large model server can generate answer content based on the information content, and call the security fence a second time to perform compliance detection on the answer content to improve the standardization of the answer content.
[0156] If the answer content passes the detection, the large model server can return the answer content and the first-class status response code indicating that the answer content passes the detection to the short message platform, so that the short message platform can directly output the answer content to the user according to the first-class status response code.
[0157] In the case of an abnormality in the answer content detection, the large model server can return a second-class status response code indicating an abnormality in the answer content detection to the short message platform, so that the short message platform outputs an information processing reply for the second-class status response code according to the second-class status response code.
[0158] The big model server of the embodiment of the present invention can generate answer content based on the information content, and return an answer response to the short message platform based on the answer content, so that the short message platform outputs an information processing reply based on the answer response, so that information processing can be performed through the big model, thereby improving the information processing capability of the system. By combining the short message platform and the big model server, high-quality and timely information processing can be achieved under restricted conditions of mobile data networks.
[0159] For the method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0160] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0161] Those skilled in the art will appreciate that the embodiments of the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more machine-readable media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0162] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0163] Finally, in this document, relational terms such as first and second, etc., are used only 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", "comprises", or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also includes elements that are inherent to such process, method, article, or terminal device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes the element.
[0164] The above is a detailed introduction to the information processing system and method that integrates short messages and large models provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. An information processing system integrating short messages and large models, characterized in that: include: Short message platform and large model server; The short message platform is used to obtain an information processing request, the information processing request carries information content and a port number corresponding to the large model server; sends the information content to the large model server according to the port number corresponding to the large model server, so that the large model server generates answer content according to the information content, and returns an answer response according to the answer content; receives the answer response returned by the large model server; outputs an information processing reply according to the answer response; The large model server is used to receive the information content sent by the short message platform; Generate answer content according to the information content, and return the answer response to the short message platform according to the answer content, so that the short message platform outputs the information processing reply according to the answer response.
2. The system according to claim 1, characterized in that The answer response includes: the answer content, the first-type status response code and the second-type status response code; the information processing reply includes the answer content; The large model server is used to receive the information content sent by the short message platform; call the security fence to detect the information content; if the information content detection passes, generate answer content according to the information content; call the security fence to detect the answer content; if the answer content detection passes, return the answer content and the first type of status response code to the short message platform, so that the short message platform outputs the answer content according to the first type of status response code; if the answer content detection is abnormal, return the second type of status response code to the short message platform, so that the short message platform outputs the information processing reply according to the second type of status response code.
3. The system according to claim 2, characterized in that The second type of status response code includes: a first status response code and a second status response code; the information processing reply also includes: a detection anomaly reply and a service timeout reply; The short message platform is used to generate the detection exception reply according to the first status response code and output the detection exception reply; generate the service timeout reply according to the second status response code and output the service timeout reply.
4. The system according to claim 1, characterized in that The short message platform includes a short message gateway and a short message server; The SMS gateway is used to obtain the information processing request and output an information processing response; Sending the information content to the large model server according to the port number corresponding to the large model server, so that the large model server generates the answer content according to the information content, and sends the answer response to the SMS server according to the answer content; The SMS server is used to receive the reply response sent by the large model server; generate an information processing reply based on the reply response, and output the information processing reply.
5. An information processing method integrating short messages and large models, characterized in that: Applied to the short message platform, the method includes: Obtaining an information processing request, wherein the information processing request carries information content and a port number corresponding to the large model server; Sending the information content to the large model server according to the port number corresponding to the large model server, so that the large model server generates answer content according to the information content and returns an answer response according to the answer content; receiving the answer response returned by the large model server; Based on the answer response, an information processing reply is output.
6. The method according to claim 5, characterized in that The answer response includes: the answer content, the first-type status response code and the second-type status response code; the receiving of the answer response returned by the large model server includes: In the case where the answer content detection passes, receiving the answer content and the first-category status response code returned by the large model server; When the answer content is detected to be abnormal, the second type of status response code returned by the large model server is received.
7. The method according to claim 6, characterized in that The second type of status response code includes: a first status response code and a second status response code; the information processing reply includes: the reply content, the detection abnormality reply and the service timeout reply; the output of the information processing reply according to the reply response includes: generating the detection abnormality reply according to the first status response code, and outputting the detection abnormality reply; The service timeout reply is generated according to the second status response code, and the service timeout reply is output.
8. The method according to claim 5, characterized in that The short message platform includes a short message gateway and a short message server; The request for obtaining information processing includes: Obtaining the information processing request through the SMS gateway and outputting an information processing response; The step of sending the information content to the large model server according to the port number corresponding to the large model server, so that the large model server generates answer content according to the information content, and returns an answer response according to the answer content, includes: The information content is sent to the large model server through the SMS gateway according to the port number corresponding to the large model server, so that the large model server generates the answer content according to the information content, and sends the answer response to the SMS server according to the answer content; The step of receiving the answer response returned by the large model server and outputting an information processing reply according to the answer response comprises: The answer response sent by the large model server is received through the SMS server; an information processing reply is generated according to the answer response, and the information processing reply is output.
9. An information processing method integrating short messages and large models, characterized in that: Applied to a large model server, the method comprises: Receive information sent by the short message platform; Generate answer content according to the information content; An answer response is returned to the short message platform according to the answer content, so that the short message platform outputs an information processing reply according to the answer response.
10. The method according to claim 9, characterized in that The step of generating answer content according to the information content includes: Calling a security fence to detect the information content; If the information content detection passes, generating answer content according to the information content; The answer response includes: the answer content, the first type status response code and the second type status response code; the information processing reply includes the answer content; the returning the answer response to the short message platform according to the answer content, so that the short message platform outputs the information processing reply according to the answer response, includes: Calling the security fence to detect the answer content; If the answer content detection passes, returning the answer content and the first-type status response code to the short message platform, so that the short message platform outputs the answer content according to the first-type status response code; In the case where the answer content is detected to be abnormal, the second-type status response code is returned to the short message platform, so that the short message platform outputs the information processing reply according to the second-type status response code.
11. The method according to claim 10, characterized in that The second category status response code includes: a first status response code and a second status response code; the information processing reply also includes: a detection anomaly reply and a service timeout reply; the detection anomaly reply is generated based on the first status response code; the service timeout reply is generated based on the second status response code.
12. The method according to claim 9, characterized in that The short message platform includes a short message gateway and a short message server; the information content sent by the short message receiving platform includes: Receiving information content sent by the SMS gateway; The step of returning a reply response to the short message platform according to the reply content, so that the short message platform outputs an information processing reply according to the reply response, comprises: The answer response is sent to the SMS server according to the answer content, so that the short message platform outputs an information processing reply according to the answer response.