A data selection and output method and device based on large language model

Through the data selection method based on the large language model, the selection request vector is parsed and generated to find matching target tags and examples, which solves the problems of low data selection efficiency and high error rate in the existing technology, and achieves efficient and accurate data selection. and operating experience.

CN118035387BActive Publication Date: 2024-09-17RAJAX NETWORK &TECHNOLOGY (SHANGHAI) CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202410406332.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-03
Publication Date
2024-09-17
Estimated Expiration
2044-04-03

AI Technical Summary

Technical Problem

The data selection efficiency in the existing technology is low and the error rate is high, especially when faced with a large number of data labels, resulting in low operating efficiency and high selection error rate.

Method used

Using a data selection method based on a large language model, by parsing the input data selection request, a selection request vector is generated, and matching target tags and request examples are searched in the vector knowledge base to generate corresponding selection information and improve tag matching and selection efficiency. , and realize the operation of adding, deleting, checking and modifying the selected information through interaction.

Benefits of technology

It improves the efficiency and accuracy of data selection, reduces the selection error rate, enhances user operation efficiency and experience, and is suitable for scenarios with massive data tags.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118035387B
    Figure CN118035387B
Patent Text Reader

Abstract

The present application discloses a method and device for data selection and output based on a large language model, wherein the selection method includes: in response to a data selection request inputted in an intelligent service interaction interface, parsing the data selection request based on a large language model to determine a selection request vector of the data selection request; in a constructed vector knowledge base, searching for a target label and a target request example matching the selection request vector based on the large language model; based on the target label and the target request example, generating selection information corresponding to the data selection request outputted in the intelligent service interaction interface based on the large language model. This can improve the efficiency of label matching, selection, etc. in the face of a large number of data labels, and can also avoid subsequent troubles in data utilization caused by incorrect selection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence, and more specifically to a method and device for data selection based on a large language model. The present application also relates to a method and device for data output based on a large language model, a method and device for data interaction based on a large language model, a data selection system based on a large language model, a computer storage medium, an electronic device, and a computer program product. Background Art

[0002] Based on the continuous development of the Internet and computer technology, e-commerce related technologies are also constantly updated and iterated, aiming to provide efficient services to users with different needs in the entire service chain.

[0003] Among them, in e-commerce based on the Internet and computer technology, product selection refers to the product provider or a third party carefully selecting and organizing goods based on market demand, user preferences, sales data and other information to ensure that the type and quality of the products can tap into the target user group. The role of product selection includes but is not limited to: attracting user traffic, improving conversion rates, optimizing inventory management, etc. Through precise product selection strategies, the application service platform can better meet the needs of different users and improve the service conversion rate of product supply users. Therefore, product selection is a key link for the service side that provides goods to improve conversion rates and meet user needs when relying on the application service platform for online and offline services. Summary of the invention

[0004] The present application provides a data selection method based on a large language model to solve the problems of low data selection efficiency and high selection error rate in the prior art.

[0005] The present application provides a data selection method based on a large language model, comprising:

[0006] In response to a data selection request inputted in the intelligent service interaction interface, the data selection request is parsed based on a large language model to determine a selection request vector of the data selection request;

[0007] In the constructed vector knowledge base, searching for a target tag and a target request example that matches the selected request vector based on the large language model;

[0008] According to the target tag and the target request example, selection information corresponding to the data selection request is generated based on the large language model and is output on the intelligent service interaction interface.

[0009] In some embodiments, searching the constructed vector knowledge base for target tags and target request examples that match the selected request vector based on the large language model includes:

[0010] According to the text vectorization processing of the historical label information and the historical request examples, the historical label vector data and the historical request example vector data are obtained;

[0011] Constructing a label vector knowledge base corresponding to the historical label vector data and a request example vector knowledge base corresponding to the historical request example vector data according to the classification vector index of the storage and query service system;

[0012] According to the matching requirement, searching the target tag matching the selection request vector in the tag vector knowledge base based on the large language model;

[0013] In the request example vector knowledge base, the target request example matching the selected request vector is searched based on the large language model.

[0014] In some embodiments, searching the target tag matching the selection request vector in the tag vector knowledge base based on the large language model according to the matching requirement includes:

[0015] When the matching requirement includes a label type requirement, the large language model searches for a target classification label that matches the selection request vector in the label vector knowledge base according to the classification type of the data selection label;

[0016] The target classification label is determined as the target label.

[0017] In some embodiments, determining the target classification label as the target label includes:

[0018] The target classification tags are screened according to tag screening conditions, and the target classification tags that meet the tag screening conditions are determined as the target tags.

[0019] In some embodiments, generating, based on the large language model and according to the target tag and the target request example, selection information corresponding to the data selection request for output on the intelligent service interaction interface includes:

[0020] Merging the target classification labels according to the large language model prompt template to determine a label combination;

[0021] Generating selection information corresponding to the data selection request for output on the intelligent service interaction interface according to the assembly of the tag combination and the target request example;

[0022] or,

[0023] Merging the target classification labels according to the large language model prompt template to determine a label combination;

[0024] Verify the label combination to determine whether the label value corresponding to the target classification label is within the set label value selection range;

[0025] If so, based on the assembly of the tag combination and the target request example, selection information corresponding to the data selection request is generated for output on the intelligent service interaction interface.

[0026] In some embodiments, the method further includes obtaining at least one of the following information:

[0027] Obtaining the requester type information of the data selection request;

[0028] Obtaining output requirement information of the selected information;

[0029] The step of generating selection information corresponding to the data selection request for output on the intelligent service interaction interface based on the assembly of the tag combination and the target request example includes:

[0030] At least one of the requester type information and the output requirement information is assembled with the target tag and the target request example to generate selection information corresponding to the data selection request for output on the intelligent service interaction interface.

[0031] In some embodiments, generating, based on the large language model and according to the target tag and the target request example, selection information corresponding to the data selection request for output on the intelligent service interaction interface includes:

[0032] Generate the selection information based on the large language model according to the target tag and the target request example;

[0033] Constructing operation controls for the selected information and / or constructing interactive reference information for the selected information.

[0034] The present application also provides a data selection and output method based on a large language model, comprising:

[0035] In response to a data selection request inputted through the intelligent service interaction interface, obtaining selection information in the data selection method based on the large language model described above;

[0036] Rendering and outputting the selected information on the intelligent service interaction interface;

[0037] In response to triggering the data generation engine in the selected information, selected data corresponding to the selected information is output on the intelligent service interaction interface.

[0038] The present application also provides a data selection interactive method based on a large language model, including:

[0039] In response to a data selection request inputted through the intelligent service interaction interface, obtaining selection information in the data selection method based on the large language model described above;

[0040] Outputting the selected information to the intelligent service interaction interface;

[0041] In response to a data generation request for the selected information displayed in the intelligent service interaction interface, the obtained selected data generated according to the selected information is output to the intelligent service interaction interface.

[0042] The present application also provides a data selection system based on a large language model, comprising: an interaction end, a processing platform end, and a selection engine end;

[0043] The interactive end inputs a data selection request through the provided intelligent service interactive interface, and sends the data selection request to the processing platform end;

[0044] The processing platform side parses the data selection request through a large language model to determine a selection request vector of the data selection request; in the constructed vector knowledge base, the large language model is used to search for a target tag and a target request example that match the selection request vector; according to the target tag and the target request example, selection information corresponding to the data selection request is generated based on the large language model and sent to the interactive side for output;

[0045] The selection engine end selects the selection data corresponding to the selection information through the generation request of the selection information output by the interaction end, and returns the selection data to the interaction end, and the interaction end outputs the selection data on the intelligent interaction interface.

[0046] This application also provides a product selection method based on a large language model, including:

[0047] In response to a product selection request inputted through the intelligent service interaction interface, the product selection request is parsed based on a large language model to determine a selection request vector of the product selection request;

[0048] In the constructed vector knowledge base, searching for a target tag and a target request example that matches the selected request vector based on the large language model;

[0049] According to the target tag and the target request example, product selection information corresponding to the product selection request is generated based on the large language model for output on the intelligent service interaction interface.

[0050] The present application also provides a computer storage medium for storing data generated by a network platform, and a program for processing the data generated by the network platform;

[0051] When the program is read and executed by the processor, it executes the data selection method based on the large language model as described above; or, it executes the data selection output method based on the large language model as described above; or, it executes the data selection interaction method based on the large language model as described above; or, it executes the product selection method based on the large language model as described above.

[0052] The present application also provides an electronic device, including:

[0053] processor;

[0054] A memory for storing a program for processing data generated by a network platform, wherein when the program is read and executed by the processor, the program executes the data selection method based on the large language model as described above; or, executes the data selection output method based on the large language model as described above; or, executes the data selection interaction method based on the large language model as described above; or, executes the product selection method based on the large language model as described above.

[0055] The present application also provides a computer program product, including a computer program and / or instructions, which, when executed by a processor, implements the data selection method based on the large language model as described above; or, executes the data selection output method based on the large language model as described above; or, executes the data selection interaction method based on the large language model as described above; or, executes the product selection method based on the large language model as described above.

[0056] Compared with the prior art, this application has the following advantages:

[0057] The data selection method based on the large language model provided by the present application vectorizes the input request by utilizing the capability of the large language model, performs matching query of labels and examples based on the vectorized data, obtains corresponding selection information based on the matched target labels and target examples, and obtains corresponding selection data by triggering the generation engine in the selection information, thereby improving the efficiency of label matching, selection, etc. in the face of a large number of data labels, and also avoiding the subsequent troubles in data utilization caused by selection errors. In addition, the operation of adding, deleting, checking and modifying labels in the output selection information can be realized in an interactive manner, thereby improving user operation efficiency and experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 This is a flowchart of a data selection method based on a large language model provided by this application.

[0059] Figure 2 It is a link diagram of an embodiment of a data selection method based on a large language model provided by the present application.

[0060] Figure 3 It is a structural diagram of a data selection device based on a large language model provided by the present application.

[0061] Figure 4 This is a flowchart of a data selection and output method based on a large language model provided by this application.

[0062] Figure 5 It is a schematic diagram of an embodiment of outputting selected information of a data selection and output method based on a large language model provided by the present application.

[0063] Figure 5-1 It is a schematic diagram of another embodiment of outputting selected information of a data selection and output method based on a large language model provided by the present application.

[0064] Figure 6 It is a schematic diagram of an embodiment of outputting selected data in a data selection and output method based on a large language model provided by the present application.

[0065] Figure 7 It is a structural diagram of a data selection and output device based on a large language model provided by the present application.

[0066] Figure 8 This is a flowchart of a data selection interaction method based on a large language model provided by this application.

[0067] Fig. 9 It is a structural diagram of a data selection interaction device based on a large language model provided by the present application.

[0068] Fig.10 It is a structural diagram of a data selection system based on a large language model provided by this application.

[0069] Fig.11 This is a flowchart of a product selection method based on a large language model provided in this application.

[0070] Fig.12 It is a structural schematic diagram of a product selection device based on a large language model provided in this application.

[0071] Fig.13 It is a structural schematic diagram of an electronic device embodiment provided by the present application. DETAILED DESCRIPTION

[0072] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.

[0073] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The descriptions used in this application and the appended claims, such as "a", "first", and "second", are not limitations on quantity or sequence, but are used to distinguish the same type of information from each other.

[0074] Based on the above background technology, it can be known that the invention concept of this application comes from the product selection involved in the service process of the entire application service platform, that is, the product selection on the merchant side or in the third-party operation scenario. In the prior art, product selection mainly relies on manual screening of product labels. This selection method will lead to low operating efficiency when facing a large number of products. On the other hand, it requires the product selectors to have knowledge of product-related labels, otherwise it will lead to a high error rate in product selection.

[0075] Based on the problems existing in the above-mentioned prior art, the present application provides a data selection method based on a large language model. In the embodiment of the method, the implementation process of the method can be understood from the perspective of a service processing platform. The embodiment of the data selection method is described in detail below.

[0076] like Figure 1 As shown, Figure 1 This is a flow chart of a data selection method based on a large language model provided by the present application, the method comprising:

[0077] Step S101: In response to a data selection request inputted through an intelligent service interaction interface, the data selection request is parsed based on a large language model to determine a selection request vector of the data selection request;

[0078] Step S102: searching the constructed vector knowledge base for target tags and target request examples that match the selected request vector based on the large language model;

[0079] Step S103: generating selection information corresponding to the data selection request for output on the intelligent service interaction interface based on the large language model according to the target tag and the target request example.

[0080] Before explaining the above steps S101 to S103 in detail, the technical terms involved in the technical solution of the present application are first explained.

[0081] Large Language Model: In recent years, the field of AI has experienced tremendous growth and changes, and natural language processing (NLP) is one of the areas that has made rapid progress. As one of the important components of natural language processing, the Large Language Model (LLM) is mainly used to predict the probability distribution of the next word or character in a natural language text. Specifically, the LLM model is a natural language processing model based on deep learning. It can learn the grammar and semantics of natural language, so as to generate human-readable text and realize human-computer interaction. In the large language model, prompts are used to realize human-computer dialogue interaction. The so-called prompt can be understood as guiding the large language model to generate relevant natural language text. It can be regarded as question information or dialogue information sent to the large language model, or instructions that need to be sent to the large language model, such as: a sentence of text input to describe the question information, etc.

[0082] Intelligent service interaction interface: It is a service interaction interface of an AI intelligent service application (also called AI assistant) based on LLM for users. User demand information can be entered in this interaction interface, and corresponding feedback information can be output based on the demand information.

[0083] Product selection engine: A real-time product selection engine based on tag matching. The triggering of the product selection engine can output product information in various forms to the intelligent service interaction interface. In the product selection scenario, it can be called a selection engine, and in other data selection scenarios, it can be called a data selection engine. Therefore, the purpose of this engine is to output the corresponding selected data in various forms according to the request to generate data.

[0084] Vector knowledge base: A knowledge base based on vector storage and retrieval for fast query and retrieval of information.

[0085] The above steps S101 to S103 are described in detail below. Figure 2 As shown, Figure 2 It is a link diagram of an embodiment of a data selection method based on a large language model provided by the present application.

[0086] Regarding step S101: in response to a data selection request inputted in the intelligent service interaction interface, the data selection request is parsed based on a large language model to determine a selection request vector of the data selection request.

[0087] The purpose of step S101 is to obtain the semantic information of the data selection request, that is, to parse and vectorize the data selection request to obtain a semantic vector, that is, a selection request vector.

[0088] In this embodiment, the analysis of the data selection request may include input questions, user ID, historical interaction information, etc. This information is vectorized through LLM to obtain a selection request vector representing the corresponding semantics, thereby facilitating the search in step S102.

[0089] Regarding step S102: in the constructed vector knowledge base, searching for target tags and target request examples that match the selected request vector based on the large language model.

[0090] The purpose of step S102 is to find target tags and target request examples.

[0091] Tags are a way of representing data that makes it easier to discover, understand, integrate, analyze, and use data, while also improving the usability of data.

[0092] The request example can also be understood as a request sample. Querying the target request example can improve the matching degree with the data selection request.

[0093] The specific implementation process of step S102 may include:

[0094] Step S102 - 1 : Obtain historical label vector data and historical request example vector data based on text vectorization processing of historical label information and historical request examples.

[0095] Among them, the historical label information can be understood as the existing label information in the selection scenario for the selected data. In this embodiment, commodity data can be used as an example for explanation, that is, the existing label information for commodity data. The historical request example can be understood as an example of an existing data selection request. The text vectorization processing of the historical label information and historical request examples is a process of semantic processing through LLM.

[0096] Step S102-2: constructing a label vector knowledge base corresponding to the historical label vector data and a request example vector knowledge base corresponding to the historical request example vector data according to the classification vector index of the storage and query service system.

[0097] Among them, the storage and query service system can provide online graph storage and query services, that is, provide storage, query, update and calculation services for large-scale graph data, etc. Of course, when real-time requirements are not required or there is no demand, the corresponding services can also be provided in an offline manner, that is, the storage and query service system is not limited to online graph storage and query services. In this embodiment, a label vector knowledge base and a request example vector knowledge base are constructed respectively according to the classification vector index of the storage and query service system. The label vector knowledge base is used to store label vectors of historical label vector data, and the request example vector knowledge base is used to store request example vectors of historical request example vector data.

[0098] Step S102 - 3 : In the label vector knowledge base, searching for the target label that matches the selection request vector based on the large language model.

[0099] Step S102 - 4 : searching the request example vector knowledge base for the target request example that matches the selected request vector based on the large language model.

[0100] The label vector knowledge base and the request example vector knowledge base respectively provide target labels that match the selected request vector and target request examples that match the selected request vector.

[0101] The specific implementation process of step S102-3 may be to search the target tag matching the selection request vector in the tag vector knowledge base based on the large language model according to the matching requirements. The matching requirements may include tag type requirements, that is, based on the commodity selection scenario (such as food) provided in this embodiment, tags may be divided into: category tags, continuous tags, and Boolean tags, so that tags are more clear and accurate in representation, and the tag matching efficiency can be further improved.

[0102] The category tags may be: city, brand name, main category of a merchant, merchant category level, etc., that is, such data is classified as category tags.

[0103] The continuous label can be: the number of people in a package, the selling price of a product, the promotional price of a product, the promotional discount of a product, etc., and can be expressed in the form of an interval of [, 3], [10, 20], that is, such data is classified as a continuous label.

[0104] The Boolean label can be: whether it is a new product, whether it is a staple food, whether it is a main dish, whether it is a signature dish, whether it is a high-quality meal for one person, etc., that is, this type of data is classified as a Boolean label.

[0105] When the matching requirement is a tag type requirement, the specific implementation process of step S102-3 may include:

[0106] Step S102-31: the large language model searches for a target classification label that matches the selection request vector in the label vector knowledge base according to the classification type of the data selection label;

[0107] Step S102-32: Determine the target classification label as the target label.

[0108] In order to improve the matching degree with the input data selection request and reduce the error rate of the subsequent generation of selection information, the target classification labels are screened and labels that do not meet the requirements are removed. Therefore, the step S102-32 may specifically include:

[0109] Step S102-321: The target classification label is screened according to the label screening condition, and the target classification label that meets the label screening condition is determined as the target label. In this embodiment, the target classification label can be subjected to relevant regular matching processing to obtain a label result in json format, and then the label result is screened. The label screening condition can be a blacklist requirement, that is, remove labels that do not meet the requirements; it can be a mutually exclusive requirement, that is, remove one of the labels that cannot appear at the same time, for example: merchant secondary categories and merchant primary categories, 7-day commodity transaction data and 30-day commodity transaction data. It can be a label rule requirement, for example: only labels in label sets 1, 2, and 3 are required; the label value of the label in label set 1 must be the enumeration value of the label; the label value of the label in label set 2 must be a numerical value, and if an interval is output, the values ​​at both ends of the interval must be numerical values, etc.

[0110] Regarding step S103: according to the target tag and the target request example, generating selection information corresponding to the data selection request for output on the intelligent service interaction interface based on the large language model.

[0111] The purpose of step S103 is to generate selection information output on the intelligent service interaction interface.

[0112] The specific implementation process may include:

[0113] Step S103-11: Merge the target classification labels according to the large language model prompt template to determine the label combination; wherein the large language model prompt template can set the prompt structure or format in combination with the application scenario of data selection to guide the content generated by the large language model. The label combination can also be verified to determine whether the label value corresponding to the target classification label is within the set label value selection range. Of course, it can also include distance verification of label values, semantic vector verification, etc. Here, the verification of the label combination can also be performed during the process of screening for label screening conditions.

[0114] Step S103-12: Generate selection information corresponding to the data selection request for output on the intelligent service interaction interface based on the assembly of the label combination and the target request example. The label combination and the target request example can be automatically assembled through the large language model prompt template, and the selection information corresponding to the data selection request for output on the intelligent service interaction interface is generated based on the assembled vector information.

[0115] In this embodiment, in order to improve the accuracy of the selected information, the label combination can be verified, such as verifying the label combination as described in the above step S103-12 to determine whether the label value corresponding to the target classification label is within the set label value selection range. Therefore, the selection information corresponding to the data selection request generated in the step S103 for output on the intelligent service interaction interface can be obtained by executing the above steps S103-11 and S103-12, or by adding a step of verifying the label combination in the steps S103-11 and S103-12, that is: verifying the label combination to determine whether the label value corresponding to the target classification label is within the set label value selection range; if so, executing the step S103-12.

[0116] It can be understood that the large language model prompt template can not only automatically assemble the label combination and the target request example, but also use any one or more of the requester type information of the data selection request, the output requirement information for obtaining the selection information, and the label rule information as parameters for assembling the large language model prompt template, and generate the selection information based on the automatic assembly of the label combination, the target request example, and other parameters.

[0117] It should be noted that when generating the selection information, it may also include generating prompt interaction information corresponding to the selection information and / or the data selection request based on a historical interaction memory ID list generated by the current interaction of the large language model, and used for outputting it on the intelligent service interaction interface.

[0118] Further comprising: verifying and matching the target tag in the generated selection information according to the tag in the data selection engine, so as to ensure that the data selection engine can identify the target tag and generate selection data based on the target tag. In the product selection scenario of this embodiment, the data selection engine can be a product selection engine. The product selection engine can obtain corresponding products based on the selection information and provide them to the intelligent service interaction interface for output.

[0119] In order to improve the user's interactive experience based on the intelligent service interactive interface, enhance the convenience of operation, and the convenience of obtaining data, the step S103 may further include:

[0120] Step S103-21: generating the selection information based on the large language model according to the target tag and the target request example;

[0121] Step S103-22: Constructing operation controls for the selected information and / or constructing interactive reference information for the selected information. Among them, the operation controls for the selected information may include: an output data structure capable of embedding operation controls constructed for the target tag, for example: one or more operation controls for modifying, deleting, etc. the target tag, and the modification and deletion may be operations on the tag value of the target tag. Tags and tag values ​​can be regarded as target tags. It is also possible to construct reference information of recommended tags based on the target tag and selected data distribution information corresponding to the recommended tags. It is also possible to construct an output data structure of selected reference information based on the selected information, for example: outputting suggested information on data selection methods during the dialogue interaction process; constructing recommendation information with associated relationships for recommending to users based on the selected information, etc. The specific output method can refer to Figure 5-1 .

[0122] The above is a description of an embodiment of a data selection method based on a large language model provided by the present application. This method embodiment can improve the efficiency of label matching, selection, etc. when faced with a large number of data labels, while also avoiding subsequent troubles in data utilization caused by incorrect selection.

[0123] The above is a specific description of an embodiment of a data selection method based on a large language model provided by the present application. Corresponding to the aforementioned embodiment of a data selection method based on a large language model, the present application also discloses an embodiment of a data selection device based on a large language model. Please refer to Figure 3 Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described below is only illustrative.

[0124] like Figure 3 As shown, Figure 3 It is a structural schematic diagram of a data selection device based on a large language model provided by the present application. The device embodiment may include: a determination unit 301, a matching unit 302 and a generation unit 303;

[0125] The determination unit 301 is used to respond to the data selection request inputted in the intelligent service interaction interface, parse the data selection request based on the large language model, and determine the selection request vector of the data selection request; for the specific content of the determination unit 301, please refer to the description of the above step S101, which will not be described in detail here.

[0126] The matching unit 302 is used to search for the target label and target request example that match the selected request vector in the constructed vector knowledge base based on the large language model; the matching unit 302 includes: an acquisition subunit, a construction subunit, a first search subunit and a second search subunit. The acquisition subunit is used to acquire historical label vector data and historical request example vector data based on the text vectorization processing of historical label information and historical request examples. The construction subunit is used to construct a label vector knowledge base corresponding to the historical label vector data and a request example vector knowledge base corresponding to the historical request example vector data based on the classification vector index of the storage and query service system; the first search subunit is used to search for the target label that matches the selected request vector in the label vector knowledge base based on the large language model, and specifically, it can be based on the matching requirements, in the label vector knowledge base, based on the large language model, to search for the target label that matches the selected request vector. The second search subunit is used to search for the target request example that matches the selected request vector in the request example vector knowledge base based on the large language model. The first search subunit includes a target search subunit and a target determination subunit. The target search subunit is used to search for a target classification label that matches the selection request vector in the label vector knowledge base according to the classification type of the data selection label by the large language model when the matching requirement includes a label type requirement. The target determination subunit determines the target classification label as the target label. The target determination subunit is specifically used to filter the target classification label according to the label filtering condition, and determine the target classification label that meets the label filtering condition as the target label.

[0127] The generating unit 303 is used to generate selection information corresponding to the data selection request for output on the intelligent service interaction interface based on the large language model according to the target tag and the target request example.

[0128] The generating unit 303 includes: a merging subunit and a generating subunit.

[0129] The merging subunit is used to merge the target classification labels according to the large language model prompt template to determine a label combination;

[0130] The generating subunit is used to generate selection information corresponding to the data selection request for output on the intelligent service interaction interface according to the assembly of the tag combination and the target request example.

[0131] It may further include: a verification unit, which is used to verify the label combination to determine whether the label value corresponding to the target classification label is within a set label value selection range.

[0132] The method may further include: a first acquisition unit for acquiring the requester type information of the data selection request; a second acquisition unit for acquiring the output requirement information of the selection information. The generation unit is specifically used to assemble at least one of the requester type information and the output requirement information with the target tag and the target request example to generate the selection information corresponding to the data selection request for output on the intelligent service interaction interface.

[0133] It may further include: a verification unit, which is used to verify and match the target label in the generated selection information according to the label in the data selection engine.

[0134] The generating unit 303 further includes: a generating subunit and a constructing subunit; the generating subunit is used to generate the selection information based on the large language model according to the target tag and the target request example; the constructing subunit is used to construct an operation control for the selection information and / or construct interactive reference information for the selection information.

[0135] The above is a brief description of an embodiment of a data selection device based on a large language model provided in the present application. For the specific content of the device embodiment, please refer to the relevant content of the above-mentioned method embodiment, which will not be described in detail here.

[0136] Based on the above, the present application also provides a data selection and output method based on a large language model, such as Figure 4 As shown, Figure 4 This is a flow chart of a data selection and output method based on a large language model provided by the present application. The embodiment of the method is described by taking an intelligent service interaction client (also understood as a UI front end) as an example, that is, from the perspective of an intelligent service interaction interface, specifically including:

[0137] Step S401: In response to a data selection request inputted through the intelligent service interaction interface, obtaining selection information generated in a data selection method based on a large language model;

[0138] Step S402: Rendering and outputting the selected information on the intelligent service interaction interface;

[0139] Step S403: In response to triggering the data generation engine in the selected information, outputting the selected data corresponding to the selected information on the intelligent service interaction interface.

[0140] like Figure 5 , Figure 5-1 and Figure 6 Show, Figure 5 is a schematic diagram of an embodiment of outputting selected information in a data selection and output method based on a large language model provided by the present application, Figure 5-1 It is a schematic diagram of another embodiment of outputting selected information of a data selection and output method based on a large language model provided by the present application; Figure 6 It is a schematic diagram of an embodiment of outputting selected data in a data selection and output method based on a large language model provided by the present application.

[0141] In this embodiment, the purpose of step S401 is to allow the user to input a request for selecting data through the intelligent service interaction interface. For example, the input data selection request is "circle the city as Shanghai, the merchant's main category is fried rice, and the dishes with a price greater than 20". The input data selection request can be parsed according to the data selection method of the large language model mentioned above to obtain the vector information of the selection request, and search the vector knowledge base for target tags and target request examples that match the selection request vector, namely: the target tags are city, merchant's main category, and commodity price, and the tag values ​​are: Shanghai, fried rice, [0, 20] respectively. These target tags and corresponding tag values ​​are output in the intelligent service interaction interface, and a chart corresponding to the target tag can also be output. The intelligent service interaction interface has controls for generating corresponding selected data corresponding to the selection information. For example Figure 6 As shown, the selected data can be output in the form of a selected data set, which can be referred to as a selection pool in the scenario reference example provided in this embodiment. In response to the viewing operation of the selected data set, detailed information corresponding to the selected data can be output. Of course, the operations that can be performed on the selected data set are not limited to viewing, but can also include operations such as deletion and copying. Specific operations can be added or deleted according to actual needs.

[0142] Regarding the acquisition of the selected information in step S401, reference may be made to the contents of steps S101 to S103 above, which will not be described in detail here.

[0143] It is understandable that the selection information output in the intelligent service interaction interface may include tag information corresponding to the data selection request and a chart corresponding to the tag value in the tag information. The form of the chart is not limited to Figure 6The examples given may also include a prompt generated for a data selection request. Therefore, the selection information output in the intelligent service interaction interface is not limited to the examples proposed in this embodiment, but may also include other content related to the selection information. For example, if the target tag is not matched, a prompt related to the selection failure may be output.

[0144] The above is a description of an embodiment of a data selection and output method based on a large language model provided by the present application. The method embodiment can input a data selection request through an intelligent service interaction interface provided based on a large language model, and obtain selection information corresponding to the data selection request, and then output the selected data corresponding to the selection information in response to the operation of the generation engine in the selection information, so that when performing data selection in the face of massive data, the operation is more convenient and the selection efficiency is higher, thereby improving the convenience and quality of subsequent related data utilization and processing through the selected data.

[0145] The above is a specific description of an embodiment of a method for selecting and outputting data based on a large language model provided by the present application. Corresponding to the embodiment of a device for selecting and outputting data based on a large language model provided above, the present application also discloses an embodiment of a device for selecting data based on a large language model. Please refer to Figure 7 Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described below is only illustrative.

[0146] like Figure 7 As shown, Figure 7 : is a structural diagram of a data selection and output device based on a large language model provided by the present application. The device embodiment may include:

[0147] An acquisition unit 701 is used to obtain selection information in the above-mentioned data selection method based on a large language model in response to a data selection request inputted in the intelligent service interaction interface;

[0148] The first output unit 702 is used to render and output the selected information on the intelligent service interaction interface;

[0149] The second output unit 703 is used to output the selected data corresponding to the selected information on the intelligent service interaction interface in response to triggering the data generation engine in the selected information.

[0150] For the specific content of the device embodiment, reference may be made to the above-mentioned steps S101 to S103 and the content of the steps S401 to S403, which will not be described in detail here.

[0151] Based on the above, the present application also provides a data selection interaction method based on a large language model, such as Figure 8 As shown, Figure 8 This is a flowchart of a data selection interaction method based on a large language model provided by the present application, the method comprising:

[0152] Step S801: In response to a data selection request inputted through the intelligent service interaction interface, obtaining selection information generated according to a data selection method based on a large language model;

[0153] Step S802: outputting the selected information to the intelligent service interaction interface;

[0154] Step S803: In response to a data generation request for the selected information displayed in the intelligent service interaction interface, the obtained selected data generated according to the selected information is output to the intelligent service interaction interface.

[0155] The steps S801 to S803 are mainly described as requesting input angles, large model processing angles and selecting data generation angles, and the specific contents can refer to the above steps S101 to S103, and the related contents of steps S401 to S403, which will not be described in detail here.

[0156] Accordingly, the present application also provides a data selection interactive device based on a large language model, such as Fig. 9 As shown, the device embodiment may include:

[0157] An acquisition unit 901 is used to respond to a data selection request inputted in the intelligent service interaction interface and acquire selection information generated according to a data selection method based on a large language model;

[0158] A first output unit 902, used to output the selected information to the intelligent service interaction interface;

[0159] The second output unit 903 is used to respond to a data generation request for the selected information displayed in the intelligent service interaction interface, and output the obtained selected data generated according to the selected information to the intelligent service interaction interface.

[0160] The specific contents of the device can also be referred to the above steps S101 to S103, and the relevant contents of steps S401 to S403, which will not be described in detail here.

[0161] Based on the above content, this application also provides a data selection system based on a large language model, such as Fig.10 As shown, the system embodiment may include: an interaction end 1001, a processing platform end 1002 and a selection engine end 1003;

[0162] The interactive end 1001 inputs a data selection request through the provided intelligent service interactive interface, and sends the data selection request to the processing platform end.

[0163] The processing platform end 1002 parses the data selection request through a large language model to determine the selection request vector of the data selection request; in the constructed vector knowledge base, the target label and target request example matching the selection request vector are searched through the large language model; according to the target label and the target request example, the selection information corresponding to the data selection request is generated based on the large language model and sent to the interactive end for output. The processing platform end can be an online service capable of providing Serverless (serverless computing) services for search, recommendation and other services.

[0164] The selection engine end 1003 selects the selection data corresponding to the selection information through the generation request of the selection information output by the interactive end, and returns the selection data to the interactive end, and the interactive end outputs the selection data on the intelligent interactive interface.

[0165] Based on the above content, this application also provides a product selection method based on a large language model, such as Fig.11 As shown, the product selection method embodiment may include:

[0166] Step S1101: In response to a product selection request inputted through the intelligent service interaction interface, the product selection request is parsed based on a large language model to determine a selection request vector of the product selection request;

[0167] Step S1102: searching the constructed vector knowledge base for target tags and target request examples that match the selected request vector based on the large language model;

[0168] Step S1103: generating product selection information corresponding to the product selection request for output on the intelligent service interaction interface based on the large language model according to the target tag and the target request example.

[0169] It may further include: triggering a generation engine for the product selection information in the intelligent service interaction interface, and outputting a product selection pool corresponding to the product selection information in the intelligent service interaction interface.

[0170] It may further include: triggering the product selection pool viewing control can output the product information in the product selection pool.

[0171] Of course, it is understandable that the trigger for the generation engine can be the product selection pool or the selected product information. Therefore, the output display of the product selection information is not limited to the above content, and any method that can meet the needs of the requester and facilitate the requester to view and obtain it is acceptable. In this embodiment, only the product selection pool is used as an example for implementation.

[0172] For the specific content of the embodiment of the product selection method, please refer to the above-mentioned steps S101 to S103, steps S401 to S403, and steps S801 to S803, which will not be described in detail here.

[0173] Accordingly, the present application also provides a product selection device based on a large language model, such as Fig.12 As shown, the device embodiment may include:

[0174] Determining unit 1201: configured to respond to a product selection request inputted through an intelligent service interaction interface, parse the product selection request based on a large language model, and determine a selection request vector of the product selection request;

[0175] Matching unit 1202: used to search for a target tag and a target request example matching the selected request vector in the constructed vector knowledge base based on the large language model;

[0176] Generating unit 1203: used to generate product selection information corresponding to the product selection request for output on the intelligent service interaction interface based on the large language model according to the target tag and the target request example.

[0177] Based on the above content, the present application also provides a computer storage medium for storing data generated by a network platform, and a program for processing the data generated by the network platform;

[0178] When the program is read and executed by the processor, it executes the steps of the data selection method based on the large language model as described above; or, executes the steps of the data selection output method based on the large language model as described above; or, executes the steps of the data selection interaction method based on the large language model as described above; or, executes the steps of the product selection method based on the large language model as described above.

[0179] Based on the above content, the present application also provides an electronic device, such as Fig.13 As shown, the electronic device includes:

[0180] Processor 1301;

[0181] The memory 1302 is used to store a program for processing data generated by a network platform. When the program is read and executed by the processor, the program executes the steps of the data selection method based on the large language model; or executes the steps of the data selection output method based on the large language model; or executes the steps of the data selection interaction method based on the large language model; or executes the steps of the product selection method based on the large language model.

[0182] Based on the above content, the present application also provides a computer program product, including a computer program and / or instructions. When the computer program and / or instructions are executed by a processor, the steps of the data selection method based on a large language model are implemented; or, the steps of the data selection output method based on a large language model are implemented; or, the steps of the data selection interaction method based on a large language model are implemented; or, the steps of the product selection method based on a large language model are implemented.

[0183] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0184] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0185] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0186] 1. Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.

[0187] 2. Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0188] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.

Claims

1. A data selection method based on a large language model, It is characterized in that include: In response to a data selection request inputted in the intelligent service interaction interface, the data selection request is parsed based on a large language model, and the acquired semantic information of the data selection request is determined as a selection request vector of the data selection request; According to the matching requirement, in the constructed label vector knowledge base, searching for a target label matching the selected request vector based on the large language model, including: when the matching requirement includes a label type requirement, the large language model searches for a target classification label matching the selected request vector in the label vector knowledge base according to the classification type of the data selected label, and determines the target classification label as the target label; in the constructed request example vector knowledge base, searching for a target request example matching the selected request vector based on the large language model; According to the target tag and the target request example, selection information corresponding to the data selection request is generated based on the large language model and is output on the intelligent service interaction interface.

2. The method according to claim 1, It is characterized in that According to the matching requirement, searching for a target tag matching the selected request vector in the constructed tag vector knowledge base based on the large language model; In the constructed request example vector knowledge base, searching for a target request example matching the selected request vector based on the large language model includes: According to the text vectorization processing of the historical label information and the historical request examples, the historical label vector data and the historical request example vector data are obtained; Constructing a label vector knowledge base corresponding to the historical label vector data and a request example vector knowledge base corresponding to the historical request example vector data according to the classification vector index of the storage and query service system; According to the matching requirement, searching the target tag matching the selection request vector in the tag vector knowledge base based on the large language model; In the request example vector knowledge base, the target request example matching the selected request vector is searched based on the large language model.

3. The method according to claim 1, It is characterized in that Determining the target classification label as the target label includes: The target classification tags are screened according to tag screening conditions, and the target classification tags that meet the tag screening conditions are determined as the target tags.

4. The method according to claim 1, It is characterized in that The step of generating, based on the large language model and according to the target tag and the target request example, selection information corresponding to the data selection request for output on the intelligent service interaction interface includes: Merging the target classification labels according to the large language model prompt template to determine a label combination; Generating selection information corresponding to the data selection request for output on the intelligent service interaction interface according to the assembly of the tag combination and the target request example; or, Merging the target classification labels according to the large language model prompt template to determine a label combination; Verify the label combination to determine whether the label value corresponding to the target classification label is within the set label value selection range; If so, based on the assembly of the tag combination and the target request example, selection information corresponding to the data selection request is generated for output on the intelligent service interaction interface.

5. The method according to claim 1, It is characterized in that It also includes obtaining at least one of the following information: Obtaining the requester type information of the data selection request; Obtaining output requirement information of the selected information; The step of generating selection information corresponding to the data selection request for output on the intelligent service interaction interface based on the assembly of the tag combination and the target request example includes: At least one of the requester type information and the output requirement information is assembled with the target tag and the target request example to generate selection information corresponding to the data selection request for output on the intelligent service interaction interface.

6. The method according to claim 1, It is characterized in that The step of generating, based on the large language model and according to the target tag and the target request example, selection information corresponding to the data selection request for output on the intelligent service interaction interface includes: Generate the selection information based on the large language model according to the target tag and the target request example; Constructing operation controls for the selected information and / or constructing interactive reference information for the selected information.

7. A data selection and output method based on a large language model, It is characterized in that include: In response to a data selection request inputted in the intelligent service interaction interface, obtaining the selection information in the method according to any one of claims 1 to 6; Rendering and outputting the selected information on the intelligent service interaction interface; In response to triggering the data generation engine in the selected information, selected data corresponding to the selected information is output on the intelligent service interaction interface.

8. A data selection interactive method based on a large language model, It is characterized in that include: In response to a data selection request inputted in the intelligent service interaction interface, obtaining the selection information in the method according to any one of claims 1 to 6; Outputting the selected information to the intelligent service interaction interface; In response to a data generation request for the selected information displayed in the intelligent service interaction interface, the obtained selected data generated according to the selected information is output to the intelligent service interaction interface.

9. A data selection system based on a large language model, It is characterized in that include: Interaction side, processing platform side and selection engine side; The interactive end inputs a data selection request through the provided intelligent service interactive interface, and sends the data selection request to the processing platform end; The processing platform parses the data selection request through a large language model to determine a selection request vector of the data selection request; According to the matching requirement, in the constructed label vector knowledge base, searching for a target label matching the selection request vector through the large language model, including: when the matching requirement includes a label type requirement, the large language model searches for a target classification label matching the selection request vector in the label vector knowledge base according to the classification type of the data selection label, and determines the target classification label as the target label; in the constructed request example vector knowledge base, searching for a target request example matching the selection request vector based on the large language model; according to the target label and the target request example, generating selection information corresponding to the data selection request based on the large language model, and sending the selection information to the interactive end for output; The selection engine end selects the selection data corresponding to the selection information through the generation request of the selection information output by the interaction end, and returns the selection data to the interaction end, and the interaction end outputs the selection data on the intelligent interaction interface.

10. A product selection method based on a large language model. It is characterized in that include: In response to a product selection request inputted through the intelligent service interaction interface, the product selection request is parsed based on a large language model to determine a selection request vector of the product selection request; According to the matching requirement, in the constructed label vector knowledge base, searching for a target label matching the selected request vector based on the large language model, including: when the matching requirement includes a label type requirement, the large language model searches for a target classification label matching the selected request vector in the label vector knowledge base according to the classification type of the data selected label, and determines the target classification label as the target label; in the constructed request example vector knowledge base, searching for a target request example matching the selected request vector based on the large language model; According to the target tag and the target request example, product selection information corresponding to the product selection request is generated based on the large language model for output on the intelligent service interaction interface.

11. A computer storage medium for storing data generated by a network platform and a program for processing the data generated by the network platform; When the program is read and executed by a processor, the program executes the method according to any one of claims 1 to 6; or, executes the method according to claim 7; or, executes the method according to claim 8; or, executes the method according to claim 10.

12. An electronic device, include: processor; A memory for storing a program for processing data generated by a network platform, wherein when the program is read and executed by the processor, the program executes the method as described in any one of claims 1 to 6; or executes the method as described in claim 7; or executes the method as described in claim 8; or executes the method as described in claim 10.

13. A computer program product comprising a computer program and / or instructions, It is characterized in that When the computer program and / or instruction is executed by a processor, the method described in any one of claims 1 to 6 is implemented; or the method described in claim 7 is implemented; or the method described in claim 8 is implemented; or the method described in claim 10 is implemented.

Citation Information

Patent Citations

  • Intelligent customer recommendation method, system and equipment based on large language model and medium

    CN116861087A

  • Task-based dialogue system and implementation method thereof

    CN116911312A

  • Text multi-label classification based on generative language model fine tuning

    CN116992027A

  • Shop recommendation method and device, electronic equipment and storage medium

    CN117273868A

  • Shopping guide method and system based on large language model

    CN117350825A