Information query method and apparatus, and electronic device
By determining the information collection associated with the session in the instant messaging tool, obtaining and displaying the query results, the problem of inconvenient query caused by too many data tables is solved, and the query efficiency and user experience are improved.
Patent Information
- Application Number
- PCT/CN2024/082729
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-22
- Filing Date
- 2024-03-20
- Publication Date
- 2024-09-26
AI Technical Summary
In a session of an instant messaging tool, when the number and content of data tables are too large, information query becomes inconvenient and difficult to complete efficiently.
By determining the information collection associated with the session, query results are obtained and displayed in the session, narrowing the query scope and improving query efficiency.
It achieves more efficient and convenient information query and improves user experience, especially in instant messaging sessions, where relevant data can be easily queried.
Smart Images

Figure CN2024082729_26092024_PF_FP
Abstract
Description
Information query method, device and electronic equipment
[0001] This application claims priority to the Chinese invention patent application entitled “Information Query Method, Device and Electronic Device” filed on March 22, 2023, with application number 202310287308.8. The entire contents of that application are incorporated by reference into this application. Technical Field
[0002] The present disclosure relates to the field of computer technology, and in particular to an information query method, device, and electronic device. Background Art
[0003] With the continuous development of terminal and network technologies, instant messaging tools are increasingly used in people's lives and work. People can communicate with friends or group members in instant messaging conversations. Currently, if members of a conversation need to query and share data, they can usually share the data table to be queried with the conversation, and the user can open the data table to query the data. However, if the number of shared data tables and the content are too large, it will cause inconvenience to query the data. Currently, a more efficient and convenient information query method is needed.
[0004] Summary of the Invention
[0005] The present disclosure provides an information query method, device, and electronic device.
[0006] According to a first aspect, there is provided an information query method, the method comprising:
[0007] In response to an information query request triggered by a first user in a first session, determining a first information set associated with the first session; wherein the first user is a session member of the first session, and the first information set includes information outside the first session;
[0008] Obtaining query results from the first information set according to the information query request;
[0009] The query result is displayed in the first session.
[0010] According to a second aspect, there is provided an information query method, the method comprising:
[0011] Receive a first query request; the first query request comes from a first query interface, and the first query interface is associated with a first online data table;
[0012] determining, based on the first query request, a first query range in the first online data table; the first query range being different from or the same as a second query range, the second query range being a visible range of the first online data table to a user who sends the first query request;
[0013] The query result is obtained from the first query scope and output to the first query interface.
[0014] According to a third aspect, an information query device is provided, the device comprising:
[0015] a determining module configured to determine, in response to an information query request triggered by a first user in a first session, a first information set associated with the first session; wherein the first user is a session member of the first session, and the first information set includes information outside the first session;
[0016] an acquisition module, configured to acquire a query result from the first information set according to the information query request;
[0017] A display module is used to display the query result in the first session.
[0018] According to a fourth aspect, an information query device is provided, the device comprising:
[0019] A receiving module, configured to receive a first query request; the first query request comes from a first query interface, and the first query interface is associated with a first online data table;
[0020] a determining module, configured to determine, based on the first query request, a first query range in the first online data table; the first query range being different from or the same as a second query range, the second query range being a visible range of the first online data table to a user who sends the first query request;
[0021] The output module is configured to obtain query results from the first query scope and output the results to the first query interface.
[0022] According to a fifth aspect, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of the first aspect or the second aspect is implemented.
[0023] According to the sixth aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in any one of the first aspect or the second aspect is implemented.
[0024] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0026] FIG1 is a schematic diagram of an exemplary system architecture for applying an embodiment of the present disclosure;
[0027] FIG2 is a flow chart of an information query method according to an exemplary embodiment of the present disclosure;
[0028] FIG3 is a schematic diagram of an online data table according to an exemplary embodiment of the present disclosure;
[0029] FIG4 is a flow chart of another information query method according to an exemplary embodiment of the present disclosure;
[0030] FIG5 is a block diagram of an information query method according to an exemplary embodiment of the present disclosure;
[0031] FIG6 is a block diagram of another information query method according to an exemplary embodiment of the present disclosure;
[0032] FIG7 is a schematic block diagram of an electronic device provided by some embodiments of the present disclosure;
[0033] FIG8 is a schematic block diagram of another electronic device provided by some embodiments of the present disclosure;
[0034] FIG9 is a schematic diagram of a storage medium provided by some embodiments of the present disclosure. DETAILED DESCRIPTION
[0035] To help those skilled in the art better understand the technical solutions in this specification, the following will provide a clear and complete description of the technical solutions in the embodiments of this specification, in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. All other embodiments derived by those skilled in the art based on the embodiments in this specification without creative effort shall fall within the scope of protection of this specification.
[0036] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
[0037] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms "a," "the," and "the" used in this disclosure are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0038] It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining."
[0039] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:
[0040] Embodiments of the present disclosure provide an information query method and apparatus. Based on an information query request triggered by a first user in a first conversation, the method determines a first information set associated with the first conversation. Based on the information query request, the method retrieves query results from the first information set and displays the query results in the first conversation. This method eliminates some candidate data based on the conversation, narrowing the scope of data query, improving data query efficiency, and enhancing the user experience.
[0041] See FIG1 , which is a schematic diagram of an exemplary system architecture applying an embodiment of the present disclosure.
[0042] As shown in FIG1 , system architecture 100 may include terminal devices 101 and 102, a network 103, and a server 104. It should be understood that the number or types of terminal devices, networks, and servers in FIG1 are merely illustrative. Any number or type of terminal devices, networks, and servers may be used as needed.
[0043] The network 103 is used to provide a medium for communication links between terminal devices and servers. The network 103 can include various connection types, such as wired or wireless communication links or optical fiber cables.
[0044] The terminal devices 101 and 102 can interact with the server via the network 103 to receive or send requests or information, etc. The terminal devices 101 and 102 can be various electronic devices, including but not limited to smart phones, tablet computers, smart wearable devices, and personal digital assistants, etc.
[0045] The server 104 can store, analyze, and process the received data, and can also send control commands or requests to terminal devices or other servers. The server can provide services in response to user service requests. It is understood that a server can provide one or more services, and the same service can be provided by multiple servers.
[0046] Based on the system architecture shown in Figure 1, in an embodiment of the present disclosure, after a user triggers a preset information query request in a session, the terminal device 101 or the terminal device 102 can send a preset information query request to the server 104 through the network 103. After receiving the above preset information query request, the server 104 can determine an information set associated with the session, and obtain a query result from the information set according to the above preset information query request, and return the query result to the terminal device 101 or the terminal device 102, so that the terminal device 101 or the terminal device 102 displays the query result in the session.
[0047] The present disclosure will be described in detail below with reference to specific embodiments.
[0048] Figure 2 is a flow chart of an information query method according to an exemplary embodiment. The execution subject of this method can be implemented as any terminal device, platform, server or device cluster with computing and processing capabilities. The method includes the following steps:
[0049] As shown in FIG. 2 , in step 201 , in response to a preset information query request triggered by a first user in a first conversation, a first information set associated with the first conversation is determined.
[0050] In this embodiment, the first session can be a window for transmitting messages between users in an instant messaging client. The first session can be a one-on-one chat session between two users or a group session between multiple users. After logging into the instant messaging client, a user can send messages to friends / group members in the first session. The first user is a session member of the first session. The first user can be the administrator of the first session, a member designated by the administrator, or any ordinary member of the first session. It is understood that this embodiment does not limit the specific identity of the first user in the first session.
[0051] In one implementation, the preset information query request triggered by the first user in the first conversation may be a conversation message sent by the first user in the first conversation containing preset characters. The conversation message may also include information such as a keyword used for the query. For example, the preset characters may include characters that refer to the first application, and the conversation message may include the characters that refer to the first application followed by information such as the keyword used for the query. The first application may be, for example, an application such as a chatbot.
[0052] In another implementation, the preset information query request triggered by the first user in the first session may also be an information query request entered on a page associated with a preset control triggered in the first session. For example, the preset control may be a control for querying information in a session. The first user may trigger the preset control in the first session, causing the instant messaging client to display the page associated with the preset control. The first user may enter an information query request including keywords on the page associated with the preset control.
[0053] In this embodiment, data queries can be managed by the instant messaging server corresponding to the instant messaging client, or by other servers connected to the instant messaging server. In the server for managing data queries, at least one information set is stored (for example, the information set can be an online data table), and each information set corresponds to a corresponding object (for example, each online data table can correspond to an application such as a chatbot, or can correspond to a preset control). The target information set is an information set bound to the corresponding object corresponding to the first session (for example, a chatbot added in the first session), and the target information set includes a first information set (for example, the first information set can be at least a portion of a subtable in an online data table, or the first information set can also be information in some rows or columns of at least a portion of a subtable in the first online data table). The first information set is associated with the first session.
[0054] It should be noted that the first information set includes information outside the first session. That is, in this disclosure, querying the first information set is distinct from querying messages within a session. Information outside the first session may include non-session messages. For example, this information outside the first session may include, but is not limited to, business data that members of the first session may need to query in their daily work. This business data is stored in systems other than the communication system in which the session resides.
[0055] In some embodiments of the present disclosure, the target information set may also include a second information set. The first information set and the second information set may be different or partially identical. The second information set corresponds to a second session, which is different from the first session. For example, the second information set may be a subtable in an online data table that is different from the first information set. The second information set may include, for example, but is not limited to, certain types of business data for query by session members of the second session.
[0056] In some embodiments, the target information set may also include configuration information, which may include the correspondence between different sessions and different information sets in the target information set. For example, session A is associated with information set a, session B is associated with information set b, and session C is associated with information set c. Then, the configuration information included in the target information set may record that session A has a correspondence with information set a, session B has a correspondence with information set b, and session C has a correspondence with information set c, and information sets a, b, and c are all information sets in the target information set. The configuration information may further include one or more of the following: configuration information on whether the query results corresponding to the session can be forwarded, and configuration information on the visible range of the query results corresponding to the session.
[0057] As shown in Figure 3, table 301 can be a sub-table in an online data table, which records configuration information corresponding to different sessions, wherein the first row of the sub-table is the field name included in the sub-table, and from the second row onwards are the configuration records corresponding to different sessions. The data query permission of any session can be set through the configuration record corresponding to the session. For example, the sub-table that can be queried in the session (that is, the correspondence between the session and the sub-table) can be set through the field value of the field named "Queryable Data Table ID". Whether the query results can be forwarded to other sessions can be set through the field value of the field named "Results can be forwarded". The visible range of the query results can be set through the field value of the field named "Visible only to the queryer", etc.
[0058] In some embodiments, if the information set used to store the data to be queried is an online data table, preset permissions can be enabled in advance for the online data table. If the preset permissions are not enabled for the online data table, only query permissions for some sub-tables in the online data table are set for the session. For example, if session D has query permissions for sub-table d in the online data table, then all session members of session D have query permissions for sub-table d through session D. If the preset permissions are enabled for the online data table, query permissions for some sub-tables in the online data table can be set for users and sessions. That is, for a sub-table, if both the session and the members of the session have query permissions for the sub-table, the members of the session can query the sub-table through the session. However, if only the session has query permissions for the sub-table, or only the members of the session have query permissions for the sub-table, the members of the session cannot query the sub-table through the session. For example, session D has query permission on sub-table d in the online data table, while session E does not have query permission on sub-table d. At the same time, session member L, which belongs to both session D and session E, has query permission on sub-table d, while session member K, which belongs to session D, does not have query permission on sub-table d. In this case, session member L can query sub-table d through session D, but session member L cannot query sub-table d through session E, and session member K cannot query sub-table d through session D.
[0059] Therefore, after determining the first online data table associated with the preset information query request, it is possible to first determine whether the preset permission is enabled for the first online data table. If the preset permission is enabled, a target identifier can be obtained. This target identifier can include the identifier of the first user who triggered the preset information query request in the first session and the identifier of the first session. Then, based on the target identifier, the subtable corresponding to the target identifier can be searched in the first online data table as the first information set. If the preset permission is not enabled, the permission configuration information for the first session is obtained, and based on this permission configuration information, the subtable corresponding to the first session in the first online data table is determined as the first information set.
[0060] In step 202, according to the information query request, a query result is obtained from the first information set, and in step 203, the query result is displayed in the first session.
[0061] In this embodiment, the information query request may include, for example, a keyword for the query. A query result may be retrieved from the first information set based on the keyword and displayed in the first session. In one implementation, the query result may be displayed to all session members of the first session. In another implementation, the query result may be displayed to a subset of session members of the first session, where the subset of session members includes the first user who triggered the preset information query request in the first session and at least one other user. In yet another implementation, the query result may be displayed only to the first user who triggered the preset information query request in the first session.
[0062] The present disclosure provides an information query method that determines a first information set associated with the first session through an information query request triggered by a first user in a first session, obtains query results from the first information set based on the information query request, and displays the query results in the first session. This method can exclude some candidate data based on the session, narrowing the scope of data query, improving the efficiency of data query, and enhancing the user experience. For example, in a scenario where an instant messaging session group is the main collaborative communication method, a specific group is usually used as a communication work group for a specific business. For example, if group A is used as a communication and collaboration group for selling product B, then a data record set X related to product B can be associated with group A, so that members of group A can easily query the information in data record X in group A.
[0063] Figure 4 is a flow chart of another information query method according to an exemplary embodiment. The execution subject of this method can be implemented as any terminal device, platform, server or device cluster with computing and processing capabilities, and the method includes the following steps:
[0064] As shown in FIG4 , in step 401 , a first data query request is received from a first query interface associated with a first online data table, and in step 402 , a first data query range in the first online table is determined based on the first query request.
[0065] In one implementation, the first query interface may be located in a first session, and the first query request includes a session identifier of the first session. Determining a first query range in the first online data table based on the first query request includes determining the first query range based on content in a configuration subtable in the first online data table. The configuration subtable stores a correspondence between the session identifier and the query range.
[0066] For example, the first query interface can be a first chatbot, which is added as a session member of a first conversation. The first chatbot is associated with a first online data table, which stores the data to be queried. The first query request can be a request sent by a user in the first conversation via a message mentioning the first chatbot. The first query request can include the session identifier of the first conversation, keywords used for the query, and the like. Specifically, the configuration subtable in the first online data table stores the correspondence between the session identifier and the data query range. Therefore, the first data query range can be determined based on the contents of the configuration subtable in the first online data table and the session identifier of the first conversation included in the first query request. That is, the data query range corresponding to the session identifier of the first conversation is searched from the contents of the configuration subtable and used as the first data query range.
[0067] In another implementation, the first query interface is located on a first page, the first query request includes a user identifier of a user who entered the first query request on the first page, and determining a first query range in the first online data table based on the first query request includes determining the first query range using content in a configuration subtable in the first online data table. The configuration subtable stores a correspondence between the user identifier and the query range.
[0068] For example, the first page may be a page for querying data, and the first query interface may be a link or control within the first page. The first query request may be a request entered by a user via the first query interface, and the first query request may include the user identifier of the user who entered the first query request on the first page. Specifically, the configuration subtable within the first online data table stores a correspondence between user identifiers and data query ranges. Therefore, the first data query range can be determined based on the contents of the configuration subtable within the first online data table and the user identifier included in the first query request. Specifically, the data query range corresponding to the user identifier is searched within the contents of the configuration subtable and used as the first data query range.
[0069] It should be noted that the first data query range can be different from or the same as the second query range. The second query range is the visible range of the first online data table to the user who sends the first query request, that is, the second query range refers to the data query range determined based on the table itself for the user's authority. The first data query range is a data query range configured to meet the data query needs in a specific business scenario. For example, user A originally has query permissions for sub-tables a, b, and c in the online data table B (that is, the second query range), but in a specific business work scenario, user A only needs to query the data in sub-table a. In this case, through the aforementioned solution of the present disclosure, a query interface can be configured for user A, through which only the data in sub-table a (the first query range) can be queried, thereby improving the efficiency of data query.
[0070] In step 403, query results are obtained from the first data query range and output to the first query interface.
[0071] In this embodiment, based on the keyword carried in the first query request, a query result may be obtained from the first data query range and output to the first query interface.
[0072] In this embodiment, a first query range in the first online form is determined through a first query request from the first query interface, and query results are obtained from the first query range and output to the first query interface. This allows for excluding some candidate data as needed, thereby narrowing the data query range, improving data query efficiency, and enhancing user experience.
[0073] It should be noted that although the operations of the methods of the embodiments of the present disclosure are described in a specific order in the above embodiments, this does not require or imply that these operations must be performed in this specific order, or that all of the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flowcharts can be performed in a different order. Additionally or alternatively, certain steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.
[0074] The present disclosure is schematically illustrated below with reference to a complete and specific application example.
[0075] The application scenario may be: a process in which user X queries data through a group session G. User X is a session member of the group session G, and the session members of the group session G may also include user Y and the like.
[0076] Specifically, user Y can first add chatbot R as a session member of group session G. After adding chatbot R as a session member of group session G, the server can create a configuration record for group G in the online data table r associated with chatbot R. This configuration record can set one or more subtables in online data table r associated with group session G. Members of group session G can query these one or more subtables through group session G. For example, subtable g can be set as the subtable associated with group session G. Subtable g, for example, stores product sales data for the previous quarter. This product sales data may include information such as product category, product name, sales quantity, and sales price.
[0077] User X can then query sub-table G or retrieve data from sub-table G through group conversation G. For example, if user X wants to check the sales figures for popular science books last quarter, they can send a message mentioning chatbot R in group conversation G. Specifically, the message could be "@chatbotRpopularsciencebooks". Based on this message, the terminal device can transmit an information query request to the server. The information query request may include, but is not limited to, the identifier of chatbot R, the identifier of user X, and the identifier of group conversation G.
[0078] The server can find the online data table r bound to the chatbot R based on the identifier of the group session G, find the configuration record created for the group session G in the online data table r based on the identifier of the group session G, and determine, based on the configuration record, that the subtable g in the online data table r is associated with the group session G. In one case (for example, when the online data table r does not have advanced permissions enabled), the server can directly retrieve the data related to the keyword "popular science books" from the subtable g as the query result, or retrieve the data of some fields in the data related to the keyword as the query result, and return the query result to the terminal device.
[0079] In another scenario (for example, when online data table r has advanced permissions enabled), the user's ID can be used to determine whether user X has permission to query sub-table g. If user X has permission to query sub-table g, the query results are retrieved from sub-table g based on the keyword "popular science books" or data from some fields of the data related to the keyword as the query results. The query results are then returned to the terminal device. After receiving the query results, the terminal device can send a conversation message containing the query results in group conversation G via chatbot R.
[0080] It should be noted that user X is also a member of group session T. The subtable associated with group session T in online data table r is subtable t. User X can query subtable t or query data from subtable t through group session T, but user X cannot query subtable g or query data from subtable g through group session T.
[0081] Any member of the group conversation G can remove the chatbot R from the conversation. After the chatbot R is removed from the conversation, the association between the sub-table g and the group conversation G can be disassociated. For example, the configuration record created for the group conversation G in the online data table r can be deleted.
[0082] Corresponding to the aforementioned information query method embodiment, the present disclosure also provides an embodiment of an information query device.
[0083] As shown in FIG5 , FIG5 is a block diagram of an information query device according to an exemplary embodiment of the present disclosure. The device may include: a determination module 501 , an acquisition module 502 and a display module 503 .
[0084] The determining module 501 is configured to determine a first information set associated with the first session in response to an information query request triggered by a first user in a first session, wherein the first user is a session member of the first session, and the first information set includes information outside the first session.
[0085] The acquisition module 502 is configured to acquire a query result from the first information set according to the information query request.
[0086] The display module 503 is configured to display the query result in the first session.
[0087] In some embodiments, the preset information query request includes: a conversation message containing preset characters sent in the first conversation, or triggering a preset control in the first conversation and inputting the information query request in a page associated with the preset control.
[0088] In other implementations, the first information set belongs to a target information set, the target information set further includes a second information set, the first information set is different from the second information set, and the second information set corresponds to the second session.
[0089] In some other implementations, the target information set also includes configuration information, and the configuration information may include: a correspondence between the session and the information set in the target information set.
[0090] In other implementations, the configuration information may further include one or more of the following: configuration information on whether the query result corresponding to the session can be forwarded, and configuration information on the visible range of the query result corresponding to the session.
[0091] In other embodiments, the determination module 501 is configured to: in response to the first user sending an information query message mentioning the first application in the first session, determine the target information set associated with the first application, and use all or part of the target information set associated with the first application as the first information set.
[0092] In some other embodiments, the first application is a chatbot. The presentation module 503 is configured to: send a conversation message containing the query result in the first conversation via the chatbot.
[0093] In other embodiments, the target information set associated with the first application is a first online data table. The first information set is at least a portion of a sub-table in the first online data table, or the first information set is information in some rows or columns of at least some of the sub-tables in the first online data table.
[0094] In other embodiments, the device may further include: an establishing module and a releasing module (not shown in the figure).
[0095] The establishing module is configured to establish an association relationship between the first information set and the first session in response to an operation of adding the first application to the first session.
[0096] The releasing module is configured to release the association between the first information set and the first session in response to an operation of removing the first application from the first session.
[0097] In other embodiments, the display module 503 is configured to: display the query results to all session members of the first session; or display the query results to some session members of the first session, where the some session members include the first user and at least one other user; or display the query results to the first user.
[0098] In other embodiments, determination module 501 is configured to: determine a first online data table associated with the preset information query request, and determine whether the first online data table has preset permissions enabled. If the preset permissions are enabled, obtain a target identifier, and search the first online data table for a subtable corresponding to the target identifier as the first information set, where the target identifier includes the identifier of the first user and the identifier of the first session. If the preset permissions are not enabled, obtain permission configuration information for the first session, and based on the permission configuration information, determine the subtable in the first online data table corresponding to the first session as the first information set.
[0099] As shown in FIG6 , FIG6 is a block diagram of an information query device according to an exemplary embodiment of the present disclosure. The device may include: a receiving module 601 , a determining module 602 and an output module 603 .
[0100] The receiving module 601 is configured to receive a first query request, where the first query request comes from a first query interface, and the first query interface is associated with a first online data table.
[0101] The determination module 602 is configured to determine a first query range in the first online data table based on the first query request, where the first query range is different from or the same as a second query range, and the second query range is a visible range of the first online data table to the user who sends the first query request.
[0102] The output module 603 is configured to obtain query results from the first query range and output the results to the first query interface.
[0103] In some other embodiments, the first query interface is located in the first session, and the first query request includes a session identifier of the first session. Determination module 602 is configured to determine the first query scope based on the contents of a configuration subtable in the first online data table. The configuration subtable stores a correspondence between the session identifier and the query scope.
[0104] In other embodiments, the first query interface being located in the first conversation includes: the first query interface being a first chatbot, and the first chatbot being added as a conversation member of the first conversation.
[0105] In some other embodiments, the first query interface is located on the first page, and the first query request includes a user identifier of the user who entered the first query request on the first page. Determination module 602 is configured to determine the first query scope based on the contents of a configuration subtable in the first online data table. The configuration subtable stores a correspondence between user identifiers and query scopes.
[0106] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiment scheme of the present disclosure. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0107] Figure 7 is a schematic block diagram of an electronic device provided by some embodiments of the present disclosure. As shown in Figure 7, the electronic device 910 includes a processor 911 and a memory 912, which can be used to implement a client or a server. The memory 912 is used to store computer-executable instructions (e.g., one or more computer program modules) non-transiently. The processor 911 is used to run the computer-executable instructions, and when the computer-executable instructions are run by the processor 911, one or more steps in the information query method described above can be executed, thereby implementing the information query method described above. The memory 912 and the processor 911 can be interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0108] For example, the processor 911 may be a central processing unit (CPU), a graphics processing unit (GPU), or other processing units with data processing capabilities and / or program execution capabilities. For example, the central processing unit (CPU) may be an X86 or ARM architecture. The processor 911 may be a general-purpose processor or a dedicated processor, and may control other components in the electronic device 910 to perform desired functions.
[0109] For example, the memory 912 may include any combination of one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory. Non-volatile memory may include, for example, read-only memory (ROM), a hard disk, an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a USB memory, a flash memory, etc. One or more computer program modules may be stored on the computer-readable storage medium, and the processor 911 may execute one or more computer program modules to implement various functions of the electronic device 910. Various applications and various data, as well as various data used and / or generated by the applications, may also be stored in the computer-readable storage medium.
[0110] It should be noted that, in the embodiment of the present disclosure, the specific functions and technical effects of the electronic device 910 can be referred to the above description of the information query method, which will not be repeated here.
[0111] Figure 8 is a schematic block diagram of another electronic device provided by some embodiments of the present disclosure. The electronic device 920 is, for example, suitable for implementing the information query method provided by the embodiments of the present disclosure. The electronic device 920 may be a terminal device, etc., which can be used to implement a client or a server. The electronic device 920 may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), wearable electronic devices, etc., and fixed terminals such as digital TVs, desktop computers, smart home devices, etc. It should be noted that the electronic device 920 shown in Figure 8 is only an example and does not impose any restrictions on the functions and scope of use of the embodiments of the present disclosure.
[0112] As shown in FIG8 , the electronic device 920 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 921, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 922 or a program loaded from a storage device 928 into a random access memory (RAM) 923. Various programs and data required for the operation of the electronic device 920 are also stored in the RAM 923. The processing device 921, the ROM 922, and the RAM 923 are connected to each other via a bus 924. An input / output (I / O) interface 925 is also connected to the bus 924.
[0113] Typically, the following devices may be connected to the I / O interface 925: an input device 926 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 927 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 928 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 929. The communication device 929 may allow the electronic device 920 to communicate with other electronic devices wirelessly or by wire to exchange data. Although FIG8 shows the electronic device 920 with various devices, it should be understood that it is not required to implement or have all of the devices shown, and the electronic device 920 may alternatively implement or have more or fewer devices.
[0114] For example, according to an embodiment of the present disclosure, the above-mentioned information query method can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the above-mentioned information query method. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 929, or installed from the storage device 928, or installed from the ROM 922. When the computer program is executed by the processing device 921, the functions defined in the information query method provided in the embodiment of the present disclosure can be implemented.
[0115] Figure 9 is a schematic diagram of a storage medium provided in some embodiments of the present disclosure. For example, as shown in Figure 9, storage medium 930 may be a non-transitory computer-readable storage medium for storing non-transitory computer-executable instructions 931. When non-transitory computer-executable instructions 931 are executed by a processor, the information query method described in the embodiments of the present disclosure may be implemented. For example, when non-transitory computer-executable instructions 931 are executed by a processor, one or more steps of the information query method described above may be performed.
[0116] For example, the storage medium 930 may be applied to the above-mentioned electronic device. For example, the storage medium 930 may include a memory in the electronic device.
[0117] For example, the storage medium may include a memory card of a smart phone, a storage component of a tablet computer, a hard disk of a personal computer, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a flash memory, or any combination of the above storage media, or other applicable storage media.
[0118] For example, the description of the storage medium 930 can refer to the description of the memory in the embodiment of the electronic device, and the repeated parts are not repeated. The specific functions and technical effects of the storage medium 930 can refer to the description of the information query method above, and are not repeated here.
[0119] It should be noted that in the context of the present disclosure, a computer-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that may be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0120] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the claims.
[0121] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An information query method, the method comprising: In response to an information query request triggered by a first user in a first session, determining a first information set associated with the first session; wherein the first user is a session member of the first session, and the first information set includes information outside the first session; According to the information query request, obtaining a query result from the first information set; The query result is displayed in the first session.
2. The method according to claim 1, wherein: The information query request includes: A conversation message including preset characters sent in the first conversation; or, An information query request is input into a page associated with a preset control; wherein the page associated with the preset control is a page output after the preset control is triggered in the first session.
3. The method according to claim 1, wherein: The first information set belongs to a target information set, and the target information set also includes a second information set. The first information set is different from the second information set, and the second information set corresponds to a second session.
4. The method according to claim 3, wherein: The target information set also includes configuration information; The configuration information includes: a correspondence between a session and an information set in a target information set.
5. The method according to claim 4, wherein: The configuration information also includes one or more of the following: Configuration information on whether the query results corresponding to the session can be forwarded; Configuration information about the visible scope of the query results corresponding to the session.
6. The method according to claim 1, wherein: The determining, in response to an information query request triggered by a first user in a first session, a first information set associated with the first session includes: In response to the first user sending a reference to a first application in the first session information query message, determine the target information set associated with the first application, and use all or part of the target information set associated with the first application as the first information set.
7. The method according to claim 6, wherein: The first application is a chatbot; The presenting the query result in the first conversation includes: sending a conversation message including the query result in the first conversation by the chat robot.
8. The method according to claim 6, wherein: The target information set associated with the first application is a first online data table; The first information set is at least part of the sub-tables in the first online data table, or the first information set is information in part of the rows or columns of at least part of the sub-tables in the first online data table.
9. The method according to claim 6 or 7, wherein: The method further comprises: In response to the operation of adding the first application to the first session, establishing an association relationship between the first information set and the first session; In response to an operation of removing the first application from the first session, the association between the first information set and the first session is released.
10. The method according to claim 1, wherein: The displaying the query result in the first session includes: Displaying the query result to all session members of the first session; Alternatively, displaying the query result to some session members of the first session, wherein the some session members include the first user and at least one other user; Alternatively, the query result is displayed to the first user.
11. The method according to claim 1, wherein: The determining, in response to an information query request triggered by a first user in a first session, a first information set associated with the first session includes: Determine a first online data table associated with the information query request, and determine whether a preset permission is enabled for the first online data table; If the preset permission is enabled, the target identifier is obtained from the first online data searching a subtable corresponding to the target identifier in the table as the first information set; the target identifier includes an identifier of the first user and an identifier of the first session; If the preset permission is not enabled, permission configuration information of the first session is obtained, and based on the permission configuration information, a subtable corresponding to the first session in the first online data table is determined as the first information set.
12. An information query method, the method comprising: receiving a first query request; The first query request comes from a first query interface, and the first query interface is associated with a first online data table; Based on the first query request, determining a first query range in the first online data table; The first query scope is different from or the same as a second query scope, and the second query scope is a visible scope of the first online data table to a user who sends the first query request; The query result is obtained from the first query scope and output to the first query interface.
13. The method according to claim 12, wherein: The first query interface is located in a first session, and the first query request includes a session identifier of the first session; The determining, based on the first query request, a first query range in the first online data table includes: determining the first query range through content in a configuration subtable in the first online data table; The configuration subtable stores the corresponding relationship between the session identifier and the query scope.
14. The method according to claim 13, wherein: The first query interface being located in the first session includes: the first query interface being a first chat robot, and the first chat robot being added as a session member of the first session.
15. The method according to claim 12, wherein: The first query interface is located in a first page, and the first query request includes a user identifier of a user who inputs the first query request in the first page; The first query request is based on determining the first The query range includes: determining the first query range through the content of the configuration subtable in the first online data table; The configuration subtable stores the corresponding relationship between the user identifier and the query range.
16. An information query device, the method comprising: a determination module, configured to determine, in response to an information query request triggered by a first user in a first session, a first information set associated with the first session; wherein the first user is a session member of the first session, and the first information set includes information outside the first session; An acquisition module, configured to acquire a query result from the first information set according to the information query request; A display module is used to display the query result in the first session.
17. An information query device, the method comprising: A receiving module, configured to receive a first query request; The first query request comes from a first query interface, and the first query interface is associated with a first online data table; A determination module, configured to determine a first query range in the first online data table based on the first query request; The first query scope is different from or the same as a second query scope, and the second query scope is a visible scope of the first online data table to a user who sends the first query request; The output module is used to obtain the query result from the first query scope and output it to the first query interface.
18. A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the method according to any one of claims 1 to 15.
19. An electronic device comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method according to any one of claims 1 to 15 is implemented.
Citation Information
Patent Citations
Information query method, device and electronic equipment
CN116226499B
A data inquiry method and device
CN109446386A
Data query method and device, electronic device and storage medium
CN110008211A
Public opinion query method, device and equipment
CN110674383A
Service control method, device and system
CN112152913A
