Network error page display method and device, equipment, storage medium and product
By generating and modifying explanations for network error pages using a large language model, the problem of users being unable to understand network error codes was solved, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING HONGTENG INTELLIGENT TECH CO LTD
- Filing Date
- 2024-12-04
- Publication Date
- 2026-06-05
AI Technical Summary
Users often struggle to understand error codes when faced with web error pages, leading to a poor user experience.
Explanatory information for web error pages is generated using a large language model, and the content of the web error pages is modified based on the explanation information to present new web error pages that are easy to understand.
It improves users' ability to analyze and locate network problems, thus enhancing the user experience.
Smart Images

Figure CN122153192A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to methods, apparatus, devices, storage media, and products for displaying network error pages. Background Technology
[0002] Network errors refer to abnormal situations that occur during network communication between a browser and a server, hindering the normal transmission and interaction of data. Common types of network errors encountered when accessing web pages through a browser include connection errors, DNS resolution errors, and certificate errors. Each type of network error has a corresponding network error code. When users encounter these errors, the error page only displays the network error code, providing no other valuable information. If users are faced with frequent and incomprehensible error pages, they may abandon the service, negatively impacting their user experience. Summary of the Invention
[0003] The main purpose of this application is to provide a method, apparatus, device, storage medium and product for displaying network error pages, which aims to solve the existing technical problem that users cannot understand the error codes displayed on the error page when an error occurs while accessing a website, resulting in a poor user experience.
[0004] To achieve the above objectives, this application proposes a method for displaying network error pages, the method comprising:
[0005] When an error occurs while accessing a website, retrieve the corresponding network error page.
[0006] Explanation information corresponding to the network error page is generated based on a large language model;
[0007] The content of the network error page is modified according to the explanation information to obtain a new network error page, and the new network error page is displayed.
[0008] Optionally, after the step of obtaining the network error page corresponding to the access error when an error occurs while accessing the website, the method includes:
[0009] Search for the error page handling strategy corresponding to the network error page in the preset network error page configuration information;
[0010] If an error page handling strategy corresponding to the network error page is found, the network error page is input into the large language model to obtain the explanation information corresponding to the network error page output by the large language model.
[0011] Optionally, before the step of searching for the error page handling strategy corresponding to the network error page in the preset network error page configuration information, the method further includes:
[0012] Connect to a centralized management platform;
[0013] Obtain the preset network error page configuration information configured by the user on the centralized management platform.
[0014] Optionally, the large language model includes a local large language model and an online large language model, and the step of generating the explanation information corresponding to the network error page based on the large language model includes:
[0015] When the large language model is a local large language model, the network error page is input into the large language model to obtain the explanation information corresponding to the network error page output by the large language model;
[0016] When the large language model is an online large language model, the network error page is sent to the server corresponding to the online large language model, and the explanation information fed back by the online large language model in the server based on the network error page is obtained.
[0017] Optionally, after the step of obtaining the network error page corresponding to the access error when an error occurs while accessing the website, the method further includes:
[0018] The error page explanation information is retrieved based on the error page explanation information, which includes historical network error pages and the historical explanation information corresponding to the historical network error pages.
[0019] If no explanation information is found for the network error page, the explanation information for the network error page is generated based on the large language model.
[0020] Optionally, after the step of generating the explanation information corresponding to the network error page based on the large language model when no explanation information corresponding to the network error page is found, the method further includes:
[0021] Based on the explanation information and the network error page corresponding to the explanation information, determine the error page explanation information and store the error page explanation information;
[0022] Determine the validity period of the error page explanation information;
[0023] When the error page explanation information is determined to be invalid based on the validity period, the error page explanation information is deleted.
[0024] Optionally, the step of modifying the content of the network error page according to the explanation information to obtain a new network error page and displaying the new network error page includes:
[0025] Replace the network error information in the network error page with the explanation information to obtain a new network error page;
[0026] Display the new network error page.
[0027] Optionally, after the step of displaying the new network error page, the method further includes:
[0028] Obtain the user's operation command triggered based on the new network error page;
[0029] The corresponding configuration page will be displayed based on the operation instructions;
[0030] When it is detected that the user has completed parameter configuration based on the configuration page, the website corresponding to the network error page is accessed again.
[0031] Optionally, after the step of modifying the content of the network error page according to the explanation information to obtain a new network error page and displaying the new network error page, the method further includes:
[0032] Obtain the user's instructions for resolving the issue triggered by the new network error page;
[0033] Determine the solution corresponding to the instruction obtained in the solution steps;
[0034] Based on the solution, determine the solution steps and display the solution steps on the network error page.
[0035] Optionally, after the step of generating the explanation information corresponding to the network error page based on the large language model, the method further includes:
[0036] Determine a solution based on the explained information;
[0037] When the solution is a preset executable solution, the website corresponding to the network error page is accessed based on the solution.
[0038] Optionally, the step of generating the explanation information corresponding to the network error page based on the large language model includes:
[0039] The network error page is concatenated with a preset smart prompt word to obtain the concatenation result;
[0040] The concatenation result is input into the large language model to obtain the explanation information corresponding to the network error page output by the large language model.
[0041] Furthermore, to achieve the above objectives, this application also proposes a network error page display device, which includes:
[0042] The acquisition module is used to retrieve the network error page corresponding to the access error when an error occurs while accessing the website;
[0043] The generation module is used to generate explanation information corresponding to the network error page based on the large language model;
[0044] The content modification module is used to modify the content of the network error page according to the explanation information, obtain a new network error page, and display the new network error page.
[0045] Optionally, the acquisition module is further configured to search for the error page handling strategy corresponding to the network error page in the preset network error page configuration information;
[0046] If an error page handling strategy corresponding to the network error page is found, the network error page is input into the large language model to obtain the explanation information corresponding to the network error page output by the large language model.
[0047] Optionally, the acquisition module is also used to connect to a centralized management platform;
[0048] Obtain the preset network error page configuration information configured by the user on the centralized management platform.
[0049] Optionally, the large language model includes a local large language model and an online large language model. The generation module is further configured to input the network error page into the large language model when the large language model is a local large language model, and obtain the explanation information corresponding to the network error page output by the large language model.
[0050] When the large language model is an online large language model, the network error page is sent to the server corresponding to the online large language model, and the explanation information fed back by the online large language model in the server based on the network error page is obtained.
[0051] Optionally, the acquisition module is further configured to query the explanation information corresponding to the network error page based on the error page explanation information, wherein the error page explanation information includes historical network error pages and historical explanation information corresponding to the historical network error pages;
[0052] If no explanation information is found for the network error page, the explanation information for the network error page is generated based on the large language model.
[0053] Optionally, the acquisition module is further configured to determine error page explanation information based on the explanation information and the network error page corresponding to the explanation information, and store the error page explanation information;
[0054] Determine the validity period of the error page explanation information;
[0055] When the error page explanation information is determined to be invalid based on the validity period, the error page explanation information is deleted.
[0056] Optionally, the content modification module is further configured to replace the network error information in the network error page with the explanation information to obtain a new network error page;
[0057] Display the new network error page.
[0058] Optionally, the content modification module is further configured to obtain the user's operation instructions triggered based on the new network error page;
[0059] The corresponding configuration page will be displayed based on the operation instructions;
[0060] When it is detected that the user has completed parameter configuration based on the configuration page, the website corresponding to the network error page is accessed again.
[0061] Optionally, the content modification module is further configured to obtain the user's instructions for obtaining the solution steps triggered by the new network error page;
[0062] Determine the solution corresponding to the instruction obtained in the solution steps;
[0063] Based on the solution, determine the solution steps and display the solution steps on the network error page.
[0064] Optionally, the content modification module is further configured to determine a solution based on the explanation information;
[0065] When the solution is a preset executable solution, the website corresponding to the network error page is accessed based on the solution.
[0066] Optionally, the generation module is further configured to concatenate the network error page with a preset smart prompt word to obtain a concatenation result;
[0067] The concatenation result is input into the large language model to obtain the explanation information corresponding to the network error page output by the large language model.
[0068] In addition, to achieve the above objectives, this application also proposes a network error page display device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the network error page display method as described above.
[0069] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the network error page display method described above.
[0070] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the network error page display method described above.
[0071] This application, when an error occurs while accessing a website, retrieves the corresponding network error page; generates explanatory information for the network error page based on a large language model; modifies the content of the network error page according to the explanatory information to obtain a new network error page, and displays the new network error page. Because this application generates explanatory information for the network error page based on a large language model when an error occurs while accessing a website, modifies the network error page according to the explanatory information, obtains a new network error page, and displays the new network error page, compared to existing methods that directly display network error pages when website errors occur, this application's method can display easily understandable explanatory information for network error pages, helping users quickly analyze and locate network problems in their browsers, thus improving the user experience. Attached Figure Description
[0072] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0073] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0074] Figure 1 This is a flowchart illustrating an embodiment of the method for displaying network error pages in this application.
[0075] Figure 2 This is a flowchart illustrating Embodiment 2 of the method for displaying network error pages in this application.
[0076] Figure 3 A flowchart illustrating Embodiment 3 of the method for displaying network error pages in this application.
[0077] Figure 4 This is a schematic diagram of the module structure of the network error page display device according to an embodiment of this application;
[0078] Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the network error page display method in this application embodiment.
[0079] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0080] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0081] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0082] The main solution of this application embodiment is as follows: when an error occurs while accessing a website, obtain the network error page corresponding to the access error; generate explanation information corresponding to the network error page based on a large language model; modify the content of the network error page according to the explanation information to obtain a new network error page, and display the new network error page. Since this application generates explanation information corresponding to the network error page based on a large language model when an error occurs while accessing a website, modifies the network error page according to the explanation information, obtains a new network error page, and displays the new network error page, compared to the existing method of directly displaying the network error page when an error occurs while accessing a website, the above method of this application can display explanation information of the network error page that is easy for users to understand, helping users quickly analyze and locate network problems in the browser, and improving the user experience.
[0083] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or browser capable of performing the above functions. The following description uses a browser as an example to illustrate this embodiment and the subsequent embodiments.
[0084] Based on this, this application provides a method for displaying network error pages, referring to... Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the method for displaying network error pages in this application.
[0085] In this embodiment, the method for displaying network error pages includes the following steps:
[0086] Step S10: When an error occurs while accessing the website, obtain the network error page corresponding to the access error;
[0087] It should be noted that the errors encountered when accessing a website can refer to various errors that prevent successful website access when using a browser. These can include: Connection errors: Unable to connect to the server: This could be due to server failure, network interruption, or an incorrect target server address; Connection timeout: This is usually caused by high network latency or slow server response; DNS resolution errors: When a website address is entered into a browser, the browser needs to resolve the address into an IP address using the Domain Name System (DNS) to connect to the server. If the DNS server malfunctions or the website address is entered incorrectly, a DNS resolution error will occur; Certificate errors: When establishing an HTTPS connection, the server needs to provide a valid digital certificate to ensure secure communication. If the certificate is invalid, expired, or untrusted, the browser will display a certificate error; Network congestion: When data traffic on the network is too high, network congestion will occur. This can lead to packet loss, increased latency, and even connection interruption. Each of the above errors has a corresponding network error code, such as: connection timeout error code: NET_ERROR_CONNECTON_TIMED_OUT; hostname resolution failure error code: NET_ERROR_NAME_NOT_RESOLVED; SSL protocol error code: NET_ERROR_SSL_PROTOCOL_ERROR, etc. A network error page is an error page displayed in a browser when an error occurs while accessing a webpage. When an error occurs while accessing a website, the browser automatically redirects to the error page, i.e., the network error page. The network error page includes the error code of the current network error and some corresponding error text. For example, when a 404 error page occurs while accessing a website, the network error page can include the error code corresponding to the 404 error page and the corresponding text: "Requested page not found."
[0088] Step S20: Generate explanation information corresponding to the network error page based on the large language model;
[0089] It should be noted that the large language model can be an artificial intelligence model used to generate explanatory information corresponding to the network error page. The explanatory information may include the cause and solution for generating the network error page.
[0090] Furthermore, in order to improve the browser's response speed and avoid users waiting for a long time to access the website results, the large language model includes a local large language model and an online large language model. Step S20 may include: when the large language model is a local large language model, inputting the network error page into the large language model to obtain the explanation information corresponding to the network error page output by the large language model.
[0091] When the large language model is an online large language model, the network error page is sent to the server corresponding to the online large language model, and the explanation information fed back by the online large language model in the server based on the network error page is obtained.
[0092] It should be noted that, to improve browser response speed, the large language model can be deployed locally in the browser, i.e., a local large language model. When the browser has a local large language model, the network error page is input to the local large language model, and the explanation information corresponding to the network error page is output by the local large language model. When the browser does not have a local large language model, it is necessary to first access the AI large model server where the online large language model resides, i.e., the server corresponding to the online large language model, and then send the network error page to the server corresponding to the online large language model to obtain the explanation information corresponding to the network error page through the online large language model.
[0093] Furthermore, in order to improve the efficiency of obtaining the explanation information corresponding to the network error page, after step S10, the method further includes: querying the explanation information corresponding to the network error page based on the error page explanation information, wherein the error page explanation information includes historical network error pages and the historical explanation information corresponding to the historical network error pages;
[0094] If no explanation information is found for the network error page, the explanation information for the network error page is generated based on the large language model.
[0095] It should be noted that the error page explanation information may include historical explanation information generated by the large language model and the corresponding network error pages, i.e., historical network error pages. After receiving the step of the large language model generating the explanation information corresponding to the network error page, the browser further determines the error page explanation information based on the explanation information and the corresponding network error page, and stores the error page explanation information.
[0096] Determine the validity period of the error page explanation information;
[0097] When the error page explanation information is determined to be invalid based on the validity period, the error page explanation information is deleted.
[0098] It should be noted that determining the validity period of the error page explanation information can be done by assigning a custom validity period to each error page explanation information. Within the validity period, if the network error page corresponding to the access error matches the network error page in the error page explanation information, the corresponding historical explanation information is directly obtained from the error page explanation information and used as the explanation information for the network error page corresponding to the access error, without requiring the large language model to regenerate the explanation information corresponding to the network error page. If the storage duration of the error page explanation information exceeds its validity period, the error page explanation information is deemed invalid and deleted.
[0099] Furthermore, in order to generate more accurate explanatory information from the large language model, step S20 may include: concatenating the network error page with preset intelligent prompt words to obtain a concatenation result;
[0100] The concatenation result is input into the large language model to obtain the explanation information corresponding to the network error page output by the large language model.
[0101] It should be noted that the preset smart suggestion word can be a pre-set AI suggestion word, such as "Analyze the possible causes and corresponding solutions when the following error occurs on a website: 'Network Error Page'". The step of concatenating the network error page with the preset smart suggestion word to obtain the concatenated result can be achieved by adding the error code and error text corresponding to the network error page to the preset smart suggestion word.
[0102] Step S30: Modify the content of the network error page according to the explanation information to obtain a new network error page, and display the new network error page.
[0103] It should be noted that modifying the content of the network error page based on the explanation information can mean rendering the explanation information onto the network error page to obtain a new network error page, enabling users to understand the cause of the network error and the corresponding solution.
[0104] This embodiment retrieves the corresponding network error page when a website access error occurs; generates explanatory information for the network error page based on a large language model; modifies the content of the network error page according to the explanatory information to obtain a new network error page, and displays the new network error page. Because this embodiment generates explanatory information for the network error page based on a large language model when a website access error occurs, modifies the network error page according to the explanatory information, obtains a new network error page, and displays the new network error page, compared to existing methods that directly display network error pages when a website access error occurs, this embodiment can display explanatory information for network error pages that is easy for users to understand, helping users quickly analyze and locate network problems in their browsers, thus improving the user experience.
[0105] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 2 , Figure 2 This is a flowchart illustrating a second embodiment of the method for displaying network error pages in this application. After step S10, the method further includes the following steps:
[0106] Step S101: Locate the error page handling strategy corresponding to the network error page in the preset network error page configuration information;
[0107] It should be noted that the preset network error page configuration information can be the error page handling strategy corresponding to various network error types pre-configured by the user, which may include error codes and their corresponding error page handling strategies. The error page handling strategy includes sending the network error page to the large language model to generate the corresponding explanation information, and not sending the network error page to the large language model to generate the corresponding explanation information. The preset network error page configuration information may only include the error codes of network errors for which explanation information needs to be generated. The step of searching for the corresponding error page handling strategy in the preset network error page configuration information can involve determining the network error code corresponding to the network error page, and matching it against the preset network error page configuration information based on the network error code. If a match is successful, it indicates that the error page handling strategy for the network error page is to send the network error page to the large language model to generate the corresponding explanation information. If the network error code is not matched in the preset network error page configuration information, it indicates that the error page handling strategy for the network error page is not to send the network error page to the large language model to generate the corresponding explanation information, and the network error page is then directly displayed.
[0108] Step S102: If an error page handling strategy corresponding to the network error page is found, the network error page is input into the large language model to obtain the explanation information corresponding to the network error page output by the large language model.
[0109] In practice, if the browser finds an error page handling strategy corresponding to the network error page, it inputs the network error page into the large language model to obtain the explanation information corresponding to the network error page output by the large language model. If the browser does not find the network error code corresponding to the network error page in the preset network error page configuration information, it directly displays the network error page.
[0110] Furthermore, in order to improve the user experience, before step S101, the method further includes: connecting to the centralized management platform;
[0111] Obtain the preset network error page configuration information configured by the user on the centralized management platform.
[0112] It should be noted that the centralized management platform can be a platform for facilitating user configuration of preset network error page configuration information. Users can configure network errors requiring explanation information to be generated on the centralized management platform; specifically, they can configure the network error codes corresponding to the network errors requiring explanation information. Users can also configure the preset network error page configuration information locally in their browser. Then, the configured preset network error page configuration information is uploaded to the centralized management platform for shared use. When the browser starts, it will first connect to the centralized management platform to obtain the preset network error page configuration information from the platform. An expiration date can also be set for the obtained preset network error page configuration information; within the expiration period, the preset network error page configuration information will not be repeatedly obtained from the centralized management platform.
[0113] This embodiment searches for the error page handling strategy corresponding to the network error page in the preset network error page configuration information. If the error page handling strategy is found, the network error page is input into the large language model to obtain the explanation information corresponding to the network error page output by the large language model. This embodiment searches for the error page handling strategy corresponding to the network error page in the preset network error page configuration information. When the error page handling strategy is found, the explanation information corresponding to the network error page is determined according to the large language model. This allows for the identification of the cause and solution to network errors, improving the user experience.
[0114] Based on the above embodiments of this application, in the third embodiment of this application, the same or similar content as the above embodiments can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 3 , Figure 3This is a flowchart illustrating a third embodiment of the method for displaying network error pages in this application. Step S30 includes the following steps:
[0115] Step S301: Replace the network error information in the network error page with the explanation information to obtain a new network error page;
[0116] It should be noted that the network error information in the network error page can be the error message that is usually displayed when a network error occurs, such as connection timeout or page inaccessibility. Replacing the network error information in the network error page with the explanation information to obtain a new network error page can be achieved by replacing the network error information with the error cause and solution from the explanation information.
[0117] Step S302: Display the new network error page.
[0118] It should be noted that displaying the new network error page can be achieved by rendering the new network error page, which includes explanatory information, on a browser.
[0119] Furthermore, in order to improve the user experience and avoid users facing websites that cannot be accessed normally for a long time, after step S302, the method further includes: obtaining the user's operation instructions triggered based on the new network error page;
[0120] The corresponding configuration page will be displayed based on the operation instructions;
[0121] When it is detected that the user has completed parameter configuration based on the configuration page, the website corresponding to the network error page is accessed again.
[0122] It should be noted that the explanation information includes solutions for website inaccessibility, such as: checking network connectivity: ensure a stable network connection, try restarting the router or checking the network connectivity of other devices; refreshing the webpage: try refreshing the webpage to see if the problem is resolved; clearing the cache: clear the browser cache, as sometimes corrupted or outdated cache files can cause webpage errors; checking the URL: ensure the entered URL is correct, including spelling and protocol; disabling browser extensions: some browser extensions may interfere with the normal loading of the webpage, try disabling all extensions and restarting the browser; changing browsers: try accessing the webpage using different browsers to see if it displays correctly; modifying DNS, etc. When modifying the content of the network error page based on the explanation information, corresponding operation buttons can be deployed for each solution. For example, the solution for checking network connectivity can deploy a network configuration button; the solution for refreshing the webpage can deploy a retry button; the solution for clearing the browser cache can deploy a quick clear browser cache button. After the user clicks the button corresponding to the solution, the corresponding solution can be executed directly or the corresponding configuration page can be displayed to facilitate the user's direct configuration of parameters, such as configuring the modified DNS, configuring network connection information, etc. It also monitors user configuration operations based on the configuration page in real time, and when it detects that the user has completed parameter configuration, it re-accesses the website corresponding to the network error page based on the reconfigured parameters.
[0123] Furthermore, to prevent users from still not knowing the specific solution steps when faced with a solution in a new network error page, after step S30, the method further includes: obtaining a solution step acquisition instruction triggered by the user based on the new network error page;
[0124] Determine the solution corresponding to the instruction obtained in the solution steps;
[0125] Based on the solution, determine the solution steps and display the solution steps on the network error page.
[0126] It should be noted that in this embodiment, a "Get Solution Steps" button can be configured for each solution displayed on the new network error page. When a user does not know the solution steps corresponding to a solution, they can click the "Get Solution Steps" button, which triggers a "Get Solution Steps" instruction. The browser then determines the solution corresponding to the "Get Solution Steps" instruction, determines the detailed solution steps based on the solution, and displays the solution steps on the network error page.
[0127] Furthermore, in order to improve the intelligence of the browser and enhance the user experience, this embodiment also includes: determining a solution based on the explained information;
[0128] When the solution is a preset executable solution, the website corresponding to the network error page is accessed based on the solution.
[0129] It should be noted that the preset executable solution can be a solution that the browser can execute automatically, such as retrying, retrying after modifying DNS configuration, or clearing the browser cache. When the browser detects that the solution is a preset executable solution, it can automatically execute the solution and access the website corresponding to the network error page.
[0130] This embodiment replaces the network error information in the network error page with the explained information to obtain a new network error page; the new network error page is then displayed. This embodiment can be customized to provide different operation suggestions and guidance to users on the network error page. This helps improve users' ability to solve problems independently, reduces user churn due to errors, and improves user retention and loyalty.
[0131] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the network error page display method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0132] This application also provides a device for displaying network error pages; please refer to [reference needed]. Figure 4 The network error page display device includes:
[0133] Module 10 is used to retrieve the network error page corresponding to the access error when an error occurs while accessing the website;
[0134] Generation module 20 is used to generate explanation information corresponding to the network error page based on the large language model;
[0135] The content modification module 30 is used to modify the content of the network error page according to the explanation information, obtain a new network error page, and display the new network error page.
[0136] This embodiment retrieves the corresponding network error page when a website access error occurs; generates explanatory information for the network error page based on a large language model; modifies the content of the network error page according to the explanatory information to obtain a new network error page, and displays the new network error page. Because this embodiment generates explanatory information for the network error page based on a large language model when a website access error occurs, modifies the network error page according to the explanatory information, obtains a new network error page, and displays the new network error page, compared to existing methods that directly display network error pages when a website access error occurs, this embodiment can display explanatory information for network error pages that is easy for users to understand, helping users quickly analyze and locate network problems in their browsers, thus improving the user experience.
[0137] Based on the first embodiment of the network error page display device of the present invention described above, a second embodiment of the network error page display device of the present invention is proposed.
[0138] In this embodiment, the acquisition module 10 is further configured to search for the error page handling strategy corresponding to the network error page in the preset network error page configuration information;
[0139] If an error page handling strategy corresponding to the network error page is found, the network error page is input into the large language model to obtain the explanation information corresponding to the network error page output by the large language model.
[0140] Furthermore, the acquisition module 10 is also used to connect to a centralized management platform;
[0141] Obtain the preset network error page configuration information configured by the user on the centralized management platform.
[0142] Furthermore, the large language model includes a local large language model and an online large language model. The generation module 20 is also used to input the network error page into the large language model when the large language model is a local large language model, so as to obtain the explanation information corresponding to the network error page output by the large language model.
[0143] When the large language model is an online large language model, the network error page is sent to the server corresponding to the online large language model, and the explanation information fed back by the online large language model in the server based on the network error page is obtained.
[0144] Furthermore, the acquisition module 10 is also used to query the explanation information corresponding to the network error page based on the error page explanation information, wherein the error page explanation information includes historical network error pages and historical explanation information corresponding to the historical network error pages;
[0145] If no explanation information is found for the network error page, the explanation information for the network error page is generated based on the large language model.
[0146] Furthermore, the acquisition module 10 is also used to determine error page explanation information based on the explanation information and the network error page corresponding to the explanation information, and to store the error page explanation information;
[0147] Determine the validity period of the error page explanation information;
[0148] When the error page explanation information is determined to be invalid based on the validity period, the error page explanation information is deleted.
[0149] Furthermore, the content modification module 30 is also used to replace the network error information in the network error page according to the explanation information to obtain a new network error page;
[0150] Display the new network error page.
[0151] Furthermore, the content modification module 30 is also used to obtain the user's operation instructions triggered based on the new network error page;
[0152] The corresponding configuration page will be displayed based on the operation instructions;
[0153] When it is detected that the user has completed parameter configuration based on the configuration page, the website corresponding to the network error page is accessed again.
[0154] Furthermore, the content modification module 30 is also used to obtain the user's instructions for obtaining the solution steps triggered by the new network error page;
[0155] Determine the solution corresponding to the instruction obtained in the solution steps;
[0156] Based on the solution, determine the solution steps and display the solution steps on the network error page.
[0157] Furthermore, the content modification module 30 is also used to determine a solution based on the explanation information;
[0158] When the solution is a preset executable solution, the website corresponding to the network error page is accessed based on the solution.
[0159] Furthermore, the generation module 20 is also used to concatenate the network error page with a preset intelligent prompt word to obtain a concatenation result;
[0160] The concatenation result is input into the large language model to obtain the explanation information corresponding to the network error page output by the large language model.
[0161] The network error page display device provided in this application, employing the network error page display method described in the above embodiments, can solve the existing technical problem that when errors occur while accessing a website, users cannot understand the error codes displayed on the error page, resulting in a poor user experience. Compared with the prior art, the beneficial effects of the network error page display device provided in this application are the same as those of the network error page display method provided in the above embodiments, and other technical features in the network error page display device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0162] This application provides a network error page display device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the network error page display method in Embodiment 1 above.
[0163] The following is for reference. Figure 5 The diagram illustrates a structural schematic suitable for implementing a network error page display device according to embodiments of this application. The network error page display device in embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 5 The network error page display device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0164] like Figure 5As shown, the network error page display device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1002 or a program loaded from storage device 1003 into random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the network error page display device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the network error page display device to communicate wirelessly or wiredly with other devices to exchange data. Although network error page display devices with various systems are shown in the figures, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems may be implemented alternatively.
[0165] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0166] The network error page display device provided in this application, employing the network error page display method described in the above embodiments, can solve the existing technical problem that users cannot understand the error codes displayed on the error page when errors occur while accessing a website, resulting in a poor user experience. Compared with the prior art, the beneficial effects of the network error page display device provided in this application are the same as those of the network error page display method provided in the above embodiments, and other technical features in this network error page display device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0167] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0168] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0169] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the network error page display method in the above embodiments.
[0170] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0171] The aforementioned computer-readable storage medium may be included in the network error page display device; or it may exist independently and not assembled into the network error page display device.
[0172] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0173] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0174] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0175] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described method for displaying network error pages. This solves the existing technical problem that when errors occur while accessing a website, users cannot understand the error codes displayed on the error page, resulting in a poor user experience. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the network error page display method provided in the above embodiments, and will not be repeated here.
[0176] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the network error page display method described above.
[0177] The computer program product provided in this application can solve the existing technical problem that when errors occur while accessing a website, users cannot understand the error codes displayed on the error page, resulting in a poor user experience. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the network error page display method provided in the above embodiments, and will not be repeated here.
[0178] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
[0179] This application also discloses A1. A method for displaying a network error page, the method comprising the following steps:
[0180] When an error occurs while accessing a website, retrieve the corresponding network error page.
[0181] Explanation information corresponding to the network error page is generated based on a large language model;
[0182] The content of the network error page is modified according to the explanation information to obtain a new network error page, and the new network error page is displayed.
[0183] A2. The method for displaying network error pages as described in A1, after the step of obtaining the network error page corresponding to the access error when an error occurs while accessing the website, includes:
[0184] The system searches for the error page handling strategy corresponding to the network error page in the preset network error page configuration information. If the error page handling strategy corresponding to the network error page is found, the network error page is input into the large language model to obtain the explanation information corresponding to the network error page output by the large language model.
[0185] A3. The network error page display method as described in A2, prior to the step of searching for the error page handling strategy corresponding to the network error page in the preset network error page configuration information, further includes:
[0186] Connect to a centralized management platform;
[0187] Obtain the preset network error page configuration information configured by the user on the centralized management platform.
[0188] A4. The method for displaying network error pages as described in A1, wherein the large language model includes a local large language model and an online large language model, and the step of generating the explanation information corresponding to the network error page based on the large language model includes:
[0189] When the large language model is a local large language model, the network error page is input into the large language model to obtain the explanation information corresponding to the network error page output by the large language model;
[0190] When the large language model is an online large language model, the network error page is sent to the server corresponding to the online large language model, and the explanation information fed back by the online large language model in the server based on the network error page is obtained.
[0191] A5. The method for displaying network error pages as described in A1, after the step of obtaining the network error page corresponding to the access error when an error occurs while accessing the website, further includes:
[0192] The system queries the explanation information corresponding to the network error page based on the error page explanation information, which includes historical network error pages and their corresponding historical explanation information. If no explanation information corresponding to the network error page is found, the system generates the explanation information corresponding to the network error page based on a large language model.
[0193] A6. The method for displaying network error pages as described in A5, after the step of generating the explanation information corresponding to the network error page based on a large language model when no explanation information corresponding to the network error page is found, further includes:
[0194] Based on the explanation information and the network error page corresponding to the explanation information, determine the error page explanation information and store the error page explanation information;
[0195] Determine the validity period of the error page explanation information;
[0196] When the error page explanation information is determined to be invalid based on the validity period, the error page explanation information is deleted.
[0197] A7. The method for displaying a network error page as described in any one of A1-A6, wherein the step of modifying the content of the network error page according to the explanation information to obtain a new network error page and displaying the new network error page includes:
[0198] Replace the network error information in the network error page with the explanation information to obtain a new network error page;
[0199] Display the new network error page.
[0200] A8. The method for displaying a network error page as described in A7, further comprising, after the step of displaying the new network error page:
[0201] Obtain the user's operation command triggered based on the new network error page;
[0202] The corresponding configuration page will be displayed based on the operation instructions;
[0203] When it is detected that the user has completed parameter configuration based on the configuration page, the website corresponding to the network error page is accessed again.
[0204] A9. The method for displaying a network error page as described in any one of A1-A6, after the steps of modifying the content of the network error page according to the explanation information to obtain a new network error page and displaying the new network error page, further includes:
[0205] Obtain the user's instructions for resolving the issue triggered by the new network error page;
[0206] Determine the solution corresponding to the instruction obtained in the solution steps;
[0207] Based on the solution, determine the solution steps and display the solution steps on the network error page. A10. The network error page display method as described in any one of A1-A6, after the step of generating the explanation information corresponding to the network error page based on the large language model, further includes:
[0208] Determine a solution based on the explained information;
[0209] When the solution is a preset executable solution, the website corresponding to the network error page is accessed based on the solution.
[0210] A11. The method for displaying network error pages as described in any one of A1-A6, wherein the step of generating the explanation information corresponding to the network error page based on a large language model includes:
[0211] The network error page is concatenated with a preset smart prompt word to obtain the concatenation result;
[0212] The concatenation result is input into the large language model to obtain the explanation information corresponding to the network error page output by the large language model.
[0213] This application also discloses B12. A network error page display device, the network error page display device comprising:
[0214] The acquisition module is used to acquire the network error page corresponding to the access error when an error occurs while accessing the website; the generation module is used to generate the explanation information corresponding to the network error page based on the large language model.
[0215] The content modification module is used to modify the content of the network error page according to the explanation information, obtain a new network error page, and display the new network error page.
[0216] B13. The network error page display device as described in B12, wherein the acquisition module is further configured to search for the error page processing strategy corresponding to the network error page in the preset network error page configuration information;
[0217] If an error page handling strategy corresponding to the network error page is found, the network error page is input into the large language model to obtain the explanation information corresponding to the network error page output by the large language model.
[0218] B14. The network error page display device as described in B13, wherein the acquisition module is further configured to connect to a centralized management platform;
[0219] Obtain the preset network error page configuration information configured by the user on the centralized management platform.
[0220] B15. The network error page display device as described in B12, wherein the large language model includes a local large language model and an online large language model, and the generation module is further configured to input the network error page into the large language model when the large language model is a local large language model, and obtain the explanation information corresponding to the network error page output by the large language model;
[0221] When the large language model is an online large language model, the network error page is sent to the server corresponding to the online large language model, and the explanation information fed back by the online large language model in the server based on the network error page is obtained.
[0222] B16. The network error page display device as described in B12, wherein the acquisition module is further configured to query the explanation information corresponding to the network error page based on the error page explanation information, wherein the error page explanation information includes historical network error pages and historical explanation information corresponding to the historical network error pages;
[0223] If no explanation information is found for the network error page, the explanation information for the network error page is generated based on the large language model.
[0224] B17. The network error page display device as described in B16, wherein the acquisition module is further configured to determine error page explanation information based on the explanation information and the network error page corresponding to the explanation information, and store the error page explanation information;
[0225] Determine the validity period of the error page explanation information;
[0226] When the error page explanation information is determined to be invalid based on the validity period, the error page explanation information is deleted.
[0227] This application also discloses C18. A network error page display device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the network error page display method as described in any one of A1 to A11.
[0228] This application also discloses D19. A storage medium, which is a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, it implements the steps of the network error page display method as described in any one of A1 to A11.
[0229] This application also discloses E20. A computer program product comprising a computer program that, when executed by a processor, implements the steps of the network error page display method as described in any one of A1 to A11.
Claims
1. A method for displaying network error pages, characterized in that, The method for displaying network error pages includes the following steps: When an error occurs while accessing a website, retrieve the corresponding network error page. Explanation information corresponding to the network error page is generated based on a large language model; The content of the network error page is modified according to the explanation information to obtain a new network error page, and the new network error page is displayed.
2. The method for displaying network error pages as described in claim 1, characterized in that, After the step of obtaining the network error page corresponding to the access error when an error occurs while accessing the website, the following steps are included: Search for the error page handling strategy corresponding to the network error page in the preset network error page configuration information; If an error page handling strategy corresponding to the network error page is found, the network error page is input into the large language model to obtain the explanation information corresponding to the network error page output by the large language model.
3. The method for displaying network error pages as described in claim 2, characterized in that, Before the step of searching for the error page handling strategy corresponding to the network error page in the preset network error page configuration information, the method further includes: Connect to a centralized management platform; Obtain the preset network error page configuration information configured by the user on the centralized management platform.
4. The method for displaying network error pages as described in claim 1, characterized in that, The large language model includes a local large language model and an online large language model. The step of generating the explanation information corresponding to the network error page based on the large language model includes: When the large language model is a local large language model, the network error page is input into the large language model to obtain the explanation information corresponding to the network error page output by the large language model; When the large language model is an online large language model, the network error page is sent to the server corresponding to the online large language model, and the explanation information fed back by the online large language model in the server based on the network error page is obtained.
5. The method for displaying network error pages as described in claim 1, characterized in that, After the step of obtaining the network error page corresponding to the access error when an error occurs while accessing the website, the method further includes: The error page explanation information is retrieved based on the error page explanation information, which includes historical network error pages and the historical explanation information corresponding to the historical network error pages. If no explanation information is found for the network error page, the explanation information for the network error page is generated based on the large language model.
6. The method for displaying network error pages as described in claim 5, characterized in that, After the step of generating the explanation information corresponding to the network error page based on the large language model when no explanation information corresponding to the network error page is found, the method further includes: Based on the explanation information and the network error page corresponding to the explanation information, determine the error page explanation information and store the error page explanation information; Determine the validity period of the error page explanation information; When the error page explanation information is determined to be invalid based on the validity period, the error page explanation information is deleted.
7. A device for displaying network error pages, characterized in that, The network error page display device includes: The acquisition module is used to retrieve the network error page corresponding to the access error when an error occurs while accessing the website; The generation module is used to generate explanation information corresponding to the network error page based on the large language model; The content modification module is used to modify the content of the network error page according to the explanation information, obtain a new network error page, and display the new network error page.
8. A device for displaying network error pages, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the network error page display method as described in any one of claims 1 to 6.
9. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the network error page display method as described in any one of claims 1 to 6.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the network error page display method as described in any one of claims 1 to 6.