Data display method and device, equipment and medium
By optimizing the display method of Q&A data in intelligent Q&A scenarios, switching question and answer data when updating Q&A pages, users' interference problems during viewing are solved, and efficiency and concentration are improved.
Patent Information
- Application Number
- CN202411460008.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-18
- Publication Date
- 2025-01-10
AI Technical Summary
In the intelligent Q&A scenario, when users view Q&A data, the user is easily interfered with by other irrelevant data when they view the Q&A data at the same time, which reduces the user's viewing efficiency and concentration.
By optimizing the display method of Q&A data, when updating the Q&A page, the question data and answer data can be displayed to the display, ensuring that users reduce interference when viewing the question data and improving users' viewing efficiency and concentration.
It realizes immersive display of Q&A data on the Q&A page, which reduces user interference and improves the efficiency and concentration of users to view Q&A data.
Smart Images

Figure CN119293353A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, specifically to the field of data display technology, and in particular to a data display method, device, equipment and medium. Background Art
[0002] Currently, in the intelligent question-and-answer scenario, users can enter questions and generate answer texts for the questions through intelligent models. At this time, the question-and-answer data is usually displayed in the form of a streaming message body on the question-and-answer page (such as sending a message containing a question as a user, and sending a message containing the corresponding answer text as an intelligent question-and-answer). In addition, when entering a new question, the new question-and-answer data is also directly displayed in the form of a streaming message body on the question-and-answer page where the previous question-and-answer data is displayed (such as continuing to send messages containing new questions as a user, and continuing to send messages containing the corresponding answer text as an intelligent question-and-answer). This means that when asking questions, the previous question-and-answer data and the new question-and-answer data will be displayed on the same question-and-answer page at the same time, so when viewing the question-and-answer data, it is easy to be disturbed by other irrelevant data, reducing the efficiency and concentration of users in viewing the question-and-answer data. Summary of the invention
[0003] The embodiments of the present application provide a data display method, apparatus, device and medium, which can improve the efficiency and concentration of users viewing question and answer data by optimizing the display method of question and answer data.
[0004] On the one hand, an embodiment of the present application provides a data display method, the method comprising:
[0005] Displaying a question and answer page; the question and answer page includes a question display area, an answer card area, and a question input area; the question display area is used to display the first question data, and the answer card area is used to display the first answer data obtained by searching for the answer to the first question data;
[0006] In response to an answer search operation for the second question data, the question and answer page is updated; wherein the question data in the question display area of the updated question and answer page is switched from the first question data to the second question data, and the answer data in the answer card area of the updated question and answer page is switched from the first answer data to the second answer data; the second answer data is answer data obtained by searching for an answer to the second question data; the second question data is input question data input through the question input area, or is obtained from extended question data expanded from the first question data.
[0007] In one aspect, an embodiment of the present application provides a data display device, the device comprising:
[0008] A data display module is used to display a question and answer page; the question and answer page includes a question display area, an answer card area, and a question input area; the question display area is used to display the first question data, and the answer card area is used to display the first answer data obtained by searching for the answer to the first question data;
[0009] A data update module is used to update a question and answer page in response to an answer search operation for second question data; wherein the question data in the question display area of the updated question and answer page is switched from the first question data to the second question data, and the answer data in the answer card area of the updated question and answer page is switched from the first answer data to the second answer data; the second answer data is the answer data obtained by searching for an answer to the second question data; the second question data is input question data entered through the question input area, or is obtained from extended question data expanded from the first question data.
[0010] On the one hand, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute some or all of the steps in the above method.
[0011] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program includes program instructions, which, when executed by a processor, are used to execute some or all of the steps in the above method.
[0012] Accordingly, according to one aspect of the present application, a computer program product or a computer program is provided, wherein the computer program product or the computer program comprises computer instructions, and when the computer instructions are executed by a processor, some or all of the steps in the above method can be implemented.
[0013] In an embodiment of the present application, a question display area, an answer card area, and a question input area can be displayed on a question and answer page. The question display area can display the first question data, and the answer card area can display the first answer data of the first question data. At this time, when performing an answer search operation for the new second question data, the question and answer page can be updated. At this time, the question data on the question display area on the updated question and answer page can be switched to the second question data, and the answer data on the answer card area can be switched to the second answer data of the second question data. In other words, when new question data is input, the relevant question and answer data displayed on the question and answer page for the original question data can be directly updated to the relevant question and answer data displayed for the new question data, thereby optimizing the display method of the question and answer data, realizing an immersive display of the question and answer data on the question and answer page, reducing interference to the user when viewing the question data, and improving the efficiency and concentration of the user in viewing the question and answer data. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0015] Figure 1 A schematic diagram of a network architecture provided for an embodiment of the present application;
[0016] Figure 2 A schematic diagram of a data display scenario provided in an embodiment of the present application;
[0017] Figure 3 A schematic diagram of a data display method provided in an embodiment of the present application;
[0018] Figure 4 A schematic diagram of a question-and-answer page provided in an embodiment of the present application;
[0019] Figure 5 A schematic diagram of a scenario of answer switching provided in an embodiment of the present application;
[0020] Figure 6a A schematic diagram of a question data input provided in an embodiment of the present application;
[0021] Figure 6b A schematic diagram of another method of inputting question data provided in an embodiment of the present application;
[0022] Figure 6c A schematic diagram of another problem data input provided in an embodiment of the present application;
[0023] Figure 7a A schematic diagram of a display scenario of extended question data provided in an embodiment of the present application;
[0024] Figure 7b A schematic diagram of another display scenario of extended question data provided in an embodiment of the present application;
[0025] Figure 7c A schematic diagram of a display scenario of another extended question data provided in an embodiment of the present application;
[0026] Figure 8a A schematic diagram of a scenario of related questions provided in an embodiment of the present application;
[0027] Figure 8b A schematic diagram of another scenario of related questions provided in an embodiment of the present application;
[0028] Fig. 9 A flowchart of another data display method provided in an embodiment of the present application;
[0029] Fig.10a A schematic diagram of a question page provided in an embodiment of the present application;
[0030] Fig.10b A schematic diagram of another question-and-answer page provided in an embodiment of the present application;
[0031] Fig.11 A schematic diagram of a content reference component provided in an embodiment of the present application;
[0032] Fig.12 A schematic diagram of a viewing scenario of historical questions and answers provided in an embodiment of the present application;
[0033] Fig.13 A schematic diagram of an answer template provided in an embodiment of the present application;
[0034] Fig.14 A flowchart of another data display method provided in an embodiment of the present application;
[0035] Fig.15 A schematic diagram of an interactive process of data display provided in an embodiment of the present application;
[0036] Fig.16 A schematic diagram of the structure of a data display device provided in an embodiment of the present application;
[0037] Fig.17 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] The data display method proposed in the embodiment of the present application is implemented in an electronic device, which can be a server or a terminal device. Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, and big data and artificial intelligence platforms. The terminal device can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited to this.
[0039] Among them, a network architecture diagram proposed based on the data display method can be shown as follows Figure 1 As shown, the network architecture may include a server 100 (with no limitation on the number of servers) and a terminal device cluster (with no limitation on the number of terminal devices, such as terminal device 200a, terminal device 200b, ..., terminal device 200n), wherein there may be a communication connection between the servers. At the same time, the server may have a communication connection with any terminal device, so that the server can exchange data with the terminal device through the communication connection. The above-mentioned communication connection does not limit the connection method, and may be directly or indirectly connected through a wired communication method, or directly or indirectly connected through a wireless communication method, or through other methods, which are not limited in this application. In addition, it can be understood that the electronic device involved in the embodiments of the present application may be Figure 1 The terminal device shown can also be Figure 1 The server shown.
[0040] It should be understood that Figure 1 Each terminal device in the terminal device cluster shown can be installed with an application client for intelligent question and answer. The application client can be any type of client, such as a social client, an instant messaging client (e.g., a conference client), an entertainment client (e.g., a live broadcast client), a multimedia client (e.g., a video client), an information client (e.g., a news client), a shopping client, a multimedia client, etc., which has the function of displaying data information such as text, pictures, audio, and video. The specific type of the application client is not limited here.
[0041] For example, an application client refers to a client that can instantly send and receive Internet messages and has data display functions. Figure 1 When the application client on the terminal device 200a shown in FIG. 1 inputs question data, it can send the question data to the server (such as Figure 1The server 100 shown in the figure sends an answer search request, and the server can search the answer to the question data to obtain the answer data corresponding to the question data. At this time, the application client of the terminal device can display the question data and the answer data on the question and answer page.
[0042] Optionally, the terminal device and the server may be based on logical division. Therefore, when the terminal device and the server are mentioned below, they may be physically the same device or different devices.
[0043] For further understanding, please refer to Figure 2 , Figure 2 A schematic diagram of a data display scenario provided for an embodiment of the present application. Among them, searching for an answer to the first question data "question XXX" can obtain a question and answer page 20a, which can be used to display the first answer data corresponding to the first question data. For example, the question and answer page can display a question display area 21a, an answer card area 21b, and a question input area 21c. The first question data is displayed in the question display area, and the first answer data is displayed in the answer card area.
[0044] At this time, the question data can be input through the question input area, or the first question data can be expanded to obtain extended question data, and then the second question data can be obtained, such as the input question data in the question input area, or the question extension area 21d is displayed on the question and answer page, and the extended question data is displayed on the question extension area, and the second question data is the clicked target extended question data.
[0045] At this time, the Q&A page can be updated in response to the answer search operation for the second question data "Question YYY". For example, the question display area of the updated Q&A page 20b switches to display the second question data, and the answer card area switches to display the second answer data of the second question data.
[0046] It can be understood that the second question data at this time is the new first question data. If there is new second question data in the future, the process and principle of updating the Q&A page after the answer search is the same as described above to switch to new Q&A data.
[0047] It can be understood that when viewing the question and answer data, you are immersively viewing the question and answer data that is currently being asked, and when asking new questions, you can enter them yourself or obtain them by expanding the question data, thereby enhancing the richness and fun of interactive operations on the question and answer page, and enhancing the user experience and interactivity of viewing the question and answer data.
[0048] Optionally, in some embodiments, the electronic device may execute the data display method to optimize the question and answer data display on the question and answer page according to actual business needs. Among them, in the technical solution of the present application, the question data can be divided into multiple types according to the actual scenario. For example, comparison questions (such as used to compare two objects, such as comparing one model of camera with another model of camera), text generation questions (such as used to generate text of a specified topic, such as generating an article with the topic of XXX), and questions other than comparison questions and text generation text (such as called target questions).
[0049] It can be understood that for different questions, the answer data is generated in different ways. For example, for comparison questions and target questions, the question data can be searched for content to obtain the published content associated with the question data (such as articles, notes, etc., for example, the question data indicates a search for tourist attractions in city A, and the published content can be tourism science articles related to city A, travel guide notes, etc.), and the corresponding answer data is generated based on the published content, and the answer data can include answer text data and answer image data. For another example, for text generation questions, the corresponding topic text can be generated as answer data through a language model.
[0050] In addition, in the technical solution of the present application, for different question data, the structure of the answer data is different. For example, for comparison questions, the answer data may include answer text data and answer image data. The answer text data may include answer text data a and answer text data b for comparing two objects (such as for comparing the relevant parameter data of one model of camera with the relevant parameter data of another model of camera). In addition, the answer image data in the answer data may include image data a and image data b for comparing two objects (such as for comparing the relevant image data of one model of camera with the relevant image data of another model of camera).
[0051] For another example, for a target type question, the answer text data in the answer data may be one or more, and one answer image data in the answer data may correspond to one answer text data.
[0052] For another example, for text generation questions, the answer data is the generated topic text data. Optionally, the answer data may not be configured with image data. That is, for the question and answer page, the answer data may be directly displayed in the form of a dialog box.
[0053] It can be understood that for different question data, since the structure of the obtained answer data is different, the structure of the answer card area that displays different answer data is different. In other words, the answer templates used for the answer card area of the question and answer page are different. For example, for comparison questions, the answer template used for the answer card area is a comparison template (optionally, the comparison template can further include template a mainly based on text comparison and template b mainly based on image comparison). For the same question data, multiple comparison models can be used at the same time. For example, when the question and answer page uses template a to display the answer data, through the data switching operation, the answer data can be switched to template b for display.
[0054] As another example, for a target type question, the answer template used for the answer card area is the target type template.
[0055] As another example, for text generation questions, the answer template used for the answer card area is a text generation template.
[0056] That is to say, in the technical solution of the present application, for different question data, the answer data is no longer displayed in a text box with a fixed format. Instead, different answer templates are adaptively selected to display the answer data according to different question data, thereby improving the richness and flexibility of the answer display.
[0057] Optionally, the data involved in this application, such as the account data of the target account (such as historical question and answer data), can be stored in a database, or can be stored in a blockchain, such as through a blockchain distributed system, which is not limited in this application.
[0058] It should be noted that in the specific implementation of the present application, when it comes to scenarios involving obtaining relevant data such as user information, such as obtaining user information (such as account data of the target account, etc.) for user search, etc., it is necessary to obtain user permission or consent. That is, when the embodiments of the present application are applied to specific products or technologies, the collection, use and processing of relevant user data comply with relevant laws, regulations and standards in the relevant regions. For example, a prompt message can be issued in the form of an interactive page to prompt which data will be collected or obtained. Specifically, the type and content of these data can be prompted to the user through a list or other method. Only after receiving a confirmation operation or instruction allowing the collection of data on the interactive page, the collection and processing of relevant data will be further performed.
[0059] It is understood that the above scenarios are only examples and do not constitute a limitation on the application scenarios of the technical solutions provided in the embodiments of the present application. The technical solutions of the present application can also be applied to other scenarios. For example, it is known to those skilled in the art that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0060] Based on the above description, the present application embodiment proposes a data display method, which can be executed by the electronic device mentioned above, specifically Figure 1 See the terminal equipment shown. Figure 3 , Figure 3 A flow chart of a data display method provided in an embodiment of the present application. Figure 3 As shown, the process of the data display method in the embodiment of the present application may include the following:
[0061] S101, displaying a question and answer page.
[0062] The question-and-answer page is a page displayed after searching for answers to question data (such as the first question data). For example, question data can be input on the question-asking page, and the question-asking page is obtained by searching for answers to the input question data. Alternatively, new question data is asked on the current question-asking page, and the new question-asking page obtained at this time is the page obtained after searching for answers to the latest question data.
[0063] The question and answer page includes a question display area, an answer card area, and a question input area. The question display area is used to display the first question data, and the answer card area is used to display the first answer data obtained by searching for the answer to the first question data.
[0064] Optionally, when the first question data is a target type question, the first answer data of the first question data may include answer text data and answer image data associated with the answer text data (such as at least one answer text data and answer image data corresponding to each answer text data). In this case, the answer card area includes an answer text area for displaying the answer text data and an answer image area for displaying the answer image data.
[0065] For example, the answer text data includes first answer text data and second answer text data; the answer picture data includes first answer picture data associated with the first answer text data and second answer picture data associated with the second answer text data. Displaying the question and answer page may be, when displaying the question and answer page, displaying the first answer text data in the answer text area and displaying the first answer picture data in the answer picture area.
[0066] It can be understood that at this time, the answer data can be switched (such as switching to view the next answer data) through the data switching operation on the answer card area. For example, in response to the data switching operation on the question and answer page, the answer text data in the answer text area is switched from the first answer text data to the second answer text data, and the answer picture data in the answer picture area is switched from the first answer picture data to the second answer picture data.
[0067] That is, when the answer data returned by the server is obtained, and the answer data includes answer text data and answer image data, the answer card area on the question and answer page can display the answer text area and the answer image area. The specific way in which the server determines the answer data can refer to the relevant description of the following embodiment.
[0068] The first answer image data may be image data generated by the first answer text data, or may be image data obtained from the published content referenced by the first answer text data. Similarly, the second answer image data may be image data generated by the second answer text data, or may be image data obtained from the published content referenced by the second answer text data.
[0069] It can be understood that the second answer text data is obtained in the same manner as the first answer text data, and the second answer image data is obtained in the same manner as the first answer image data.
[0070] It is understandable that an answer text area can be displayed on the answer card area. At this time, an answer picture area can be displayed on the answer card area, and the answer picture area can be used to display the answer picture data corresponding to the answer text data on the answer text area.
[0071] It is understood that the answer text area can be above the answer picture area, and can be directly displayed in the form of an overlay, or in the overlapping part of the answer text area and the answer picture area, by adjusting the regional transparency of the answer text area, the answer picture data on the overlapping area can be shown as the regional background to achieve immersive answer data display, or it can be non-overlapping with the picture area. In addition, the area size and area position of the answer text area and the answer picture area are not limited.
[0072] For example, Figure 4 As shown, Figure 4A schematic diagram of a question-and-answer page provided in an embodiment of the present application; wherein the question-and-answer page 50a may display a question display area, an answer card area, a question input area (such as displaying "Tell me what you want to know"), and a question-and-answer logo. The question display area is used to display the first question data "Question XXX", and the answer card area is used to display the first answer data obtained by searching for the answer to the first question data.
[0073] Among them, the answer card area can display the answer text area and the answer picture area, and the first answer text data "XXX...XXX" is displayed in the answer text area, and the first answer picture data t51 is displayed in the answer picture area.
[0074] Among them, when the question data is a text generation question, the server only returns the answer data in text form, and the answer card area can display the answer data in the form of a text box. For example, when the terminal device obtains the answer data, it can display the answer data in a preset format on the answer card area of the question and answer page 50a' (such as "Title XXX", "Main Text XXX", "Subtitle 1XXX", "Main Text XXX", "Subtitle 2XXX", "Main Text XXX", etc.). In addition, the source of the answer data can also be displayed, such as the language model used (such as ChatGPT model, etc.), such as displaying "This content is generated by language model X".
[0075] In addition, when there are multiple first answer text data (such as when the question data is a comparison question, the first answer text data may include first sub-text data and second sub-text data for comparison), the answer text area includes multiple text areas, such as the first sub-text area and the second sub-text area for comparison.
[0076] Similarly, there are multiple first answer picture data (such as the first answer picture data may include first sub-picture data associated with the first sub-text data, and second sub-picture data associated with the second sub-text data), and the answer card area may include multiple picture areas (such as including a first sub-picture area and a second sub-picture area for comparison). The specific display method of the question and answer page in this scenario can refer to the relevant description of the following embodiment.
[0077] It is understandable that when there are multiple answer text data in the answer data, different answer text data and corresponding answer image data can be switched on the question and answer page through data switching operations. For example, data switching can be performed through sliding operations. For example, swiping up displays the next answer data (such as the next answer text data and answer image data), and swiping down displays the previous answer data (such as the previous answer text data and answer image data). For another example, swiping to the left displays the next answer data, and swiping to the right displays the previous answer data. No limitation is made here.
[0078] It can be understood that the display form of the second answer text data can be the same as the display form of the first answer text data, and the display form of the second answer picture data can be the same as the display form of the first answer picture data.
[0079] When there are multiple answer data, a switching prompt component can be displayed on the question and answer page, and the switching prompt component can be used to prompt the switching of the answer data. For example, one answer data corresponds to a prompt bar in the switching prompt component, the length of the prompt bar corresponding to the currently displayed answer data is greater than the length of the prompt bars corresponding to the remaining answer data (and / or the brightness of the prompt bar corresponding to the currently displayed answer data is greater than the brightness of the prompt bars corresponding to the remaining answer data), and when the answer data is switched, the length and / or brightness of the prompt bar corresponding to each answer data will also switch.
[0080] In addition, when there are multiple answer data, the answer card area on the question and answer page can have an overlapping style. At this time, when switching answers, the switching of answer data and image data can be displayed with the card switching effect of the answer card area. For example, the card switching effect is that one answer card area (displaying the first answer text data and the first answer image data) is switched to another answer card area (displaying the second answer text data and the second answer image data). Or, the card switching effect is to directly implement the update switching of the first answer text data and the update switching of the first answer image data on the current answer card area.
[0081] Optionally, when there are multiple answer text data, you can use a card call-up operation (i.e., a data viewing operation for the answer data, such as a specified gesture operation on the question and answer page) to display multiple answer card areas at the same time, one answer card area corresponds to one answer data (such as displaying one answer text data and a corresponding answer image data). At this time, you can trigger a certain answer card area to directly switch to display the answer data on the triggered answer card area on the question and answer page.
[0082] For example, in response to a data viewing operation for the first answer data, multiple answer card areas are displayed on the question and answer page; one answer card area is used to display an answer text data in the first answer data and answer image data associated with the answer text data; in response to a card area trigger operation, the answer card area on the question and answer page is switched to display the answer card area indicated by the card area trigger operation.
[0083] For example, Figure 5 As shown, Figure 5 A schematic diagram of a scenario of answer switching provided by an embodiment of the present application; wherein, when there are multiple answer data in the answer data, the question and answer page 70a (such as Figure 4 The illustrated question and answer page 50a) can display a switching prompt component 71a, where one answer data corresponds to a prompt bar in the switching prompt component. If the first answer text data "XXX...XXX" is the first answer data in the answer data (the answer card area where the first answer text data is located is the first card in the question and answer page at this time), the length and brightness of the first prompt bar are different from those of other prompt bars.
[0084] Furthermore, the answer card area of the question and answer page has an overlapping style 72a.
[0085] Among them, by sliding operation, the second answer text data "XXA...XXB" can be switched to be displayed in the answer text area of the question and answer page and the second answer picture data t71 can be switched to be displayed in the answer picture area (the question and answer page is 70b at this time). At this time, the length and brightness of the second prompt bar are different from those of other prompt bars.
[0086] It can be understood that the overlapping portion of the answer text area and the answer picture area uses the answer picture data on the answer picture area as the area background.
[0087] Optionally, when there are multiple answer data and there is an answer sequence between the answer data (such as for step-type answer text data), the answer sequence can also be displayed on the question and answer page. For example, when the first answer text data is displayed on the question and answer page 701a, the sequence indication information 73a corresponding to the answer sequence corresponding to the first answer text data is displayed (such as "1.", indicating that the answer sequence is sequence one), then when switching to display the second answer text data, the sequence indication information corresponding to the answer sequence corresponding to the second answer text data will also be switched to display.
[0088] Optionally, when there are multiple answer data and there is no order between the answer data (such as non-step answer text data), the answer order may not be displayed on the question and answer page 701b, or a preset point style 73b may be displayed.
[0089] Optionally, when there are multiple answer data, multiple answer card areas can be displayed at the same time through the data viewing operation for the first answer data, with one answer card area displaying one answer text data and one answer image data. Clicking on an answer card area can display the answer card area on the question and answer page.
[0090] For example, in the question and answer page 70b, multiple answer card areas are displayed, such as the answer card area 74a, the answer card area 74b, etc., by the data viewing operation for the first answer data. You can view multiple answer card areas by sliding or clicking. For example, the first answer text data and the first answer image data can be displayed on the answer card area 74a, and the second answer text data and the second answer image data can be displayed on the answer card area 74b. At this time, you can slide to display the answer card area 74a, and click the answer card area 74a to display the answer card area 74a on the question and answer page, that is, the question and answer page 70a.
[0091] Optionally, the positions of the answer text area and the answer image area may remain unchanged or may change before and after the answer data is switched. For example, if the answer text area is in the first position before the answer data is switched, the answer text area may be changed to the second position after the answer data is switched. The display structure of the answer text area and the answer image area on the question and answer page is determined specifically according to the category of the question data and the configuration of the relevant personnel.
[0092] It can be understood that when viewing the answer data, you can view not only the relevant text data but also the corresponding image data to achieve immersive Q&A. At the same time, when there are multiple answer text data in the answer data, you can display an answer image data for each answer text data respectively, and display different answer text data and answer image data by switching the data, which can enhance the richness of the content display on the Q&A page.
[0093] S102. In response to the answer search operation for the second question data, update the question and answer page.
[0094] Among them, the question data in the question display area of the updated question and answer page is switched from the first question data to the second question data, and the answer data in the answer card area of the updated question and answer page is switched from the first answer data to the second answer data; the second answer data is the answer data obtained by searching for answers to the second question data.
[0095] That is to say, the current question and answer page displays the question and answer data related to the second question data, and the display principle is the same as the above-mentioned display principle for the first question data.
[0096] The second question data may be input question data input through the question input area, such as searching for answers by inputting new question data in the question input area, or may be obtained from extended question data expanded from the first question data, such as obtaining target extended question data from the extended question data for searching for answers.
[0097] For example, in response to a question input operation on a question input area, an answer search is performed on the input question data corresponding to the question input operation, and the updated question and answer page may be, in response to a text input operation, displaying the input text indicated by the text input operation; the input text is the input question data.
[0098] For example, a question input area is displayed on the question and answer page, and text can be input in the question input area. The user can search for answers to the text input in the question input area.
[0099] For another example, in response to the voice input operation, the input voice indicated by the voice input operation is displayed. The voice text information converted from the input voice is the input question data.
[0100] For example, a voice input component is displayed on the question and answer page, and voice input can be performed by triggering the voice input component. At this time, the input voice can be sent to the server, and the server uses the converted voice text information as question data for search. Alternatively, the converted voice text information can be returned to the terminal device to be displayed in the question input area, and the user can edit the text or determine whether to search for the answer.
[0101] For another example, in response to the picture input operation, the input picture indicated by the picture input operation is displayed. The picture text information converted from the input picture is the input question data.
[0102] For example, if a picture input component is displayed on the question-and-answer page, the picture input component can be triggered to input the picture. At this time, the input picture can be sent to the server, and the server uses the converted picture text information as question data for search. Alternatively, the converted picture text information can be returned to the terminal device to be displayed in the question input area, and the user can edit the text or determine whether to search for the answer.
[0103] For example, Figure 6a-6c As shown, Figure 6a-6c A schematic diagram of a problem data input provided in an embodiment of the present application; wherein, Figure 6a In the question and answer page 401a (eg Figure 4The illustrated question and answer page 50a) may display a question and answer logo, and a prompt message “Tell me what you want to know” may be displayed in the question input area.
[0104] Among them, the text input of the question data "Question YYY" can be performed in the question input area, and the answer search for the input second question data can be performed through the search component, thereby updating the question and answer page 401b for the second question data "Question YYY". At this time, the question and answer page 401b can display the question display area (for displaying the second question data), the question identifier and the answer card area related to the question identifier (that is, for displaying the second answer data, such as displaying the answer picture data t41, the answer text data "XXX...XXX"), and the question input area (for displaying the prompt message "Tell me what you want to know").
[0105] It is understandable that when the server is searching for answers, an answer search effect (such as a rotating circle, or a loading progress bar, etc.) can be displayed on the answer card area of the question and answer page 401a.
[0106] Optionally, in Figure 6b In the question input area of the question-and-answer page 401a, a voice input component can be displayed, and voice input can be performed by triggering the voice input component, such as displaying a voice input logo and prompt information (such as displaying "press and hold to input" when voice input has not started, and displaying "release to send" during the voice input process).
[0107] At this time, the input voice can be sent to the server, and the server can return the voice input text "Question YYY" converted from the input voice to the terminal device. At this time, the terminal device can display the voice input text in the question input area, and the terminal device can choose whether to search for the answer.
[0108] Alternatively, the terminal device may directly enter the question-answering page 401b of the voice input text "Question YYY" as the second question data.
[0109] Optionally, in Figure 6c In the question input area of the question and answer page 401a, a picture input component can be displayed, and picture input can be performed by triggering the picture input component, such as displaying an upload component for uploading pictures and a camera component for taking pictures.
[0110] At this time, the input image can be sent to the server, and the server can return the image input text "Question YYY" converted from the input image (such as extracting text from the input image, or generating text matching the input image) to the terminal device. At this time, the terminal device can display the image input text in the question input area, and the terminal device can choose whether to search for the answer.
[0111] Alternatively, the terminal device may directly enter the question-and-answer page 401b of the picture input text "Question YYY" as the second question data.
[0112] It is understood that when the server is searching for answers, an answer search effect (such as a rotating circle or a loading progress bar, etc.) can be displayed on the answer card area. At this time, a prompt message "Tell me what you want to know" can be displayed in the question input area on the question and answer page.
[0113] Optionally, when the question input area on the Q&A page allows the user to input question data and search for answers, a new Q&A dialogue may be started, such as displaying the first prompt message "Start a new Q&A dialogue" on the question input area. This means that the user asks the question again, searches for answers, and updates the current Q&A page.
[0114] Optionally, you can also use the question input area on the question and answer page to ask related questions about the current question data (it will be understood that the question data entered at this time can be question data for further related questions about the question data currently being asked), such as displaying a second prompt message "Tell me what you want to know" on the question input area.
[0115] That is, further questions are asked based on the question data currently asked (e.g., the first question data currently being asked is "how much luggage can be placed in car X", and the second question data of the related question may be "how much luggage weight can the trunk of car X bear"). It can be understood that the second answer data of the second question data may be further generated based on the first question data and / or the first answer data.
[0116] Optionally, in response to an answer search operation for the second question data, updating the Q&A page may also be, in response to a question extension operation, displaying a question extension area on the Q&A page, and displaying extended question data in the question extension area; in response to an extended question operation, performing an answer search on the target extended question data corresponding to the extended question operation, and updating the Q&A page.
[0117] Among them, displaying extended question data may be, in response to a first question extension operation, displaying a first question extension area on the question and answer page, and displaying first extended question data corresponding to the first question extension operation in the first question extension area; the first extended question data refers to question data obtained by expanding the first question data under at least one question dimension.
[0118] For example, when performing a data switching operation, if there is no answer text data that can be switched for display, the first question extension area can be switched for display on the question and answer page. For example, when the data switching operation indicates switching to the next answer text data, and the currently displayed answer text data is the last answer text data, the first extended question data can be displayed on the question and answer page. Or when the data switching operation indicates switching to the previous answer text data, and the currently displayed answer text data is the first answer text data, the first extended question data can be displayed on the question and answer page.
[0119] Alternatively, the first question expansion area is displayed through a designated gesture operation. The first question expansion operation is not limited here.
[0120] The question dimensions can be configured by relevant personnel. For example, the question dimensions include: asking more complex questions (such as asking more complex questions for question data), obtaining more information (such as viewing more information for the object indicated by the question data), continuing the previous question (such as extending and continuing the question data asked), etc. For example, the server can input the question data and the question data into the language model to obtain the first extended question data.
[0121] Optionally, the question input area can still be displayed on the question and answer page at this time, and the first prompt information can be displayed on the question input area at this time, and the user can ask the question again in the question input area. Optionally, the first extended question data can also be dragged to the question input area for editing to ask the question again.
[0122] Alternatively, a second prompt message may be displayed on the question input area at this time. At this time, in response to a trigger operation on the first extended question data, the first extended question data may be displayed on the question input area (such as a long press operation to drag the first extended question data to the question input area). At this time, the first extended question data may be edited and the answer searched on the question input area. At this time, related questions are asked for the first question data.
[0123] Alternatively, displaying the extended question data may be, in response to the second question extension operation, displaying a second question extension area on the question and answer page, and displaying the second extended question data corresponding to the second question extension operation in the second question extension area; the first answer data includes answer text data and answer picture data; the answer card area includes an answer text area for displaying the answer text data and an answer picture area for displaying the answer picture data; when the second question extension operation is a trigger operation for the answer text area, the second extended question data is the question data obtained by expanding the answer text data; when the second question extension operation is a trigger operation for the answer picture area, the second extended question data is the question data obtained by expanding the answer picture data.
[0124] Optionally, the second problem extension area and the first problem extension area may be the same area or different areas.
[0125] That is to say, the extended question data may be realized by a trigger operation on the answer text data or the answer picture data. Taking the first answer picture data as an example, in response to a trigger operation (such as a click or a long press, etc.) on the first answer picture data in the answer picture area, the second extended question data for extending the first question data may be displayed on the question and answer page.
[0126] The second extended question data is question data obtained by expanding the first answer image data, such as question data obtained by expanding the trigger position of the trigger operation on the first answer image data.
[0127] That is, the terminal device can send the first answer image data and the trigger location to the server, and the server generates the second extended question data. For example, the server can generate question data associated with the first answer image data and the first question data based on the first answer image data and the first question data as the second extended question data. If the first question data is "travel guide of city A", and the first answer image data is a picture of scenic spot A in city A, the generated second extended question data can be "how to go to scenic spot A in city A", etc.
[0128] Alternatively, the server may determine the area picture data triggered by the first answer picture data based on the trigger position, and generate question data associated with the area picture data and the first question data based on the area picture data (the picture object in the area picture data) and the first question data as the second extended question data. For example, if the first question data is "how much luggage can be placed in car X", the first answer picture data is a picture of car X, and the area picture data indicated by the trigger position is a picture of the tire of car X, the generated second extended question data may be "how to modify the tire of car X", etc.
[0129] Optionally, the extended question can also be implemented by a text selection operation of the answer text data in the answer text area. For example, long press the first answer text data to display the text selection symbol, and generate the second extended question data through the selected text data indicated by the text selection symbol. For example, the selected text data indicated by the text selection symbol is sent to the server, and the server generates question data associated with the selected text data and the question data based on the selected text data and the first question data as the second extended question data.
[0130] That is to say, question expansion can be achieved by triggering the answer text data on the answer card area, or by triggering the answer picture data.
[0131] It can be understood that in response to a trigger operation on the second extended question data, the second extended question data can be displayed on the question input area (such as a long press operation to drag the second extended question data to the question input area). At this time, the second extended question data can be edited and the answer searched on the question input area. At this time, searching for the answer to the second extended question data is equivalent to asking an extended question (related question) for the first question data.
[0132] The target extended question data may be determined by searching the reference question data for an answer in response to a first extended question operation on the reference question data; the reference question data is the target extended question data. For example, it may be a click operation on the reference question data. At this time, the server may use the clicked extended question data as the target extended question data and search for an answer.
[0133] Alternatively, in response to a second extended question operation for reference question data, an answer search is performed on combined question data corresponding to the reference question data; the combined question data is the target extended question data; the combined question data is the question data obtained by combining the reference question data and the superimposed question data indicated by the second extended question operation; the superimposed question data and the reference question data both refer to the question data in the extended question data.
[0134] For example, when one extended question data (reference question data) is dragged to another extended question data (superimposed question data), the two extended question data are sent to the server, which combines them to obtain combined question data as target extended question data and performs answer search.
[0135] The combined question data may include the reference question data and the superimposed question data at the same time, or may regenerate a new extended question for the reference question data and the superimposed question data.
[0136] For example, Figure 7a-7c As shown, Figure 7a-7c A schematic diagram of a display scenario of extended question data provided in an embodiment of the present application; wherein, Figure 7a In the question and answer page 60a (such as Figure 4When clicking on the first answer image data t51 on the question and answer page 50a) shown in the example, a second question extension area is displayed on the question and answer page, and the second extended question data "Question AAA" for the first answer image data t51 is displayed in the second question extension area. At this time, the second extended question data can be dragged to the question input area to display the second extended question data "Question AAA" in the question input area. In this way, the second extended question data can be edited through the question input area to be used as input question data for asking associated questions.
[0137] It is understood that after the answer data is switched, the second extended question data for the first answer image data is no longer displayed. If the second answer image data is displayed after the answer data is switched, the second answer image data can also be clicked to display the corresponding extended question data.
[0138] It can be understood that the overlapping portion of the answer text area and the answer picture area uses the answer picture data on the answer picture area as the area background.
[0139] Alternatively, by long pressing the first answer text data on the question and answer page 60a, a text selector is displayed, and the selected text data 62a is obtained through the text selector, and the second extended question data "Question AAA" for the selected text data 62a is displayed on the question and answer page. At this time, the second extended question data "Question AAA" can be dragged to the question input area to display the second extended question data "Question AAA" on the question input area.
[0140] For example, in Figure 7b In the question and answer page 61a (such as Figure 4 By long pressing the answer data on the illustrated question and answer page 50a'), a text selector is displayed, and the selected text data 63a is obtained through the text selector, and the second extended question data "Question BBB" for the selected text data 63a is displayed on the question and answer page. At this time, the second extended question data "Question BBB" can be displayed on the question input area by dragging the second extended question data "Question BBB" to the question input area.
[0141] For example, in Figure 7c In the question and answer page 60a, through the first question expansion operation, the first question expansion area can be displayed, and the first expanded question data, such as "Question X1..XX", "Question X2..XX", and "Question X3..XX", are displayed in the first question expansion area.
[0142] For example, the first question expansion area can be Figure 7a The second problem extension area shown in the example, or in Figure 7cIn the process, the current Q&A page can be updated to obtain the Q&A page 60a', which displays the first question expansion area, the question input area, and multiple question dimensions), such as "Question X1..XX" is the first extended question data under the question dimension (asking more complex questions), "Question X2..XX" is the first extended question data under the question dimension (obtaining more information), and "Question X3..XX" is the first extended question data under the question dimension (continuing the previous question).
[0143] Optionally, at this time, the first extended question data may be dragged to the question input area to display the first extended question data on the question input area.
[0144] The question-and-answer page 60a' may display a prompt message "What else can you talk to me about?" for the extended question.
[0145] Optionally, the question input area may display a first prompt message “Start a new question-and-answer dialogue” or a second prompt message “Tell me what you want to know”.
[0146] For example, Figure 8a-8b As shown, Figure 8a-8b A schematic diagram of a scenario of related questions provided in an embodiment of the present application; Figure 8a In the question and answer page 82a (such as Figure 7a The illustrated question and answer page 60a) displays second extended question data (such as question AA1 and question AA2). By clicking on the second extended question data (such as question AA1), question AA1 can be used as the second question data to search for answers and the question and answer page can be updated.
[0147] Optionally, you can also drag one second extended question data onto another second extended question data (such as dragging question AA1 onto question AA2) to obtain combined question data (question AA3), and use the combined question data as the second question data to search for answers and update the question and answer page.
[0148] Similarly, in Figure 8b In the question and answer page 82b (such as Figure 7c The illustrated question and answer page 60a') may display the first extended question data. By clicking on the first extended question data (such as question X1..XX), the question X1..XX may be used as the second question data for answer search and the question and answer page may be updated.
[0149] Optionally, you can also drag a first extended question data onto another first extended question data (such as dragging question X1..XX onto question X2..XX) to obtain combined question data (such as question X4..XX), and use the combined question data as the second question data to search for answers and update the question and answer page.
[0150] In an embodiment of the present application, a question display area, an answer card area, and a question input area can be displayed on a question and answer page. The question display area can display the first question data, and the answer card area can display the first answer data of the first question data. At this time, when performing an answer search operation for the new second question data, the question and answer page can be updated. At this time, the question data on the question display area on the updated question and answer page can be switched to the second question data, and the answer data on the answer card area can be switched to the second answer data of the second question data. In other words, when new question data is input, the relevant question and answer data displayed on the question and answer page for the original question data can be directly updated to the relevant question and answer data displayed for the new question data, thereby optimizing the display method of the question and answer data, realizing an immersive display of the question and answer data on the question and answer page, reducing interference to the user when viewing the question data, and improving the efficiency and concentration of the user in viewing the question and answer data.
[0151] Based on the above description, the present application embodiment proposes a data display method, which can be executed by the electronic device mentioned above, specifically Figure 1 See the terminal equipment shown. Fig. 9 , Fig. 9 A flow chart of a data display method provided in an embodiment of the present application. Fig. 9 As shown, the process of the data display method in the embodiment of the present application may include the following:
[0152] S201. In response to an answer search operation for first question data, display a question and answer page that matches the question type of the first question data.
[0153] Among them, the question and answer page is the page displayed after searching for the answer to the first question data.
[0154] For example, an answer search operation for the first question data may be performed on the question page to obtain a question and answer page for the first question data.
[0155] For example, a question page is displayed, and in response to a search operation for an answer to the first question data on the question page, a question-and-answer page is displayed.
[0156] Optionally, the question page includes a question input area, and / or, when target historical question data exists within the target time period, the question page includes historical extended question data obtained by expanding the target historical question data under at least one question dimension.
[0157] The target historical question data may be the historical question data of the latest question asked within a target period (e.g., within one day or within 6 hours). That is, when the user enters the question page again within a short period of time after asking a question, the extended question data of the latest historical question data may be displayed to improve the convenience and flexibility of the user's questioning.
[0158] Among them, the question input area in the question page can be the question input area in the question and answer page mentioned in the above embodiment, and the at least one question dimension can be the question dimension mentioned in the above embodiment.
[0159] It can be understood that the first question data is input question data input through the question input area, or is obtained from historical extended question data.
[0160] For example, the question data to be asked can be input in the question input area of the question page. Optionally, the historical extended question data can be dragged and dropped into the question input area to edit the question, that is, to ask a new question.
[0161] Alternatively, by performing an extended question operation on the historical extended question data, target historical extended question data is obtained to conduct related questions on the target historical question data. It can be understood that the extended question operation may refer to the first extended question operation or the second extended question operation mentioned in the above embodiment, that is, the target historical extended question data may be a specified historical extended question data, or may also be the obtained combined historical question data.
[0162] For example, Fig.10a As shown, Fig.10a A schematic diagram of a question page provided for an embodiment of the present application; wherein, the question page 1001a can display a question and answer label and a question entry prompt message "What can you talk to me about", as well as the recommended question dimensions for the entered question, such as the question dimensions of "asking complex questions", "obtaining information strategies", and "generating plan recommendations", which can be specifically configured by relevant personnel.
[0163] Optionally, a question input area may be displayed on the question page (e.g. Figure 6a The question input area shown in the example), for example, a prompt message “Start a new question-and-answer dialogue” may be displayed on the question input area.
[0164] At this time, the first question data can be input through the question input area to search for answers. It can be understood that the input method of the question data can refer to the relevant description of the above embodiment.
[0165] Optionally, when target historical question data exists within the target time period, the question page 1001b may also display historical extended question data obtained by expanding the target historical question data under at least one question dimension, such as extended question data "Question Xa..XX" under the question dimension (asking more complex questions), extended question data "Question Xb..XX" under the question dimension (obtaining more information), and extended question data "Question Xc..XX" under the question dimension (continuing previous questions).
[0166] At this time, on the question page 1001b, you can not only ask questions through the question input area, but also ask questions through historical extended question data, such as clicking on a certain historical extended question data, or dragging a certain historical extended question data to another historical extended question data to realize asking combined question data.
[0167] Among them, different question data may have different question types (such as target questions, comparison questions, and text generation questions). The structure of the question-and-answer page corresponding to different question types may be different. In other words, for different question data, the question-and-answer page uses different answer templates when displaying answer data.
[0168] For example, for target type questions, there is not only answer data but also image data. Therefore, when displaying the answer data, the answer template matching the target type question (matching answer card area) can display the image area (for displaying image data) and the text area (for displaying answer data).
[0169] For another example, for comparison questions, the answer data includes answer data a and answer data b for comparison. Therefore, when displaying the answer data, the answer template matching the comparison questions can display a picture area (including a picture sub-area for displaying picture data corresponding to answer data a and a picture sub-area for displaying picture data corresponding to answer data b) and a text area (including a text sub-area for displaying answer data a and a text sub-area for displaying answer data b).
[0170] For another example, for text generation type questions, only answer data is included. Therefore, when displaying the answer data, a text box can be displayed in the answer template matching the text generation type question, and the answer data is displayed through the text box.
[0171] It can be understood that the server can determine the question type of the question data, and determine a corresponding answer template based on the question type and the determined answer data, and return the answer template to the terminal device (or return the question type, and the terminal device determines the answer template based on the question type and the determined answer data), and the terminal device displays the corresponding question and answer page based on the answer template, and then displays the answer data and picture data.
[0172] S202: When the question type is a preset question type, an answer text area and an answer image area matching the specified question type are displayed on the question and answer page.
[0173] It can be understood that when the preset question type is a target type question, the question and answer page obtained according to the answer template can display the text area and image area matching the target type question.
[0174] Alternatively, when the preset question type is a comparative question, the question and answer page obtained according to the answer template can display the answer text area (such as the first sub-text area and the second sub-text area) and the answer picture area (such as the first sub-picture area and the second sub-picture area) that match the comparative question.
[0175] Furthermore, for comparison questions, the size and position of the answer text area and answer image area displayed in the template mainly based on text comparison and the answer text area and answer image area displayed in the template mainly based on image comparison can be different. For example, in the template mainly based on text comparison, the text area occupies a larger proportion, and in the template mainly based on image comparison, the image area occupies a larger proportion.
[0176] For example, if the first answer text data is mainly based on text comparison, then the template mainly based on text comparison is used when displaying the first answer text data and the first answer image data. For another example, if the second answer text data is mainly based on image comparison, then the template mainly based on image comparison is used when displaying the second answer text data and the second answer image data.
[0177] At the same time, when there are multiple answer text data in the answer data, or multiple answer text data have an answer sequence, or multiple answer text data do not have an answer sequence, the answer template selected depends on the question type.
[0178] For example, when the preset question type is a target type question and there are multiple answer text data, the answer card area can be displayed on the question and answer page obtained according to the corresponding answer template. The answer card area can not only display the answer text area and answer image area matching the target type question, but also display overlapping styles.
[0179] For example, when the preset question type is a target type question, and there are multiple answer text data with an answer order, the answer card area can be displayed on the question and answer page obtained according to the corresponding answer template. The answer card area can not only display the answer text area and answer image area matching the target type question, but also display overlapping styles, and the answer card area can also display sequence indication information corresponding to the answer order.
[0180] For example, when the preset question type is a target type question, and there are multiple answer text data without an answer order, the answer card area can be displayed on the question and answer page obtained according to the corresponding answer template. The answer card area can not only display the answer text area and answer image area matching the target type question, but also display overlapping styles, and the preset point style can also be displayed on the answer card area.
[0181] S203. Display first answer text data for the first question data in the answer text area on the question and answer page, and display first answer picture data associated with the first answer text data in the answer picture area on the question and answer page.
[0182] It can be understood that the server can return the first answer data to the terminal device.
[0183] When the first answer data includes first answer text data, the first answer text data may be displayed in the answer text area, and the first answer picture data may be displayed in the answer picture area.
[0184] It can be understood that when the question data belongs to a comparison question, the first answer text data includes first sub-text data and second sub-text data.
[0185] Among them, the answer text area includes a first sub-text area and a second sub-text area for comparison; the answer picture area includes a first sub-picture area and a second sub-picture area for comparison; the first answer picture data includes first sub-picture data associated with the first sub-text data, and second sub-picture data associated with the second sub-text data.
[0186] Therefore, it is possible to display the first sub-text data in the first sub-text area and the second sub-text data in the second sub-text area; display the first sub-picture data in the first sub-picture area and the second sub-picture data in the second sub-text area.
[0187] For example, the first question data is used to indicate the comparison between the first object and the second object (such as the comparison between the photos taken by camera A and camera B). In this case, the first subtext data may be text data related to the first object, the second subtext data may be text data related to the second object, and the first subtext data and the second subtext data may be used to indicate the comparison between the first object and the second object in a related dimension (such as camera parameters).
[0188] The first subtext data and the second subtext data can be displayed side by side to show the comparison effect. In addition, the first subtext data and the second subtext data can also display the compared dimensions (such as the pixel parameters, focus parameters, etc. of the camera).
[0189] Optionally, a comparison mark may be displayed between the first sub-text area and the second sub-text area, indicating a comparison between the first object and the second object.
[0190] It can be understood that at this time, the first sub-picture data can be an object picture related to the first object, the second sub-picture data can be an object picture related to the second object, and so on.
[0191] It can be understood that if the first answer text data indicates that text comparison is mainly based on text (such as indicated by the server, or determined based on the data volume of the first answer text data and the second image text data, such as mainly comparing data with large data volume), then the template corresponding to the text comparison is selected to display the first answer text data and the first image text data.
[0192] Similarly, if the first answer text data indicates that image comparison is the main focus (such as indicated by the server, or determined based on the amount of data of the first answer text data and the second image text data, such as mainly comparing data with a larger amount of data), then the template corresponding to the image comparison is selected to display the first answer text data and the first image text data.
[0193] For example, Fig.10b As shown, Fig.10b A schematic diagram of another question-and-answer page provided in an embodiment of the present application; wherein, when text comparison is mainly used, a first sub-text area and a second sub-text area may be displayed on the answer card area of the question-and-answer page 101a, wherein one or more text data in the first sub-text data are sequentially displayed on the first sub-text area, and one or more text data in the second sub-text data are sequentially displayed on the second sub-text area. One text data in the first sub-text data corresponds to one text data in the second sub-text data, and one text data in the first sub-text data has a comparative related dimension with the corresponding text data in the second sub-text data.
[0194] For example, text data 11 in the first subtext data and corresponding text data 12 in the second subtext data have a contrasting correlation dimension 1. Text data 21 in the first subtext data and corresponding text data 22 in the second subtext data have a contrasting correlation dimension 2, and so on. For example, the first object and the second object are both cameras, and the relevant dimensions may include focus and exposure. Text data 11 may be a parameter of the first object under the focus dimension, and text data 12 may be a parameter of the second object under the focus dimension; text data 21 may be a parameter of the first object under the exposure dimension, and text data 22 may be a parameter of the second object under the exposure dimension.
[0195] It can be understood that the answer card area may also include a comparison dimension display area, and when the first subtext data and the second subtext data are displayed, the comparison dimensions between the first subtext data and the second subtext data are displayed in sequence.
[0196] For another example, the first subtext data and the second subtext data include comparison title text data, such as the comparison title text data in the first subtext data can be object text data related to the first object (such as the object name or object description of the first object, such as "first object"), and the comparison title text data in the second subtext data can be object text data related to the second object (such as the object name or object description of the second object, such as "second object"). The object text data related to the first object can be displayed in a specified area on the first subtext area. The object text data related to the second object can be displayed in a specified area on the second subtext area.
[0197] It is understandable that the first sub-picture area and the second sub-picture area can also be displayed on the answer card area, which can be used to display the first sub-picture data and the second sub-picture data respectively. In addition, a fixed comparison mark "VS" can also be displayed on the question and answer page.
[0198] In addition, when the image comparison is mainly used, the first sub-text area and the second sub-text area can be displayed on the answer card area of the question and answer page 102a, and the first sub-text area can display the first sub-text data (such as the object text data "first object" related to the first object), and the second sub-text area can display the second sub-text data (such as the object text data "second object" related to the second object). The first sub-picture area and the second sub-picture area can be displayed on the answer card area of the question and answer page, and the first sub-picture area can display the first sub-picture data, and the second sub-picture area can display the second sub-picture data. In addition, a fixed comparison mark can also be displayed on the question and answer page.
[0199] It can be understood that when there are multiple answer text data in the answer data, the relevant answer template used can display overlapping styles and switching prompt components for the answer card area.
[0200] Among them, the answer data may include answer text data based mainly on text comparison and answer text data based mainly on image comparison. Therefore, when switching data, there is a switch in the related answer templates used. For example, the first answer text data is based mainly on text comparison, and the second answer text data is based mainly on image comparison. At this time, when switching data, the answer display format on the answer card area can be switched from the answer card area corresponding to one answer template to the answer card area corresponding to another answer template.
[0201] S204. In response to the data switching operation on the question and answer page, the answer text data in the answer text area is switched from the first answer text data to the second answer text data, and the answer picture data in the answer picture area is switched from the first answer picture data to the second answer picture data.
[0202] Among them, if the answer text data corresponding to the first question data includes second answer text data in addition to the first answer text data, then when performing the data switching operation, based on the switching of the answer data, for example, the answer text data is switched and the answer picture data is switched.
[0203] The second answer picture data is associated with the second answer text data. It can be understood that the display principle of the second answer picture data and the second answer text data is the same as that of the first answer picture data and the first answer text data, which will not be described in detail here.
[0204] Optionally, a content reference component for the published content referenced by the currently displayed answer data (such as the first answer data) is displayed on the question and answer page. Therefore, in response to the triggering operation of the content reference component, the published content is displayed on the question and answer page; the published content is used to obtain the answer text data and / or answer image data in the currently displayed answer data; in response to the triggering operation on the published content, the content details page of the published content is displayed.
[0205] It can be understood that by triggering the content reference component, the published content used in generating the answer data can be viewed. For example, the published content used to extract the answer text data, the published content used to obtain the answer image data, etc. At this time, by triggering a certain published content, the content details page of the published content can be displayed. For example, jump display, or display in the form of a floating window floating layer.
[0206] For example, Fig.11 As shown, Fig.11A schematic diagram of a content reference component provided in an embodiment of the present application; wherein the question and answer page 110a (eg Figure 6a The illustrated question-and-answer page 401a) may display a content reference component 111a, which may display reference prompt information "from XX and other platforms" and a platform identification diagram of the publishing platform to which the referenced content belongs (such as an identification obtained by overlapping a specified number of platform identifications).
[0207] At this time, by triggering the content reference component, the referenced published content and publishing platform can be displayed. For example, it can be classified and displayed based on the platform dimension, such as multiple publishing platforms used when searching for answers (such as platform 1, platform 2), and the published content referenced under a certain published content (such as displaying the title of the published content, such as the title XXX1 of the published content corresponding to platform 1, and the title XXX2 of the published content corresponding to platform 2).
[0208] Among them, by triggering a certain published content (such as the published content with title XXX1), the content details page of the triggered published content is displayed in the form of a floating window floating layer on the question and answer page.
[0209] Optionally, the published content displayed can be all the published content referenced by the answer data, or can be the published content referenced by the answer text data and answer image data displayed on the current question and answer page. For example, the published content referenced by the first answer text data and the first answer image data can be displayed on the question and answer page that displays the first answer text data and the first answer image data. It can be understood that at this time, when the answer text data on the question and answer page is switched to the second answer text data, the published content displayed by triggering the content reference component is the published content referenced by the second answer text data and the second answer image data.
[0210] In response to the historical question and answer viewing operation, multiple answer card areas can be displayed on the question and answer page; wherein one answer card area corresponds to historical answer data of a historical question data; historical question data refers to question data for which answers have been searched.
[0211] In which, in response to the card area trigger operation, the question data in the question display area of the question and answer page is switched from the first question data to the historical question data corresponding to the answer card area indicated by the card area trigger operation, and the answer card area on the question and answer page is switched to the answer card area indicated by the card area trigger operation.
[0212] That is, you can view the answer data of the question data that has been asked in the past, and click on a certain answer card area to enter the question and answer page of the question data indicated by the clicked answer card area.
[0213] Among them, the historical question and answer viewing operation can be a specified operation on the question and answer page, such as a horizontal sliding operation; or, a historical question and answer viewing component can be displayed on the question and answer page, and the historical question and answer viewing operation can be a triggering operation for the historical question and answer viewing component.
[0214] It can be understood that the historical question data is the question data (which may include the current question data) that has been asked in a new question-and-answer dialogue or that has been asked in an expanded form for the question data. It can be understood that when displaying the historical question-and-answer data set, the historical answer data of the historical question data can be displayed in the answer card area in sequence according to the question time. Optionally, when displaying the historical answer data of the historical question data, the historical answer data corresponding to the current question data can be displayed in the center.
[0215] Optionally, similar to the answer data display method corresponding to the data viewing operation mentioned in the above embodiment, the historical answer data of the historical question data may be displayed in the form of multiple answer card areas. At this time, the answer card area may display the first answer data (such as the first answer text data and the first answer image data) in the historical answer data corresponding to the historical question data. In other words, the first card corresponding to the historical answer data is displayed on the answer card area.
[0216] It can be understood that when a certain answer card area is selected, the answer card area will be directly switched to display, that is, the question and answer page corresponding to the triggered historical answer data will be entered (at this time, the question data on the question and answer page is also switched to the historical question data corresponding to the historical answer data).
[0217] For example, the user's historical question data include question data 1-3, and the related question data for the expanded questions of question data 3 include question data 4-6. The historical question and answer viewing component can be displayed on the question and answer page of question data 3. By triggering the historical question and answer viewing component, the answer card area corresponding to the historical question data (including question data 1-3, question data 4-6) can be viewed.
[0218] For example, Fig.12 As shown, Fig.12 A schematic diagram of a viewing scenario of historical questions and answers provided in an embodiment of the present application; wherein the question and answer page 120a (such as Fig.11The question and answer page 110a) shown in the example may display a historical question and answer viewing component (such as the question and answer mark), and by triggering the historical question and answer viewing component, multiple answer card areas (such as superimposed display) may be displayed, and the historical answer data of a historical question data may be displayed on one answer card area. For example, the answer card area 121a and the answer card area 121b may be included, and the answer card area 121a may display the historical answer data of question XXA, such as displaying the answer text data "XXA....XXX" and the answer image data t121; the answer card area 121b may display the historical answer data of question XXX, such as displaying the answer text data "XXX....XXX" and the answer image data t51.
[0219] By triggering the answer card area (such as the answer card area 121a), the question and answer page 120b of question XXA corresponding to the answer card area 121a can be entered to view the answer data corresponding to question XXA on the question and answer page. In addition, the question data on the question and answer page is updated to the triggered historical question data (such as question XXA).
[0220] For example, Fig.13 As shown, Fig.13 A schematic diagram of an answer template provided in an embodiment of the present application; wherein Figure 4 Taking the illustrated question and answer page 50a as an example, the corresponding answer template 131a displays an answer card area on the answer template 131a. The answer card area may include an answer picture area 131b for displaying answer picture data and an answer text area 131c for displaying answer text data. In addition, the answer template may also display a question input area, a question and answer logo, etc.
[0221] Among them, Figure 5 Taking the illustrated question and answer page 701a as an example, the corresponding answer template 132a displays an answer card area, and the answer card area may include an answer image area 132b for displaying answer image data and an answer text area 132c for displaying answer text data. In addition, the answer template may also display overlapping styles, switching prompt components, sequence prompt information indicated by the answer order, related components (such as content reference components, historical question and answer viewing components, etc., here taking the content reference component "from XX and other platforms" as an example), question input area, etc.
[0222] Among them, Figure 5Taking the illustrated question and answer page 701b as an example, the corresponding answer template 133a displays an answer card area. The answer template 133a may include an answer image area 133b for displaying answer image data and an answer text area 133c for displaying answer text data. In addition, the answer template may also display overlapping styles, switching prompt components, preset point styles, related components (such as content reference components, historical question and answer viewing components, etc., here taking the content reference component "from XX and other platforms" as an example), question input area, etc.
[0223] Among them, Figure 4 Taking the illustrated question and answer page 50a' as an example, the corresponding answer template 134a, the answer card area may include a text box 134b, which can display text in various styles (such as title, subtitle, and text). In addition, the answer template may also display related components (such as content reference components, historical question and answer viewing components, etc., here taking the content reference component "from XX and other platforms" as an example), question input area, etc.
[0224] Among them, Fig.10b Taking the illustrated question and answer page 101a as an example, the corresponding answer template 135a, the answer card area therein may include a first sub-text area q11 and a second sub-text area q12 for displaying one or more answer text data, and may also display a comparison dimension area q13 (for displaying the relevant dimensions to be compared). The answer card area may also include a first sub-picture area q14 and a second sub-picture area q15 for displaying answer picture data. In addition, related components (such as content reference components, historical question and answer viewing components, etc., here taking the content reference component "from XX and other platforms" as an example) may also be displayed on the answer template. It can be understood that when there are multiple answer text data in the answer data (one answer text data is displayed on one answer card area), overlapping styles, switching prompt components, etc. may also be displayed.
[0225] Among them, Fig.10b Taking the illustrated question and answer page 102a as an example, the corresponding answer template 136a, the answer card area therein may include a first sub-text area q21 and a second sub-text area q22 for displaying answer text data. The answer card area may also include a first sub-picture area q23 and a second sub-picture area q24 for displaying answer picture data. In addition, related components (such as content reference components, historical question and answer viewing components, etc., here taking the content reference component as an example), question input areas, etc. may also be displayed on the answer template. It can be understood that when there are multiple answer text data in the answer data (one answer text data is displayed on one answer card area), overlapping styles, switching prompt components, etc. may also be displayed.
[0226] It can be understood that a question type can have multiple answer templates (i.e., visual card containers), the sizes and positions of the image areas and text areas displayed on different answer templates can be different, and the types of text displayed in different areas of the answer templates can be different. The above is only an example and is not limiting. It can be specifically configured by relevant personnel according to the actual scenario.
[0227] S205: In response to the answer search operation for the second question data, the question and answer page is updated. The specific implementation of step S205 can refer to the relevant description of the above embodiment, which will not be repeated here.
[0228] In an embodiment of the present application, different question and answer pages can be displayed according to the different question types of the question data (for example, when the question type is a preset question type, the question and answer page can display an answer text area and an answer image area). At this time, the answer text data corresponding to the question data (such as the first answer text data) can be displayed in the answer text area, and the answer image data matching the answer text data (such as the first image text data corresponding to the first answer text data) can be displayed in the image area. At the same time, different answer text data (such as the second answer text data) and corresponding answer image data (such as the second image text data) can be switched according to the data switching operation. In other words, the structure of the question and answer page can be different according to different question types, which can improve the richness and flexibility of the content displayed for the answers on the question and answer page. When new question data is input, the relevant question and answer data displayed on the question and answer page for the original question data can be directly updated to the relevant question and answer data displayed for the new question data. In this way, the display method of the question and answer data can be optimized, and the question and answer data can be immersively displayed on the question and answer page, reducing interference to users when viewing question data, and improving the efficiency and concentration of users in viewing question and answer data.
[0229] Based on the above description, the present application embodiment proposes a data display method, which can be executed by the electronic device mentioned above, specifically Figure 1 See the server shown. Fig.14 , Fig.14 A flow chart of a data display method provided in an embodiment of the present application. Fig.14 As shown, the process of the data display method in the embodiment of the present application may include the following:
[0230] S301: Receive a first answer search request.
[0231] In which, when responding to an answer search operation for the first question data, the terminal device may generate an answer search request carrying the first question data to instruct the server to search for an answer to the first question data.
[0232] S302: Search the answer to the first question data to obtain first answer data corresponding to the first question data.
[0233] Wherein, when the first answer data includes answer text data, it includes corresponding answer picture data. Wherein, when the answer text data includes first answer text data, the answer picture data includes first answer picture data associated with the first answer text data, and when the answer text data includes second answer text data, the answer picture data includes second answer picture data associated with the second answer text data.
[0234] It can be understood that the answer text data in the answer data can be one or more, and each answer text data can have corresponding answer image data. In other words, the answer data can have one or more, and one answer data includes one answer text data and one answer image data.
[0235] Among them, obtaining the first answer data corresponding to the first question data can be, when the first question data belongs to a target type question, performing a content search on the first question data to obtain published content associated with the first question data, and determining the answer text data corresponding to the first question data based on the published content, and obtaining the first answer text data and the second answer text data from the answer text data.
[0236] For example, the first question data may be input into a language model, the language model searches for published content, and generates answer text data corresponding to the first question data according to the published content. Alternatively, the first question data and the published content may be input into a language model, and the language model generates corresponding answer text data.
[0237] It is understood that when the language model determines that the first question data belongs to the target type question, answer text data that conforms to the answer format of the target type question can be generated. Alternatively, the classification model can determine that the first question data belongs to the target type question, and the first question data and the question type of the first question data are input into the language model to generate answer text data that conforms to the answer format of the target type question.
[0238] Therefore, the answer image data corresponding to the answer text data can be obtained by using the adapted image data generated by the first answer text data as the first answer image data in the answer image data; or, from the published content referenced by the first answer text data, obtaining the image data matching the first answer text data as the first answer image data in the answer image data. It can be understood that the second answer image data can be obtained in the same way.
[0239] The text graph model may generate the adapted image data for the first answer text data, or the image data matching the first answer text data may be determined from the image data of the published content referenced by the first answer text data.
[0240] Among them, obtaining the first answer data corresponding to the first question data can also be that, when the first question data is used to indicate the comparison between the first object and the second object, it is determined that the first question data belongs to a comparison question, a content search is performed on the first question data, and the published content associated with the first question data is obtained, and the first answer data corresponding to the first question data is determined based on the published content; the answer text data in the first answer data includes first object answer data for the first object, and second object answer data for the second object.
[0241] It will be appreciated that the first object answer data and the second object answer data are used to compare the first object and the second object.
[0242] Among them, if the first object answer data in the first answer text data includes the first subtext data, and the second object answer data includes the second subtext data corresponding to the first subtext data; the first subtext data and the second subtext data are used to obtain the first answer text data in the first answer data; the first subtext data and the second subtext data are used to compare the first object and the second object under relevant dimensions. If the first object is camera a and the second object is camera b, the first subtext data can be the relevant parameters of camera a, and the second subtext data can be the relevant parameters of camera b, and the first subtext data and the second subtext data can be used to compare camera a and camera b in terms of relevant parameters.
[0243] For example, the first question data may be input into a language model, the language model searches for published content, and generates first answer data corresponding to the first question data according to the published content. Alternatively, the first question data and the published content may be input into a language model, and the language model generates corresponding first answer data.
[0244] It can be understood that when the language model determines that the first question data belongs to a comparison question, the first answer data that conforms to the answer format of the comparison question can be generated. It can be understood that if the comparison question is used to compare more than two objects, the principle of displaying the template corresponding to the first answer data is the same.
[0245] Alternatively, the classification model may determine that the first question data belongs to a comparison type question, and input the first question data and the question type of the first question data into a language model.
[0246] The answer image data corresponding to the answer text data may be the generated adaptive image data, or the matching image data may be obtained from the referenced published content. For example, adaptive image data may be generated for the first subtext data, or matching image data may be obtained from the referenced published content through an image matching model.
[0247] The text graph model may generate the adapted image data for the first answer text data, or the image data matching the first answer text data (and question data) may be determined from the image data of the published content referenced by the first answer text data.
[0248] For example, the above is a method of generating answer data when text comparison is the main method. At this time, the image data corresponding to the first subtext data and the image data corresponding to the second subtext data can be generated adaptive image data (such as virtual icons generated for camera a and camera b).
[0249] Optionally, first object association data may be generated based on the first object, and second object association data may be generated based on the second object, and the first object association data and the second object association data may be used as answer text data (such as second answer text data) in the answer data; and picture data matching the first object association data (and the first question data) and picture data matching the second object association data may be obtained from the published content as answer picture data (such as second answer picture data) in the picture data.
[0250] For example, the above is a method for generating the first answer data when the image comparison is mainly used. At this time, the first object-related data (such as the first subtext data in the second answer image data) is the description data for the first object (such as the object name or object description of the first object, etc., illustratively, the first object is camera a, and the first object-related data is "camera a"). At this time, the second object-related data (such as the second subtext data in the second answer image data) is the description data for the second object (such as the object name or object description of the second object, etc., illustratively, the second object is camera b, and the second object-related data is "camera b").
[0251] It can be understood that when the first question data is comparison data, the above two methods can be used at the same time to obtain the first answer data, that is, the first answer data can simultaneously include answer data for comparison mainly based on text and answer data for comparison mainly based on pictures (the number of pictures to be compared obtained at this time can be a preset number, such as comparing three rounds of pictures), and the comparison order is not limited, for example, the comparison can be performed mainly based on text first and then mainly based on pictures, or the comparison can be performed mainly based on pictures first and then mainly based on text.
[0252] For example, the picture data corresponding to the first sub-text data may be picture data for the first object (e.g., if the first object is camera a, the corresponding picture data may be a picture of the appearance of camera a or a picture taken by camera a), and the picture data corresponding to the second sub-text data may be picture data for the second object (e.g., if the second object is camera b, the corresponding picture data may be a picture of the appearance of camera b or a picture taken by camera b).
[0253] The first answer data corresponding to the first question data may also be obtained by, when the first question data belongs to a text generation question, determining the subject indicated by the first question data and generating a subject text corresponding to the first question data as the first answer data.
[0254] For example, the first question data may be input into a language model, and the language model may determine the subject indicated by the first question data to generate a subject text. It is understood that when the language model determines that the first question data belongs to a text generation type question, answer data that conforms to the answer format of the text generation type question may be generated. Alternatively, the classification model may determine that the first question data belongs to a text generation type question, and the first question data and the question type of the first question data may be input into the language model.
[0255] For example, when the first question data belongs to the target type question, the first answer data can be generated by publishing the content. In this case, not only the first answer data but also the referenced publishing content, question type (or answer template used) can be returned. The answer template associated with the target type question includes Fig.13 The illustrated answer templates are 131a, 132a, and 133a.
[0256] When the first question data belongs to a comparison type question, the first answer data can be generated by publishing content. In this case, not only the first answer data but also the referenced publishing content, question type (or answer template used) can be returned. The answer templates associated with comparison type questions include Fig.13 The illustrated answer templates are 135a and 136a.
[0257] When the first question data belongs to a text generation type question, the first answer data (topic text) can be generated. In this case, not only the first answer data but also the language model used, the question type (or the answer template used) can be returned. The answer templates associated with text generation type questions include Fig.13 The illustrated answer template 134a.
[0258] S303. In response to the answer search request, return the first answer data.
[0259] It is understandable that the first answer data can be returned to the terminal device. The terminal device displays the question and answer page corresponding to the first question data through an answer template that matches the question type of the first question data. For example, when the question and answer page displays an answer text area and an answer image area, the answer text data in the first answer data is displayed through the answer text area on the question and answer page, and the answer image data in the first answer data is displayed through the answer image area on the question and answer page.
[0260] In addition, after performing a data switching operation on the question and answer page, the terminal device can switch to display the answer data through the answer text area and the answer picture area.
[0261] S304: Receive a second answer search request.
[0262] In which, the terminal device can generate an answer search request carrying the second question data in response to the answer search operation for the second question data, so as to instruct the server to search for the answer to the second question data.
[0263] S305: Search the answer to the second question data to obtain second answer data corresponding to the second question data.
[0264] The specific method for determining the second answer data is the same as the specific method for determining the first answer data.
[0265] S306. In response to the answer search request, return second answer data.
[0266] It is understandable that the second answer data can be returned to the terminal device so that the terminal device updates the question and answer page, such as updating and displaying the question and answer page corresponding to the second question data through an answer template that matches the question type of the second question data. At this time, the answer card area on the question and answer page is updated with the second answer data according to the matching answer template, and the question display area is updated with the second question data.
[0267] For example, Fig.15 As shown, Fig.15A schematic diagram of an interactive process for displaying data provided in an embodiment of the present application; wherein, S11, the terminal device generates a first answer search request carrying the first question data in response to an answer search operation for the first question data and sends the request to the server; S12, the server performs a content search on the first question data to obtain published content associated with the first question data; S13, the server generates first answer data corresponding to the first question data based on the question type and published content of the first question data; S14, the server returns the first answer data (such as the first answer text data and the first answer image data), the question type (or the answer template used), and the referenced published content to the terminal device; S15, the terminal device An answer card area matching the question type (or answer template) of the first question data is displayed on the page, and the first answer data (such as the first answer text data and the first answer image data) is displayed through the answer card area on the question and answer page; S16, the terminal device displays the content reference component according to the published content; S17, the terminal device generates a data switching request in response to the data switching operation on the question and answer page and sends it to the server; S18, the server returns the first answer data (such as the second answer text data and the second answer image data) for switching (or may also include the answer template to be used) to the terminal device; S19, the terminal device switches to display the second answer data through the answer text area on the answer card area of the question and answer page The terminal device generates a content acquisition request and sends it to the server in response to the trigger operation for the published content; S112. The server returns the content details information of the published content to the terminal device; S113. The terminal device displays the content details page of the published content through the content details information; S114. The terminal device generates a content acquisition request carrying the second question data in response to the answer search operation for the second question data. The second answer search request is sent to the server; S115. The server performs a content search on the second question data to obtain the published content associated with the second question data; S116. The server generates second answer data corresponding to the second question data based on the question type and the published content of the second question data; S117. The server returns the second answer data, the question type (or the answer template used), and the referenced published content to the terminal device; S118. The terminal device updates and displays the answer card area that matches the question type (or answer template) of the second question data on the question and answer page, and updates and displays the second answer data through the answer card area on the question and answer page, and updates and displays the second question data through the question display area.
[0268] In an embodiment of the present application, the structure of the question and answer page can be different according to the type of question, which can improve the richness and flexibility of the content displayed for the answers on the question and answer page. When new question data is input, the relevant question and answer data displayed on the question and answer page for the original question data can be directly updated to the relevant question and answer data displayed for the new question data, thereby optimizing the display method of the question and answer data, realizing an immersive display of the question and answer data on the question and answer page, reducing interference to users when viewing question data, and improving the efficiency and concentration of users in viewing question and answer data.
[0269] See also Fig.16 , Fig.16 This is a schematic diagram of the structure of a data display device provided in an embodiment of the present application. It should be noted that: Fig.16 The data display device shown is used to execute the present application Figure 3 , Fig. 9 and Fig.14 For the convenience of explanation, only the part related to the embodiment of the present application is shown, and the specific technical details are not disclosed. Figure 3 , Fig. 9 and Fig.14 The data display device 900 may include: a data display module 901 and a data update module 902.
[0270] The data display module 901 is used to display a question-and-answer page; the question-and-answer page includes a question display area, an answer card area, and a question input area; the question display area is used to display first question data, and the answer card area is used to display first answer data obtained by searching for answers to the first question data;
[0271] Data update module 902 is used to update the question and answer page in response to an answer search operation for the second question data; wherein the question data in the question display area of the updated question and answer page is switched from the first question data to the second question data, and the answer data in the answer card area of the updated question and answer page is switched from the first answer data to the second answer data; the second answer data is the answer data obtained by searching for the answer to the second question data; the second question data is the input question data entered through the question input area, or is obtained from the extended question data expanded from the first question data.
[0272] The data updating module 902, when used to update the question and answer page in response to the answer search operation for the second question data, is specifically used to:
[0273] In response to a question input operation for the question input area, searching for answers to the input question data corresponding to the question input operation, and updating the question and answer page; or,
[0274] In response to the question expansion operation, a question expansion area is displayed on the question and answer page, and expanded question data is displayed in the question expansion area;
[0275] In response to the extended question operation, an answer search is performed on the target extended question data corresponding to the extended question operation, and the question and answer page is updated.
[0276] The data updating module 902 is used to respond to the extended question operation and search for answers to the target extended question data corresponding to the extended question operation, specifically to:
[0277] In response to a first extended question operation on the reference question data, searching for answers to the reference question data; the reference question data is the target extended question data; or,
[0278] In response to a second extended question operation for reference question data, an answer search is performed on the combined question data corresponding to the reference question data; the combined question data is the target extended question data; the combined question data is the question data obtained by combining the reference question data and the superimposed question data indicated by the second extended question operation; the superimposed question data and the reference question data both refer to the question data in the extended question data.
[0279] The data updating module 902 is used to display the question extension area on the question and answer page in response to the question extension operation, and to display the extended question data in the question extension area, specifically for:
[0280] In response to the first question expansion operation, a first question expansion area is displayed on the question-and-answer page, and first expanded question data corresponding to the first question expansion operation is displayed in the first question expansion area; the first expanded question data refers to question data obtained by expanding the first question data under at least one question dimension; or,
[0281] In response to a second question expansion operation, a second question expansion area is displayed on the question and answer page, and second extended question data corresponding to the second question expansion operation is displayed in the second question expansion area; the first answer data includes answer text data and answer picture data; the answer card area includes an answer text area for displaying the answer text data and an answer picture area for displaying the answer picture data; when the second question expansion operation is a trigger operation for the answer text area, the second extended question data is question data obtained by expanding the answer text data; when the second question expansion operation is a trigger operation for the answer picture area, the second extended question data is question data obtained by expanding the answer picture data.
[0282] Among them, a content reference component for the published content referenced by the first answer data is displayed on the question and answer page;
[0283] The data display module 901 is also used for:
[0284] In response to a triggering operation of the content reference component, displaying the published content on the question and answer page;
[0285] In response to a trigger operation on published content, a content detail page of the published content is displayed.
[0286] The data display module 901 is also used for:
[0287] In response to the historical question and answer viewing operation, multiple answer card areas are displayed on the question and answer page; one answer card area corresponds to historical answer data of one historical question data; the historical question data refers to question data for which an answer search has been performed;
[0288] In response to the card area trigger operation, the question data in the question display area of the Q&A page is switched from the first question data to the historical question data corresponding to the answer card area indicated by the card area trigger operation, and the answer card area on the Q&A page is switched to the answer card area indicated by the card area trigger operation.
[0289] Among them, the first answer data includes answer text data and answer picture data; the answer card area includes an answer text area for displaying answer text data and an answer picture area for displaying answer picture data; the answer text data includes first answer text data and second answer text data; the answer picture data includes first answer picture data associated with the first answer text data and second answer picture data associated with the second answer text data.
[0290] When the data display module 901 is used to display the question-and-answer page, it is specifically used to:
[0291] When displaying the question and answer page, displaying the first answer text data in the answer text area, and displaying the first answer picture data in the answer picture area;
[0292] In response to the data switching operation on the question and answer page, the answer text data in the answer text area is switched from the first answer text data to the second answer text data, and the answer picture data in the answer picture area is switched from the first answer picture data to the second answer picture data.
[0293] Wherein, when the first question data belongs to a comparison type question, the first answer text data includes first sub-text data and second sub-text data; the first answer picture data includes first sub-picture data associated with the first sub-text data, and second sub-picture data associated with the second sub-text data; the answer text area includes a first sub-text area and a second sub-text area for comparison; the answer picture area includes a first sub-picture area and a second sub-picture area for comparison;
[0294] When the data display module 901 is used to display the first answer text data in the answer text area and the first answer picture data in the answer picture area, it is specifically used to:
[0295] Displaying the first subtext data in the first subtext area, and displaying the second subtext data in the second subtext area;
[0296] The first sub-picture data is displayed in the first sub-picture area, and the second sub-picture data is displayed in the second sub-picture area.
[0297] The data display module 901 is also used for:
[0298] In response to a data viewing operation for the first answer data, a plurality of answer card areas are displayed on the question and answer page; one answer card area is used to display one answer text data in the first answer data and answer picture data associated with the answer text data;
[0299] In response to the card area triggering operation, the answer card area on the question and answer page is switched to be displayed as the answer card area indicated by the card area triggering operation.
[0300] The data display module 901, when used to display the question-and-answer page, is specifically used to:
[0301] Displaying a question page; the question page includes a question input area, and / or, when target historical question data exists within the target time period, the question page includes historical extended question data obtained by expanding the target historical question data under at least one question dimension;
[0302] In response to an answer search operation for first question data on a question page, a question and answer page is displayed; the first question data is input question data input through a question input area, or is obtained from historical extended question data.
[0303] The specific implementation of the data display module and the data update module can be found in the description of the above embodiments, and will not be described in detail here. It should be understood that the description of the beneficial effects obtained by adopting the same method will not be described in detail either.
[0304] See also Fig.17 , Fig.17 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.17 As shown, the electronic device 1100 includes: at least one processor 1101 and a memory 1102. Optionally, the electronic device may further include a network interface. Among them, the processor 1101, the memory 1102 and the network interface can exchange data, the network interface is controlled by the processor 1101 for sending and receiving messages, the memory 1102 is used to store computer programs, the computer programs include program instructions, and the processor 1101 is used to execute the program instructions stored in the memory 1102. Among them, the processor 1101 is configured to call the program instructions to execute the above method. The memory 1102 may include a volatile memory (volatile memory), such as a random-access memory (random-access memory, RAM); the memory 1102 may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a solid-state drive (solid-state drive, SSD), etc.; the memory 1102 may also include a combination of the above-mentioned types of memory.
[0305] The processor 1101 may be a central processing unit (CPU). In one embodiment, the processor 1101 may also be a graphics processing unit (GPU). The processor 1101 may also be a combination of a CPU and a GPU. The processor 1101 may be used to call the device control application stored in the memory 1102 to execute the above Figure 3 , Fig. 9 and Fig.14 The description of the data display method in the corresponding embodiment can also be performed as described above. Fig.16 The description of the data display device in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here.
[0306] In a specific implementation, the device, processor, memory, etc. described in the embodiments of the present application can execute the implementation described in the above method embodiments, and can also execute the implementation described in the embodiments of the present application, which will not be repeated here.
[0307] A computer (readable) storage medium is also provided in the embodiment of the present application, and the computer storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by the processor, the processor can execute some or all of the steps performed in the above method embodiment. Optionally, the computer storage medium can be volatile or non-volatile. The computer readable storage medium can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, etc.; the data storage area can store data created according to the use of the blockchain node, etc.
[0308] An embodiment of the present application provides a computer program product, which may include a computer program. When the computer program is executed by a processor, it can implement some or all of the steps in the above method, which are not described in detail here.
[0309] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0310] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer storage medium, which can be a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0311] The above disclosure is only part of the embodiments of the present application, which certainly cannot be used to limit the scope of rights of the present application. Ordinary technicians in this field can understand that all or part of the processes of implementing the above embodiments and equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A data display method, characterized in that: The method comprises: Display a question and answer page; the question and answer page includes a question display area, an answer card area, and a question input area; the question display area is used to display first question data, and the answer card area is used to display first answer data obtained by searching for answers to the first question data; In response to an answer search operation for second question data, the question and answer page is updated; wherein the question data in the question display area of the updated question and answer page is switched from the first question data to the second question data, and the answer data in the answer card area of the updated question and answer page is switched from the first answer data to the second answer data; the second answer data is answer data obtained by searching for answers to the second question data; the second question data is input question data input through the question input area, or is obtained from extended question data expanded from the first question data.
2. The method according to claim 1, characterized in that In response to the answer search operation for the second question data, updating the question and answer page includes: In response to a question input operation for the question input area, searching for answers to the input question data corresponding to the question input operation, and updating the question and answer page; or, In response to a question expansion operation, displaying a question expansion area on the question and answer page, and displaying the expanded question data in the question expansion area; In response to the extended question operation, an answer search is performed on the target extended question data corresponding to the extended question operation, and the question and answer page is updated.
3. The method according to claim 2, characterized in that In response to the extended question operation, searching for answers to target extended question data corresponding to the extended question operation includes: In response to a first extended question operation on reference question data, searching for answers to the reference question data; the reference question data is the target extended question data; or, In response to a second extended question operation for the reference question data, an answer search is performed on the combined question data corresponding to the reference question data; the combined question data is the target extended question data; the combined question data is the question data obtained by combining the reference question data and the superimposed question data indicated by the second extended question operation; the superimposed question data and the reference question data both refer to the question data in the extended question data.
4. The method according to claim 2, characterized in that: In response to the question expansion operation, displaying a question expansion area on the question and answer page, and displaying the expanded question data in the question expansion area, comprises: In response to the first question expansion operation, a first question expansion area is displayed on the question-and-answer page, and first expanded question data corresponding to the first question expansion operation is displayed in the first question expansion area; the first expanded question data refers to question data obtained by expanding the first question data under at least one question dimension; or, In response to a second question expansion operation, a second question expansion area is displayed on the question and answer page, and second extended question data corresponding to the second question expansion operation is displayed in the second question expansion area; the first answer data includes answer text data and answer picture data; the answer card area includes an answer text area for displaying the answer text data and an answer picture area for displaying the answer picture data; when the second question expansion operation is a trigger operation for the answer text area, the second extended question data is question data obtained by expanding the answer text data; when the second question expansion operation is a trigger operation for the answer picture area, the second extended question data is question data obtained by expanding the answer picture data.
5. The method according to claim 1, characterized in that A content reference component for the published content referenced by the first answer data is displayed on the question and answer page; The method further comprises: In response to a triggering operation of the content reference component, displaying the published content on the question-and-answer page; In response to a trigger operation on the published content, a content detail page of the published content is displayed.
6. The method according to claim 1, characterized in that The method further comprises: In response to the historical question and answer viewing operation, a plurality of answer card areas are displayed on the question and answer page; one answer card area corresponds to historical answer data of one historical question data; the historical question data refers to question data for which an answer search has been performed; In response to a card area trigger operation, the question data in the question display area of the Q&A page is switched from the first question data to historical question data corresponding to the answer card area indicated by the card area trigger operation, and the answer card area on the Q&A page is switched to the answer card area indicated by the card area trigger operation.
7. The method according to claim 1, characterized in that The first answer data includes answer text data and answer picture data; the answer card area includes an answer text area for displaying the answer text data and an answer picture area for displaying the answer picture data; the answer text data includes first answer text data and second answer text data; the answer picture data includes first answer picture data associated with the first answer text data and second answer picture data associated with the second answer text data; The display of the question and answer page includes: When displaying the question and answer page, displaying the first answer text data in the answer text area, and displaying the first answer picture data in the answer picture area; In response to a data switching operation on the question and answer page, the answer text data in the answer text area is switched from the first answer text data to the second answer text data, and the answer picture data in the answer picture area is switched from the first answer picture data to the second answer picture data.
8. The method according to claim 7, characterized in that When the first question data belongs to a comparison type question, the first answer text data includes first sub-text data and second sub-text data; the first answer picture data includes first sub-picture data associated with the first sub-text data, and second sub-picture data associated with the second sub-text data; the answer text area includes a first sub-text area and a second sub-text area for comparison; the answer picture area includes a first sub-picture area and a second sub-picture area for comparison; The step of displaying the first answer text data in the answer text area and the first answer picture data in the answer picture area comprises: displaying first subtext data in the first subtext area, and displaying second subtext data in the second subtext area; The first sub-picture data is displayed in the first sub-picture area, and the second sub-picture data is displayed in the second sub-text area.
9. The method according to claim 7, characterized in that: The method further comprises: In response to a data viewing operation for the first answer data, a plurality of answer card areas are displayed on the question and answer page; one answer card area is used to display one answer text data in the first answer data and answer picture data associated with the answer text data; In response to a card area trigger operation, the answer card area on the question and answer page is switched to be displayed as the answer card area indicated by the card area trigger operation.
10. The method according to claim 1, characterized in that The display of the question and answer page includes: Displaying a question page; the question page includes a question input area, and / or, when target historical question data exists within a target time period, the question page includes historical extended question data obtained by expanding the target historical question data under at least one question dimension; In response to an answer search operation for the first question data on the question page, the question and answer page is displayed; the first question data is input question data input through the question input area, or is obtained from the historical extended question data.
11. A data display device, characterized in that: The device comprises: A data display module, used to display a question and answer page; the question and answer page includes a question display area, an answer card area, and a question input area; the question display area is used to display first question data, and the answer card area is used to display first answer data obtained by searching for answers to the first question data; A data update module, used for updating the question and answer page in response to an answer search operation for second question data; wherein the question data in the question display area of the updated question and answer page is switched from the first question data to the second question data, and the answer data in the answer card area of the updated question and answer page is switched from the first answer data to the second answer data; the second answer data is the answer data obtained by searching for an answer to the second question data; the second question data is input question data input through the question input area, or is obtained from extended question data expanded from the first question data.
12. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 10.
14. A computer program product, characterized in that The method comprises a computer program, wherein the computer program comprises program instructions, and when the program instructions are executed by a processor, the method according to any one of claims 1 to 10 is implemented.
Citation Information
Cited By
Question and answer processing method and device
CN120687181A