Commodity object searching method and device, electronic equipment and storage medium

Through the interaction between the large language model and the shopping website, personalized purchasing suggestions are generated, which solves the search complexity and accurate matching problems of B-end users when purchasing goods on the shopping website, improves search efficiency and accuracy, and reduces operating costs.

CN118733903APending Publication Date: 2024-10-01HANGZHOU ALIBABA INT INTERNET IND CO LTD
View PDF 0 Cites 12 Cited by

Patent Information

Application Number
CN202410660175.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When B-end users purchase goods on shopping websites, they face a complex search process, lack of personalized recommendations and accurate matching, which results in time-consuming and labor-intensive decisions, easy decision making errors, and increased operating costs.

Method used

Using a search method based on a large language model, the search basis data is obtained through the search request input by the client, prompt words are generated to interactively obtain search intent information, and accurate search results are generated based on the intent information to provide personalized procurement suggestions and diversified undertakings .

Benefits of technology

It optimizes the search results for product objects, deeply understands user needs, improves search efficiency and accuracy, and reduces users' operating costs and decision-making errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733903A_ABST
    Figure CN118733903A_ABST
Patent Text Reader

Abstract

The invention provides a commodity object searching method and device, electronic equipment and a storage medium. According to the embodiment of the invention, searching basis data used for searching a commodity object can be obtained according to a searching request triggered based on a client; based on the search basis data, generating a first prompt word corresponding to a commodity object search scene, and interacting with the large language model through the first prompt word to obtain search intention information corresponding to current commodity object search; and finally, based on the search basis data and the search intention information, generating a second cue word corresponding to the commodity object search scene, and interacting with the large language model through the second cue word to obtain a search result corresponding to the current commodity object search. By adopting the scheme, the search intention of the client user for searching the commodity object can be deeply analyzed and understood through interaction with the large language model, and a more accurate commodity object recommendation scheme is provided according to the search intention.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for searching commodity objects. Background Art

[0002] With the development of wireless network technology and mobile devices in the computer field, users are increasingly inclined to use smart terminals or wireless devices such as smartphones and tablets for online shopping and information acquisition. In this process, due to the complexity of online information, it is time-consuming and labor-intensive to search for the required information in massive data, so personalized recommendation is a key technology to improve user experience and enhance user stickiness.

[0003] Taking B-end user procurement as an example, since B-end users are mostly commodity operators or sellers, when B-end users search for the required commodities (sourcing) through shopping websites, there are characteristics such as complex demand expression, equal emphasis on centralized procurement and principal procurement, and multiple decision-making dimensions. For example, a user operates a home furnishing store. Since the home furnishing store purchases a large number of commodity types, which may involve cabinets, bowls, tablecloths, sofas, and even household items such as aromatherapy and ornaments, the sourcing function of the shopping website that needs to be used when purchasing these commodities is very complex (especially customized commodities). The procurement process of each commodity may include professional operations such as screening, inquiry, price comparison, and sampling, all of which require users to search and compare a large number of similar merchants. Products require users to have a certain level of proficiency in using shopping websites, which will incur a certain learning cost. Some users may feel that the functions of shopping websites are complicated, or give up using shopping websites because they cannot find certain functions on the shopping websites, resulting in user loss; in addition, some users lack effective comparison and decision-making basis for a large number of product supplies. They only rely on their own manual search and comparison of multiple products before making decisions. This is not only time-consuming and labor-intensive for users, but may also lead to wrong decisions due to the inability to obtain objective and comprehensive data, resulting in certain economic losses. If you entrust professionals to conduct market research, you will also need to pay additional fees, which invisibly increases the user's operating costs. Summary of the invention

[0004] Embodiments of the present application provide a method, device, electronic device, and storage medium for searching commodity objects to solve one or more of the above-mentioned technical problems.

[0005] In a first aspect, an embodiment of the present application provides a method for searching for commodity objects, comprising: obtaining search basis data for searching for commodity objects based on a search request triggered by a client; generating a first prompt word corresponding to a commodity object search scenario based on the search basis data, and interacting with a large language model through the first prompt word to obtain search intent information corresponding to this commodity object search; generating a second prompt word corresponding to the commodity object search scenario based on the search basis data and the search intent information, and interacting with the large language model through the second prompt word to obtain search results corresponding to this commodity object search.

[0006] In a second aspect, an embodiment of the present application provides a method for searching for commodity objects, comprising: obtaining search results corresponding to the current commodity object search according to a search request triggered by a client; wherein, after generating a second prompt word corresponding to the commodity object search scenario based on search basis data and search intent information, the search results are obtained by interacting with a large language model through the second prompt word; after generating a first prompt word corresponding to the commodity object search scenario based on search basis data for searching for commodity objects, the search intent information is obtained by interacting with a large language model through the first prompt word; and displaying the search results based on the client.

[0007] In a third aspect, an embodiment of the present application provides a search device for commodity objects, including: a search basis data acquisition module, used to obtain search basis data for searching commodity objects according to a search request triggered by a client; a search intention information acquisition module, used to generate a first prompt word corresponding to a commodity object search scenario based on the search basis data, and interact with a large language model through the first prompt word to obtain search intention information corresponding to this commodity object search; a search result acquisition module, used to generate a second prompt word corresponding to the commodity object search scenario based on the search basis data and the search intention information, and interact with the large language model through the second prompt word to obtain search results corresponding to this commodity object search.

[0008] In a fourth aspect, an embodiment of the present application provides a search device for commodity objects, including: a search result acquisition module, used to obtain search results corresponding to the current commodity object search according to a search request triggered by a client; wherein the search results are obtained by interacting with a large language model after generating a second prompt word corresponding to the commodity object search scenario based on search basis data and search intent information; the search intent information is obtained by interacting with a large language model after generating a first prompt word corresponding to the commodity object search scenario based on search basis data for searching commodity objects; and a search result display module, used to display the search results based on the client.

[0009] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor implements any of the methods described above when executing the computer program.

[0010] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the methods described above is implemented.

[0011] According to the embodiment of the present application, the search basis data for searching commodity objects can be obtained based on the search request triggered by the client; then, based on the search basis data, a first prompt word corresponding to the commodity object search scene is generated, and the first prompt word is interacted with the large language model to obtain the search intention information corresponding to this commodity object search; finally, based on the search basis data and the search intention information, a second prompt word corresponding to the commodity object search scene is generated, and the second prompt word is interacted with the large language model to obtain the search results corresponding to this commodity object search. The above scheme can be used to deeply analyze and understand the search intention of the client user to search for commodity objects through interaction with the large language model, and generate a more accurate commodity object recommendation scheme based on the search intention to optimize the search results of the commodity object. Especially in the scenario where B-side users purchase commodities through shopping websites, if the search scheme for commodity objects provided by this application is adopted, the commodity purchase demand (search intention information) contained in the user's natural language expression can be deeply understood through multiple conversational interactions between the large language model and the user, and then auxiliary recommendation and deep retrieval of commodity objects can be performed based on the user's commodity purchase demand.

[0012] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments according to the present application and should not be regarded as limiting the scope of the present application.

[0014] Figure 1 A schematic diagram of a system flow of a search solution for commodity objects provided in an embodiment of the present application is shown;

[0015] Figure 2An example of a client front-end page of a search solution for commodity objects provided in an embodiment of the present application is shown;

[0016] Figure 3 A schematic diagram showing the overall architecture of a search solution for commodity objects provided in an embodiment of the present application is shown;

[0017] Figure 4 A schematic diagram of the intention understanding process in a search solution for a commodity object provided in an embodiment of the present application is shown;

[0018] Figure 5 A flowchart of a method for searching for commodity objects provided in an embodiment of the present application is shown;

[0019] Figure 6 A flowchart showing another method for searching for commodity objects provided in an embodiment of the present application is shown;

[0020] Figure 7 A structural block diagram of a commodity object search device provided in an embodiment of the present application is shown;

[0021] Figure 8 A structural block diagram showing another device for searching commodity objects provided in an embodiment of the present application; and

[0022] Fig. 9 A block diagram of an electronic device used to implement an embodiment of the present application is shown. DETAILED DESCRIPTION

[0023] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the concept or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary in nature and not restrictive.

[0024] To facilitate understanding of the technical solutions of the embodiments of the present application, the following describes the related technologies of the embodiments of the present application. The following related technologies can be combined with the technical solutions of the embodiments of the present application as optional solutions, and they all belong to the protection scope of the embodiments of the present application.

[0025] Due to the differences in identity, industry, etc. among different types of client users, the logic of purchasing goods is quite different. In some cases, the user's potential identity is not inferred through the user's information and dialogue expressions, which makes the product sourcing and matching lack the understanding of the user's identity intention; only keyword extraction is performed on the information input by the user, without considering the demands of related purchases and user mental preferences and the differences in procurement models between different industries, which makes the user's further sourcing and exploration of goods relatively limited; in other cases, when searching for product objects, the search tends to be general content or knowledge-based query retrieval. Taking B-side users purchasing goods as an example, this general content or knowledge-based query retrieval lacks the understanding and professional knowledge of e-commerce industry-based and customized procurement, and it is difficult to provide accurate matching and screening logic in the e-commerce field. All of these will result in the final search results of the product objects failing to accurately match the actual needs of users.

[0026] This application innovatively integrates artificial intelligence (AIGC) capabilities into search engines, focusing on incremental sourcing value, and through interaction with a large language model, helps users fully express their sourcing demands based on natural language input, deeply understands Class B spot or customized purchasing intentions, and discovers more matching business opportunities. Based on a deep understanding of user-expressed needs, it intelligently provides personalized B-end user purchasing suggestions and diversified acceptance, thereby optimizing the matching efficiency of business opportunities. Specifically, in the solution provided in the embodiment of this application, after the user of the client enters the dialogue information in the client's interface, the large language model can perform intent recognition and reasoning based on the dialogue content, such as recognizing search intent (single intent, multiple intents, broad intent, etc.). Figure 3 The search intent can be identified by extracting the search intent keywords, price tendency, MOQ tendency (minimum order quantity) in the conversation content to trigger search recommendation and other sourcing service queries. After the search intent is identified, the corresponding acceptance mode can be used according to the different types of search intent (single category search, multi-category search or fuzzy search of unspecified categories), that is, single category search corresponds to single category search process, multi-category search or fuzzy search of unspecified categories corresponds to search process of multiple commodity object categories. For example, the single category search process can include providing purchase suggestions and centralized screening of commodities that meet the user's search intent; the search process of multiple commodity object categories corresponding to multi-category search can include parallel search of multiple commodity categories that meet the search intent; the search process of multiple commodity object categories corresponding to fuzzy search of unspecified categories can not only include parallel search of multiple commodity categories that meet the search intent, but also provide suggestions for disassembly, procurement, or assembly according to the search intent.

[0027] Conventional searches only focus on keyword (query) understanding, thus focusing on the recall and screening of products. However, this solution not only focuses on keywords, but also can understand the user's expression, purchasing intention, and sourcing method based on search basis data such as conversations with users, so as to better provide users with accurate product object search results to meet user needs. In the data link, the general search link is "keyword (query) extraction-keyword (query) recall-product object screening"; and the search link of the solution provided in this application can be summarized as "conversation-intention understanding-keyword (query), price, capability extraction (such as search engines, comparison tools, etc.)-capability distribution (such as returning search engines, comparison tools Search or comparison results)-keyword (query) recall, price screening, comparison suggestions and other combinations.

[0028] Figure 1 A system flow diagram of a search solution for commodity objects provided in an embodiment of the present application is shown. Figure 1 As shown, the system flow of the search solution for commodity objects provided in the embodiment of the present application may include the interaction process between the client front end, the client back end (magellan), the smart search agent (SmartSearchAgent) and the large language model (LLM). Among them, the smart search agent (SmartSearchAgent) can be used as the execution subject in the embodiment of the present application, and the search solution for commodity objects provided in the present application is realized by interacting with the client back end through the smart search agent (SmartSearchAgent) and calling the large language model or search engine, comparison tool (R-Lab Product Comparision Application), etc. Among them, the client back end may have the capabilities of session object (Session) maintenance, model reply cache, commodity search result cache, etc. In addition, the large language model called in the embodiment of the present application may be a large language model of a multi-layer Transformer network structure, and its training data may include the data of a general large language model, or the access behavior data of a specific commodity platform, so that the large language model is more suitable for a specific commodity platform, and then it can provide more accurate and personalized commodity search suggestions for users using the commodity platform.

[0029] First, the search basis data for searching commodity objects can be obtained based on the search request triggered by the client. The search request triggered by the client can be a commodity search request in the form of images, voices and / or texts (user natural language input) input by the user through the client front end. The search basis data for searching commodity objects can include the content input by the user to the client front end (which can be the content after calling the large language model to convert the commodity search request in the form of text, voice, pictures, etc. into text form), and can also include the answer given by the manual customer service to the content input by the user or the answer generated by the artificial intelligence AI (which can be realized by calling the large language model) based on the content input by the user. Taking the purchase of buyers (users) through shopping websites as an example, the specific scenario can be that the user has multiple rounds of dialogues with manual customer service or AI, and the large language model can use the content of the acquired single round dialogue or multiple rounds of dialogue as the search basis data for searching commodity objects.

[0030] Secondly, based on the search basis data, a first prompt word corresponding to the commodity object search scenario can be generated, and the first prompt word can interact with the large language model to obtain the search intent information corresponding to this commodity object search. The first prompt word can be a prompt word with search basis data, and specifically can be combined with the first type of prompt word template for requesting to identify the search intent and the search basis data to generate the first prompt word corresponding to the commodity object search scenario. Figure 1As shown, the large language model (LLM) can be called to understand the intent (IntentUnderstand) of the search basis data obtained above for searching for commodity objects, and generate prompt words (Prompt splicing, the first prompt word can be generated by splicing prompt words) in combination with the first type of prompt word template used to request the recognition of search intent and the search basis data (input). Further, the first prompt word interacts with the large language model to obtain the search intent information corresponding to the current commodity object search, wherein the search intent information may include the search intent type, commodity object description information (which may be a description of the attributes of the commodity object, which may be text or an image, and the text may be input text or text converted from speech), commodity object category, commodity object price, and commodity object order quantity; the search intent type may include: single category search, multi-category search, or fuzzy search of unspecified categories. That is, the large language model can identify user intent (for example, determine the search intent type) and decompose user intent (for example, obtain the price of the product object, the order quantity of the product object, etc.) based on the first prompt word, and then generate recommended products, give reasons for the recommendation, etc., and output the model results (which can be the above-mentioned search intent type, recommended products, reasons for recommendation, etc.) to the smart search agent (SmartSearchAgent). The smart search agent (SmartSearchAgent) can recognize the model results of the large language model. For example, it can analyze the model recognition results, identify the search intent type returned by the large language model (such as multi-category search), and prompt the large language model to use multi-intent tools (multi-category search corresponds to the search process of multiple commodity object categories). For example, parallel search returns diversified results, and calls tools (for example, calling the parallel search capability in the search engine tool, or calling the capability in the comparison tool, etc.). After retrieving the parallel search results of multiple intents, the large language model (LLM) is called to observe the results. The large language model can judge (End?) whether the final answer is obtained from the perspective of whether it meets the user's intent. If yes, the user's intent can be further analyzed; if no, it returns to the input stage and regenerates the first prompt word corresponding to the commodity object search scenario based on the search basis data (which can be updated search basis data, such as data after several rounds of dialogue between the user and the artificial customer or intelligent AI), and obtains the search intent information. That is to say, the search basis data can be updated in real time based on the user's input.For example, if the user's input or multiple rounds of dialogue do not fully express the user's search intent, the first prompt word generated based on it cannot get the final answer to determine the user's intent, so the search basis data can be re-acquired and the first prompt word can be re-generated. This process can be repeated multiple times, and this application does not impose any restrictions on this. Optionally, in the above process, the generated model results or result recognition results can also be returned to the client front end for user confirmation.

[0031] Finally, based on the search basis data and the search intent information, a second prompt word corresponding to the commodity object search scenario can be generated, and the second prompt word can interact with the large language model to obtain the search result corresponding to the current commodity object search. The second prompt word corresponding to the commodity object search scenario can be generated by combining the second type of prompt word template for requesting to search for commodity objects and the search basis data. Figure 1 As shown in the figure, after the large language model determines the final answer (Yes), the second prompt word ( Figure 1 ), further analyze the user's intention.

[0032] Among them, the second prompt word can be generated based on the commodity object access behavior of the search user (for example, judging the user's intention to find the source and find the expected commodity object according to the aforementioned first prompt word) and / or the commodity object search behavior (for example, judging the commodity object category that the user is interested in according to the user's search history, or the expression method during the search, etc.), as well as the search basis data and the aforementioned search intention information identified according to the first prompt word, to generate the second prompt word corresponding to the commodity object search scenario. Alternatively, the second prompt word can be generated by obtaining user behavior feature information generated based on user behavior information and / or user session information related to the search user, wherein the user behavior feature information represents the user's preference for commodity objects and / or transportation processes, and the user behavior feature can be used as an auxiliary parameter for post-search screening, and then based on the user behavior feature information, the search basis data and the search intention information, the second prompt word corresponding to the commodity object search scenario is generated. The purpose of generating the second prompt word is to more accurately identify the user's intention based on more user and commodity related information, in order to provide more accurate commodity object suggestions, etc.

[0033] User intent can include single category intent (single category search), multi-category intent (multi-category search), broad category intent (fuzzy search of unspecified categories). Single category search corresponds to a single category search process, and multi-category search or fuzzy search of unspecified categories corresponds to a search process of multiple commodity object categories. For example, when it is judged as a single category intent, model procurement suggestions, platform screening conditions, etc. can be further given; when it is judged as a multi-category intent, multi-category search terms can be further given; when it is judged as a broad category intent, broad category search recommendations can be further given.

[0034] Further, the second prompt word is input into the large language model so that the large language model calls the commodity search process corresponding to the search intent type indicated by the search intent information, obtains the search results corresponding to this commodity object search, and returns the above search results to the intelligent search agent (the intelligent search agent obtains the intent understanding result, IntentUnderstand result), and then returns the result to the client backend (large model answer and recommended content), and the client backend sends the result to the client frontend for display (displaying the large model reply result + recommended search category). Among them, the commodity object search process searches for commodity objects based on the search basis data and search intent information, and the large language model can delete commodity objects that do not match the user behavior feature information from the search results. In addition, when the search intent type indicated by the search intent information is a broad category intent (fuzzy search of unspecified categories), the large language model can also output a variety of commodity object categories corresponding to the fuzzy search of unspecified categories and procurement and combination purchase plans for a variety of commodity object categories. At the same time, the large language model can also output the comparison data of the search results in at least one dimension, the search intent information, and the commodity search process corresponding to the search intent type indicated by the search intent information.

[0035] For example, for different buyers, users can enter search requests through the corresponding entrances in the client page. Based on the search requests entered by the user, the large language model can be called to infer the user's identity, such as what type of buyer he is. The types of buyers can include centralized purchasing buyers, specialized purchasing buyers, and new buyers. Among them, the conversation flow of centralized purchasing buyers generally includes: broad expression initiation - issuing multi-product procurement instructions - recommending merchants to meet multi-category demands, so the search intention types of centralized purchasing buyers are mostly fuzzy searches of unspecified categories; the conversation flow of specialized purchasing buyers generally includes: clear demands - AI provides instructions and screening suggestions - after multi-condition screening is applied, directly initiate comparison for fine screening - comparison results, so the search intention types of specialized purchasing buyers are mostly multi-category searches; the conversation flow of new buyers generally includes: finding new things - AI provides instructions and screening suggestions, so the search intention types of new buyers are mostly single-category searches, and some are multi-category searches or fuzzy searches of unspecified categories. In some embodiments, the present application can first infer the user's identity by calling a large language model to determine the user's initial search intent type (based on the first prompt word); then further determine the user's intent (based on the second prompt word) through user behavior characteristics such as the user's search behavior, and provide a more accurate product object recommendation plan that meets the user's intent.

[0036] The big model response results and recommended search categories displayed on the client front end can be displayed in different ways according to the user intent identified by the big language model. For example, when it is judged to be a single category intent (single category search), the platform filter conditions can be displayed to the user for further selection of filter conditions for search (user interaction initiates search), and the client back end can call the tool based on the search request intelligent search agent initiated by the user. The tool call can call the search engine's parallel search, filter item search, merchant search and other capabilities, and then give the result of single category platform search (single category intent, with platform filter items, SpecificGenreIntentSearch); when it is judged to be a multi-category intent (multiple category search), the user can be asked whether he needs to search for suppliers who can produce these categories at the same time. The user can further initiate a search according to the prompt (user interaction initiates search), and the client back end can call the tool based on the search request intelligent search agent initiated by the user. The tool call can call the search engine's parallel search, filter item search, merchant search and other capabilities, and then give the result of supplier search (multiple category intent, MultipleGenreIntentMerchantSearch). That is to say, when the client backend is searching a single category platform, searching for suppliers, or obtaining large model answers and recommended content, it can request the intelligent search agent to call tools, such as calling the search engine for parallel search, filter item search, or merchant search, or calling comparison tools, etc. This application does not impose any restrictions on this.

[0037] After requesting the intelligent search agent to call the tool, such as calling the search engine for parallel search (ParallelSearch), filter search or merchant search, the product search results such as supplier search or single category platform search can be returned to the client backend. The client backend can package the search results (search result packaging processing) and return the packaged search results to the client frontend for product display. The user can further operate on the client frontend, such as selecting products for product comparison (user clicks on product comparison), etc., and then request the intelligent search agent to call the tool through the client backend (product comparison, CompareProduction) to call the comparison tool (R-Lab ProductComparision Application) to compare products. This step of product comparison can also be obtained by generating prompt words (Prompt splicing) and interacting with the large language model to obtain product comparison results. Correspondingly, the comparison tool can process the generated comparison results or the product comparison results generated by the large language model (model reply processing) or package the results, and then return the results to the client backend. The client backend can further package the product comparison results and display the product comparison results before returning them to the client.

[0038] Figure 2 An example of a client front-end page of a commodity object search solution provided in an embodiment of the present application is shown. In the commodity object search solution provided in the present application, the client front-end page may include an input box for the user to enter the search content, and the search results of the commodity object may be displayed as Figure 2The input box on the client front page can be marked with the words "Smart Search" to prompt users to enter text, voice, pictures and other content for smart search; controls or entrances such as "History" and "Disclaimer" can be displayed next to the input box for users to view search history (History), disclaimer (Disclaimer) terms, etc. For example, a user enters "I manage a clothing store located in Country A. I am looking for women's autumn and winter clothing and plan to order at least 100 women's sweaters" in the input box (the language used in the example here is Chinese, and the English region can use "I manage a clothing store located in Country A. I am searching for women's autumn and winter clothing and planning to order at least 100 pieces of woman's sweaters.", and other language regions can also use the language used in the region, or multiple language types can be provided in the same region for users to choose from, the same below, and this application does not impose any restrictions on this). According to the search results obtained by the search solution process for commodity objects provided in this application such as interaction with the large language model, the search intent, procurement suggestions, commodity screening rules, analysis results, recommendations, etc. returned by the large language model can be displayed on the client front-end page. For example, the front-end page of the client can display the search intent returned by the large language model, "Based on your needs, it is recommended that you consider the following factors when sourcing women's sweaters" (in the English region, it can be displayed as "Based on your needs, it is recommended that you consider the following factors when sourcing women's sweaters"), where "women's sweaters" is the smart search summarization (Smartsearch summarizing) performed by the large language model based on the user's input "I run a clothing store in Country A. I am looking for women's autumn and winter clothing and plan to order at least 100 women's sweaters", that is, the intention extraction and structuring of the large model. The front-end page of the client can also display the purchasing suggestions returned by the large language model, "Style: Different styles can be selected according to the preferences of the target market, such as simple, classic, fashionable, loose, etc., to meet the needs of different customers. Design: Various design elements, such as patterns, collars and sleeves, can make sweaters more attractive.Considering the weather in autumn and winter, you can choose a thicker style or a detachable collar design" (The English region can display "Style: According to the target market preferences, different styles can be selected, such as simple, classic, fashionable, loose, etc., to meet the needs of different customers. Design: Various design elements, like patterns, collars, and sleeves, can make sweaters more appealing. Considering the weather in autumn and winter, you can choose a thicker style or a detachable collar design.") etc. (Big model: Expertise procurement suggestions Know How). In addition, the client front-end page can also display the product filtering rules returned by the big language model "The agent has collected a variety of selected products to meet your needs. In addition, you can also choose: from a verified custom manufacturer with a dedicated production line. [1] Will deliver on time [2] Add to your order; easy return [3] Flights can be returned to local warehouses for free" (In English, it can be displayed as "Agent collects a variety of selected products that can satisfy your needs. Besides, you can also choose to: Source from Verified Custom Manufactures with dedicated production lines; Add On-time Dispatch to your order; Fliter for Easy Return to return to local warehouses for free"), etc. (Client backend: rule-transmitting platform filtering). Users can further select product filtering rules that meet their needs, and then call the large language model to delete product objects that do not meet the selected rules from the search results according to the filtering rules or re-search, etc., in order to obtain product object retrieval results that better meet user expectations.

[0039] Of course, the client front-end page can also display the analysis results returned by the large language model, such as "'Women's sweaters with an MOQ of lower than 100' products ('Products for "women's sweaters with an MOQ of lower than 100" can be displayed in English regions) - Women's sweater 1 (with pictures), price: 100-500 yuan, minimum order quantity: 5 pieces; Women's sweater 2 (with pictures), price: 30-50 yuan, minimum order quantity: 50 pieces; Women's sweater 3 (with pictures), price: 1000-5000 yuan, minimum order quantity: 30 pieces" (Analyze and display results, Apply and show results). If there are too many results, some of the results can be folded and displayed, and a "View more results" control or entrance can be provided for users to view. At the same time, the client front-end page can also display the recommended content returned by the large language model, that is, the client back-end and product side: category attribute / query recommendation, can display the control or portal corresponding to the title of the recommended content for users to click to view, for example, displaying controls or portals such as "Search for zippered cashmere sweaters (English regions can display 'Search for zippered cashmere sweaters')", "Search for casual street styles sweaters (English regions can display 'Search for casual street stylesweaters')", "Show other recommendations (English regions can display 'Show other recommendations')", etc., and users can click such controls or portals to view the corresponding results such as zippered cashmere sweaters and casual street styles sweaters. It is also possible to provide controls such as "Like (English regions can display 'Like')" and "Dislike (English regions can display 'Dislike')" for users to evaluate the displayed recommended content, and use the user's search, evaluation and other data as training samples to further train the large language model, or return them to the large language model as user behavior features such as user preferences, so that the large language model can generate recommended products that better meet user expectations.

[0040] Figure 3The overall architecture diagram of a search scheme for a commodity object provided in an embodiment of the present application is shown. In the overall architecture of the embodiment of the present application, a client front end, a client back end (magellan), an intelligent search agent interface service (R-Lab-Agent-API service), a tool call capability (Galaxy capability), etc. may be included. Among them, the client front end may provide capabilities such as AI search floors, AI search portals, and AI dialogue portals. The client back end may provide intelligent search services (Smart Search services) based on user input (User input) of the client front end, and request processing (SSE output) related work content, such as query processing (Query processing), model calling, user information, data assembly, etc. According to the session information input by the client front end, the session and buried point information may be output for online data tracking and collection, and under the mechanism of deep understanding of some core large language models, the dialogue process of multiple conversations between users and AI, commodity interaction (whether the user has purchased or browsed certain commodities, etc.), and statistics are added to the large language model to continuously optimize the large language model. The client backend can initiate an intelligent search agent request (R-Lab Agent request) to the intelligent search agent interface service. The intelligent search agent interface service can perform agent intent recognition, agent intent extraction, agent tool call, etc. according to the request of the client backend. Agent intent recognition can refer to outputting intent keywords based on the input session information, that is, identifying which type of intent the user belongs to (single category search, multi-category search, or fuzzy search of unspecified categories) and the keywords of the intent. For example, multi-category search (multi-intent) includes bowls, chopsticks, and tablecloths, and the user session is understood through a large language model; Agent intent extraction can refer to outputting the capability tools to be called based on the input intent keywords, evoking different tool capabilities by identifying different intents, and supplementing the parameter information of the tool call. Different tool capabilities can be processes corresponding to different intent types, and parameter information can be for intent. The auxiliary functions of the graph keywords (such as low price, cost-effectiveness), analysis of user behaviors other than the current session, and determined user consumption habits will be converted into parameters and passed to the tool, such as real-time analysis of user behavior or user historical sessions; Agent tool call can refer to the output of corresponding data information based on the parameter information input to the tool, such as product search, product screening, etc., and obtain specific product data / suggestions through tool call, first search for products and then screen them. The basis for product screening can be determined based on the aforementioned parameters (such as price, minimum order quantity MOQ, delivery time).

[0041] Among them, Agent intent recognition can include session object (Session) management (creation / switching / renewal), etc., such as managing the sessions of robot A (chat A), robot B (chat B), robot C (chat C) with different users, creating, switching or renewing robots, etc.; Agent intent extraction can include procurement intent, service intent, product intent or comparison intent, etc.; Agent tool calling can include parameter mapping, request processing, tracking point recording or content aggregation, etc. In addition, the tool calling capability (Galaxy capability) in the overall architecture can be called by the intelligent search agent, and after the call, it can provide product search, trend purchasing or product comparison capabilities based on tool asynchronous request (Tools asynchronous request).

[0042] Correspondingly, based on the above architecture, it can be divided into four steps to provide users with a search solution for commodity objects. Among them, the first step: search service processing (request processing, data assembly); the second step: intelligent search agent intent analysis (Agent intent recognition, task allocation, instruction generation); the third step: intelligent search agent (Agent) tool execution (functional instructions are finally executed); the fourth step: search page rendering (streaming output, page rendering). In this process, you can use the NCMS building platform (used to build the client front-end display interface) to generate the client front-end display interface. The NCMS building platform can input the feedback and tool information of the large language model, and output the interactive components of the client front-end page, so that the client front-end becomes a visual page through data rendering and feedback to the user. After the above steps, the search results of the commodity objects displayed on the client front-end through the page response (streaming rendering) can include the intent analysis floor, the rule screening floor, the commodity search floor, etc., as shown in the following figure. Figure 2 Take the display results shown as an example, Figure 3 As shown, the intent analysis layer can include the content of big model intent extraction and structuring and big model expertise procurement recommendations (Know How); the rule screening layer can include the content of client backend rule penetration platform screening; the product search layer can include the content of analyzing and displaying results, etc. Figure 3 Zhongyu Figure 2 The same parts will not be repeated here.

[0043] Figure 4 The following is a schematic diagram of the process of understanding the intent in a search solution for a commodity object provided in an embodiment of the present application. Figure 4As shown, according to the natural language input by the user at the client front end, the large language model can be called to analyze the user's natural language input, identify the user's intention, and classify the intention. For example, based on the content of the user's conversation with the professional purchasing assistant AI, the large language model can be used to identify the conversation intent, and then the large language model can be called to generate prompt words (prompt) based on the conversation information and conversation scenario. The large language model is asked to search for product results that meet the conversation intent. The generated prompt words can be generated based on the pre-trained prompt word template and user information. The large language model can be a large language model pre-trained with multiple conversation scenarios. The large language model classifies intent, which can be roughly divided into three categories, namely single category search (user input determines a single category), multi-category search (user actively inputs multi-category intentions) or fuzzy search of unspecified categories (user input or based on scenarios / identities, etc., it is judged as a broad category intention).

[0044] According to different intent classifications, single-category search can correspond to the single-category search process, and multi-category search or fuzzy search without specified categories can correspond to the search process of multiple commodity object categories. Figure 4 As shown, when the intent is classified as a single-category search (user input determines a single category), the corresponding single-category search process can be purchase suggestions and platform mind screening. Such suggestions can use public network data, other purchases of the same category of goods, or other purchase records of buyers who input the same keywords to pre-train the large language model, so that the large language model can give such suggestions. When the intent is classified as a multi-category search (users actively input multi-category intents), the corresponding search process for multiple categories of goods objects can be parallel retrieval of multiple categories (for example, goods objects of three categories can be retrieved in parallel at the same time), that is, when processing user query requests, multiple search tasks can be performed simultaneously, so as to quickly and efficiently retrieve relevant goods from multiple intents (queries) and return results to users, thereby improving user experience. In the case where the intent is classified as a fuzzy search of an unspecified category (user input or judged as a broad category intent based on scenario / identity, etc.), the corresponding search process for multiple commodity object categories may include parallel retrieval of subcategories derived from broad categories, and providing disassembly / purchase / grouping suggestions. That is, on the basis of parallel retrieval of multiple categories, further suggestions may be provided, such as outputting multiple commodity object categories corresponding to the fuzzy search of an unspecified category and procurement and combination purchase plans for multiple commodity object categories.

[0045] Finally, after the above search process is completed, the user can continue to input through the client front end, or provide the user with other optional controls for click guidance, so as to further understand the user's intention and classify the intention. After the above search process is repeated several times, the user's true intention can be judged more accurately and more accurate product recommendations can be given. In this process, the answer of the large language model and the content of the recommended words can also be returned to the client front end for display to the user, so that the user can view and correct the corresponding content in time.

[0046] The execution subject of the embodiment of the present application may be an application, service, instance, software-based functional module, virtual machine (VM), container or cloud server, etc., or a hardware device (such as a server or terminal device) or hardware chip (such as CPU, GPU, FPGA, NPU, AI acceleration card or DPU) with data processing function. The device for implementing commodity object search can be deployed on the computing device of the application party that provides the corresponding service or on the cloud computing platform that provides computing power, storage and network resources. The mode of providing services to the outside world by the cloud computing platform may be IaaS (Infrastructure as a Service), PaaS (Platform as a Service), SaaS (Software as a Service) or DaaS (Data as a Service). Taking the platform providing SaaS software as a service (Software as a Service) as an example, the cloud computing platform can use its own computing resources to provide the training of commodity object search models or the functional execution of commodity object search modules, and the specific application architecture can be built according to service requirements. For example, the platform can provide construction services based on the above model to applications or individuals using platform resources, and further call the above model and implement online or offline commodity object search functions based on commodity object search requests submitted by relevant clients or servers and other devices.

[0047] 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 the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0048] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The several specific embodiments listed can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0049] The present application embodiment provides a method for searching commodity objects, such as Figure 5 The flowchart of a method 500 for searching for commodity objects according to an embodiment of the present application is shown. The method 500 may include:

[0050] In step S501, according to a search request triggered by a client, search basis data for searching for commodity objects is obtained.

[0051] Among them, the search basis data is used as a basis for screening target product objects that meet the user's intention when searching for product objects. Based on the search basis data, the scenarios involved in the client's conversation content and information such as user intention can be identified, and then products that meet the user's intention can be searched out.

[0052] The search basis data includes but is not limited to the real-time conversation content of the client and the historical storage data related to the real-time conversation content, for example, the content input by the user to the client front end (input data in non-text form such as voice and pictures can be converted into text form), the answer given by the manual customer service to the content input by the user, or the answer generated by artificial intelligence AI (which can be achieved by calling a large language model) based on the content input by the user, and the user behavior data, scene information data, product information data, etc. related to the above content stored in the back-end or cloud database.

[0053] In a possible implementation, according to a search request triggered by a client, the search basis data for searching for commodity objects can be obtained by obtaining an image, voice and / or text input by the client.

[0054] That is to say, the large language model can be called to convert the product search request in the form of text, voice, picture, etc. input by the user from the client front end or output by manual customer service, AI, etc. to the client front end into text form, and the content after conversion into text form is used as the search basis data for searching product objects. Taking the buyer (user) purchasing through a shopping website as an example, the specific scenario can be that the user has multiple rounds of dialogue with manual customer service or AI. During the multiple rounds of dialogue, the user, manual customer service or AI, etc. can input images, voice and / or text to the client front end for a single round of dialogue or multiple rounds of dialogue. The large language model can use the content of the single round of dialogue or multiple rounds of dialogue obtained by the client front end as the search basis data for searching product objects.

[0055] In step S502, based on the search basis data, a first prompt word corresponding to the commodity object search scenario is generated, and the first prompt word interacts with the large language model to obtain search intent information corresponding to this commodity object search.

[0056] Among them, the first prompt word can be a prompt word with search basis data, which can extract keywords from the text, pictures, voices, etc. obtained by the client, or extract keywords after summarizing the conversation content between the user and AI, or all the content obtained by the client front end as search basis data. The first prompt word can be generated in combination with the first type of prompt word template used to request identification of search intent and the search basis data.

[0057] The large language model involved in the embodiments of the present application can be a large-scale artificial intelligence model, especially a model in the field of natural language processing (NLP). Such models have a very large number of parameters, which can reach billions or even trillions of parameters. Due to their large scale, these models usually require very high computing resources for training and operation. That is, the large language model can be a deep learning model or a neural network model trained with a large amount of text data, which works by analyzing a large amount of text data and learning the patterns of language use, and can generate natural language text or understand the meaning of language text. The generated text is very close to what humans say or write. It is mainly divided into models based on autoencoders, sequence-to-sequence models, Transformer-based models, recursive neural network models, and hierarchical models, etc. Different large language models are good at handling different types of tasks. For example, the autoencoder-based model encodes the input text into a lower-dimensional representation and then generates new text from the representation. It is suitable for processing tasks such as text summarization or content generation, and can be used for content generation of various content types related to lists; the Transformer-based model uses a neural network architecture and is good at understanding long-distance dependencies in text data. It is suitable for processing various language tasks such as generating text, translating languages, and answering questions. It can be used for content generation of various content types related to lists. In the specific implementation, the corresponding large language model can be selected as needed, and this application does not limit this.

[0058] The training data required for training a large language model can be a single data point or sample in a large data set, containing at least one question and an expected answer. In the process of training a large language model, the large language model can also be fine-tuned, that is, additional training is performed on the basis of a pre-trained large model to adapt to specific tasks. The pre-trained model used can be pre-trained with a large amount of data, and the pre-trained model has learned generalized feature representations. The purpose of fine-tuning is to allow the large language model to further utilize a small amount of target task data for optimization and improvement.

[0059] The execution subject in the embodiment of the present application can utilize the inductive reasoning ability of the large language model (LLM) to complete complex commodity object search tasks by assigning roles and context information to the execution subject and equipping it with corresponding tool plug-ins, provide more accurate commodity object search results, make the search for commodity objects more intelligent, and improve the user experience.

[0060] Exemplarily, the search intent information may include at least one of the search intent type, commodity object description information, commodity object category, commodity object price, and commodity object order quantity; the search intent type may include: single category search, multi-category search, or fuzzy search of unspecified categories.

[0061] Among them, the search intent types can include single-category search (user input determines a single category), multi-category search (user actively inputs multi-category intentions) or fuzzy search without specified categories (user input or based on scenarios / identity, etc., judged as broad category intentions). Taking the example of users being buyers of shopping websites, single-category search can correspond to the buyer's single intention. Buyers have a main, single purpose or goal in the purchase decision process, which means that buyers have a clear, dominant need or problem when looking for solutions, and their decision-making process will mainly revolve around this single intention. For example, a buyer may only focus on buying yoga pants, which is the buyer's single intention; multi-category search can correspond to the buyer's multiple intentions. Buyers have multiple related goals or needs when purchasing, and they will consider many factors when evaluating and selecting suppliers. In this case, the buyer's decision-making process will be more complicated. For example, if the buyer is a local auto parts dealer, he may purchase a variety of different accessories according to the car brand; multi-category search can correspond to the buyer's broad intention. Buyers may show more generalized and unspecific purchase goals or needs in the purchase decision process. This intention is not as specific and clear as single intention or multiple intentions. Therefore, such buyers need more guidance and information to help them narrow down their choices and ultimately make clearer purchase decisions, such as retailers purchasing different categories for sale based on trend changes. Depending on the intent classification, a single-category search can correspond to a single-category search process, and a multi-category search or a fuzzy search with no specified category can correspond to a search process for multiple product object categories.

[0062] The commodity object description information may be a description of the attributes of the commodity object, and may be in text form or in image form. For example, the text may be text entered by the user, or may be text converted from voice entered by the user. The commodity object category may refer to the industry, type, etc. to which the commodity object belongs. The classification method of the commodity object category may be based on the general understanding of the market, or the historical data of the website, etc., and this application does not impose any restrictions on this. The commodity object price may be a marked price such as the unit price or wholesale price of the commodity object. The commodity object order quantity may refer to the minimum order quantity or maximum order quantity of the commodity object, etc., and this application does not impose any restrictions on this.

[0063] In a possible implementation, the large language model is a multi-layer Transformer network structure, and the training data of the large language model includes access behavior data of the commodity platform.

[0064] Among them, the multi-layer Transformer network structure can be a network trained based on the Qwen base (basic pre-trained language model, base model), where Qwen can be a pre-trained model with a multi-layer Transformer network structure. Similar to other large language models, it can handle various NLP tasks such as text generation, summarization, question answering, etc. Its uniqueness lies in its flexibility and scalability, which can be optimized for specific tasks through Fine-Tuning. Four types of models can be included in the training process, namely pre-trained models (Pretrain Models), training reward models (RMModels), supervised fine-tuning models (SFT Models) and human feedback reinforcement learning models (RLHF Models). Pretrained models (Pretrain Models) may include a coding-specific model (Code-Qwen) and a visual language model (Qwen-VL); training reward models (RM Models) may include a preference model pre-training (Qwen-PMP) and a training reward model (Qwen-RM); supervised fine-tuning models (SFT Models) may include a chat model (Qwen-Chat), a coding-specific chat model (Code-Qwen-Chat), a mathematics-specific model (Math-Qwen-Chat), and a visual language chat model (Qwen-VL-Chat); human feedback reinforcement learning models (RLHF Models) may include human feedback reinforcement learning (Qwen-Chat-RLHF).

[0065] In the embodiment of the present application, large language models (LLMs) such as GPT-4 (intelligent robot), BERT (unsupervised self-supervised model) and T5 (sequence to sequence model) can be natural language processing (NLP) models based on deep learning, which are pre-trained on large-scale text data and can understand, generate and translate text. These models usually adopt the transformer (Transformer) architecture because they can perform well in processing long-distance dependencies and parallel computing. The Transformer architecture can be composed of Encoder (encoder) and Decoder (decoder), and the core part can be Self-Attention (self-attention mechanism), which allows the model to take into account the context information of the entire sequence when processing each word. Among them, Self-Attention (self-attention mechanism) can be used to weight the key information of different positions within the sequence, and enhance the model's ability to capture context; Positional Encoding (position encoding) can be used in Self-Attention (self-attention mechanism), and positional encoding can capture position information in the sequence by adding position information to each word.

[0066] In an embodiment of the present application, a large language model can be trained using a supervised fine-tuning method. During training, access data including the commodity platform can be used as training data, and data diversity can be ensured, such as using training data of different types, different tasks, different fields, and multiple languages. In processing the training data, the training data can be deduplicated first, and low-quality data can be removed using rule-based and machine learning methods, multiple models can be used to score the data, and high-quality data can be added. In the later stages of training, real data can also be used for training. For example, a preliminary model is trained using manually annotated expert data in the early stages, and model training is further performed using subsequent collected real search data.

[0067] In step S503, based on the search basis data and the search intent information, a second prompt word corresponding to the commodity object search scenario is generated, and the second prompt word interacts with the large language model to obtain search results corresponding to this commodity object search.

[0068] Among them, the second prompt word can be generated based on the search basis data and search intent information obtained above. Through the interaction of the second prompt word with the large language model, the user intention can be further understood and more accurately identified based on more user and product related information, and more accurate search results corresponding to this product object search can be obtained.

[0069] Exemplarily, a method for generating a first prompt word corresponding to a commodity object search scenario based on search basis data may be to generate a first prompt word corresponding to a commodity object search scenario in combination with a first type of prompt word template for requesting to identify the search intent and the search basis data; correspondingly, a method for generating a second prompt word corresponding to a commodity object search scenario based on the search basis data and search intent information may be to generate a second prompt word corresponding to the commodity object search scenario in combination with a second type of prompt word template for requesting to search for commodity objects and the search basis data.

[0070] As mentioned above, the large language model can simulate a conversation with a person and obtain the output result by inputting questions. The input question method can include inputting prompt words. Different prompt words cover different amounts of information and different ways of expression, which have a great impact on the output results. These problems can be well solved by creating prompt word templates, but which template to use for different input content is also yet to be determined. Therefore, the embodiment of the present application can retrieve the prompt word template associated with the session message sent by the session requester of this session in the prompt word database, and modify the session message according to the prompt word template so that the prompt word template is adapted to the session message, thereby obtaining a better questioning method when the amount of information of the representation data of the session message sent by the session requester is certain, which is conducive to obtaining a higher quality output result of the large language model. After obtaining the matching prompt word template, the session message sent by the session requester can be combined with the prompt word template to generate a target prompt word for the input of the large language model to modify the session message. The prompt word database may be a database storing a variety of prompt word templates. These prompt word templates may be prompt word templates created according to different conversation scenarios, different conversation contents or different conversation objects, etc. The prompt word templates may be stored in a cloud database. This application does not impose any restrictions on the type and storage form of the prompt word database. Conversation messages of different content types may have corresponding prompt word template libraries respectively. The prompt word database storing prompt word templates may be pre-configured to generate prompt words for input into a large language model in combination with the representation data of the conversation message sent by the conversation requester of this conversation. Reply messages to conversation messages of different content types may be generated by calling the same or different large language models. A reply message of a content type may be generated by calling one or more large language models. The specific configuration may be based on actual needs.

[0071] In an embodiment of the present application, the first prompt word may have a corresponding first prompt word template, and a method for generating a first prompt word corresponding to a commodity object search scenario may be to combine a first type of prompt word template for requesting to identify the search intent and search basis data to generate a first prompt word corresponding to the commodity object search scenario; correspondingly, the second prompt word may have a corresponding second prompt word template, and may be to combine a second type of prompt word template for requesting to search for commodity objects and search basis data to generate a second prompt word corresponding to the commodity object search scenario.

[0072] In one possible implementation, the method of generating a second prompt word corresponding to a commodity object search scenario based on search basis data and search intent information may be to generate a second prompt word corresponding to a commodity object search scenario based on the search user's commodity object access behavior and / or commodity object search behavior, as well as the search basis data and search intent information.

[0073] Among them, the commodity object access behavior of the search user can refer to commodity sourcing, that is, finding the source of the commodity object. For example, according to the aforementioned first prompt word, it is judged that the user's intention is to seek the source and find the commodity object that meets the expectations. The commodity object search behavior can refer to the historical search records of a specific user or a specific commodity, or the expression method and keywords during the search, etc., which can be used as a basis to judge the commodity object category that the user is concerned about, user preferences and other information.

[0074] In some embodiments, the second prompt word corresponding to the commodity object search scenario is generated based on the search basis data and the search intention information by first obtaining user behavior feature information generated based on user behavior information and / or user session information related to the search user, and then generating the second prompt word corresponding to the commodity object search scenario based on the user behavior feature information, the search basis data and the search intention information. The user behavior feature information represents the user's preference for the commodity object and / or the transportation process.

[0075] Among them, user behavior characteristic information can represent the user's preference for product objects and / or transportation processes, and the user behavior characteristics can be used as auxiliary parameters. These parameters can be used for post-search screening, and then based on the user behavior characteristic information, search basis data and search intent information, a second prompt word corresponding to the product object search scenario is generated.

[0076] For example, parameter information can be auxiliary functions for intent keywords (such as price, minimum order quantity (MOQ), delivery time, cost-effectiveness, etc.), analysis of user behaviors other than the current session, and determined user consumption habits. These analyses and determined habits will be converted into parameters and passed to the tool, such as real-time analysis of user behavior or user historical sessions.

[0077] Exemplarily, the search results corresponding to the current product object search can be obtained by interacting with the large language model through the second prompt word. The second prompt word can be input into the large language model so that the large language model calls the product search process corresponding to the search intent type indicated by the search intent information. Accordingly, the product search process searches for product objects based on the search basis data and the search intent information, and the large language model deletes product objects that do not match the user behavior feature information from the search results; wherein the search intent types may include: single category search, multi-category search, or fuzzy search of unspecified categories, single category search corresponds to a single category search process, and multi-category search or fuzzy search of unspecified categories corresponds to search processes of multiple product object categories.

[0078] That is to say, in one way, the large language model can narrow the scope of the product search results generated according to the first prompt word according to the second prompt word, and delete the product objects that do not match the user behavior feature information. Of course, the scope of the searched product objects can also be expanded to find product objects that are more consistent with the user behavior feature information, and this application does not impose any restrictions on this.

[0079] In one possible implementation, when the search intent type indicated by the search intent information is a fuzzy search of unspecified categories, the large language model can also output multiple commodity object categories corresponding to the fuzzy search of unspecified categories and procurement and combination purchase plans for the multiple commodity object categories.

[0080] Take the example of providing group purchase suggestions to buyers on shopping websites. In the case of fuzzy searches without specified categories, buyers often have purchasing needs for multiple commodities, which need to be purchased or combined together. For example, a buyer in the manufacturing industry may need to purchase raw materials, machine parts and safety equipment, and a buyer in the catering industry may need to order food, catering equipment and cleaning supplies, etc. In these cases, buyers with group purchase needs tend to look for suppliers or platforms that can supply multiple commodities in one stop to improve efficiency and reduce procurement costs. Therefore, the general group purchase data in the industry or the shopping records of buyers in other industries on shopping websites can be used to pre-train the large language model, so that the large language model can give such group purchase suggestions and can also give suppliers or platforms that can supply multiple commodities in one stop. That is, while searching for C-end commodities, you can also search for B-end suppliers, so that users can find the recommended suppliers to customize the commodity group purchase needs.

[0081] In some embodiments, the large language model may also output comparative data of the search results in at least one dimension, search intent information, and a product search process corresponding to the search intent type indicated by the search intent information.

[0082] Among them, the comparison data of the search results in at least one dimension can be the comparison data of multiple retrieved product search results in dimensions such as price, order quantity, delivery time, etc. The dimensions can be set in advance, and this application does not impose any restrictions on this.

[0083] The present application also provides a method for searching commodity objects. Figure 6 The flowchart of a method 600 for searching for commodity objects according to an embodiment of the present application is shown. The method 600 may include:

[0084] In step S601, according to the search request triggered by the client, the search results corresponding to the current commodity object search are obtained; wherein, after the second prompt word corresponding to the commodity object search scenario is generated based on the search basis data and the search intent information, the search results are obtained by interacting with the large language model through the second prompt word; after the first prompt word corresponding to the commodity object search scenario is generated based on the search basis data for searching the commodity object, the search intent information is obtained by interacting with the large language model through the first prompt word.

[0085] In step S602, the search results are displayed based on the client.

[0086] Corresponding to the above examples and method embodiments provided in the embodiments of the present application, the embodiments of the present application also provide a device for searching commodity objects. Figure 7 The structure of a device 700 for searching commodity objects according to an embodiment of the present application is shown. The device 700 may include: a search basis data acquisition module 701, which is used to acquire search basis data for searching commodity objects according to a search request triggered by a client; a search intention information acquisition module 702, which is used to generate a first prompt word corresponding to a commodity object search scenario based on the search basis data, and to interact with a large language model through the first prompt word to obtain search intention information corresponding to the current commodity object search; a search result acquisition module 703, which is used to generate a second prompt word corresponding to the commodity object search scenario based on the search basis data and the search intention information, and to interact with the large language model through the second prompt word to obtain search results corresponding to the current commodity object search.

[0087] In a possible implementation, the search basis data acquisition module 701 may include: an image, voice and / or text acquisition submodule, which is used to acquire an image, voice and / or text based on the client input.

[0088] In one possible implementation, the search intent information obtaining module 702 may include: a first prompt word generating submodule, which is used to generate a first prompt word corresponding to a commodity object search scenario in combination with a first type of prompt word template used to request identification of search intent and the search basis data; the search result obtaining module 703 may include: a second prompt word generating submodule in combination with a second type of prompt word template, which is used to generate a second prompt word corresponding to a commodity object search scenario in combination with a second type of prompt word template used to request search for commodity objects and the search basis data.

[0089] In one possible implementation, the search intent information includes at least one of a search intent type, commodity object description information, commodity object category, commodity object price, and commodity object order quantity; the search intent type includes: single category search, multi-category search, or fuzzy search without specified categories.

[0090] In one possible implementation, the search result obtaining module 703 may include: a second prompt word generating submodule, which is used to generate a second prompt word corresponding to the commodity object search scenario based on the commodity object access behavior and / or commodity object search behavior of the search user, as well as the search basis data and search intention information.

[0091] In one possible implementation, the search result acquisition module 703 may include: a user behavior characteristic information acquisition submodule, used to acquire user behavior characteristic information generated based on user behavior information and / or user session information related to the search user, wherein the user behavior characteristic information represents the user's preference for commodity objects and / or transportation processes; and a second prompt word generation submodule based on the user behavior characteristic information, used to generate a second prompt word corresponding to the commodity object search scenario based on the user behavior characteristic information, search basis data and search intent information.

[0092] In some embodiments, the search result obtaining module 703 may include: a second prompt word input submodule, used to input the second prompt word into the large language model, so that the large language model calls the product search process corresponding to the search intent type indicated by the search intent information, the product search process searches for product objects based on the search basis data and the search intent information, and the large language model deletes the product objects that do not match the user behavior feature information from the search results; wherein, the search intent types include: single category search, multi-category search or fuzzy search of unspecified categories, single category search corresponds to a single category search process, and multi-category search or fuzzy search of unspecified categories corresponds to a search process of multiple product object categories.

[0093] In a possible implementation, when the search intent type indicated by the search intent information is a fuzzy search of an unspecified category, the large language model also outputs a plurality of commodity object categories corresponding to the fuzzy search of the unspecified category and procurement and combination purchase plans for the plurality of commodity object categories.

[0094] In a possible implementation, the large language model also outputs comparative data of the search results in at least one dimension, search intent information, and a product search process corresponding to the search intent type indicated by the search intent information.

[0095] In a possible implementation, the large language model is a multi-layer Transformer network structure, and the training data of the large language model includes access behavior data of the commodity platform.

[0096] Corresponding to the above examples and method embodiments provided in the embodiments of the present application, the embodiments of the present application also provide a device for searching commodity objects. Figure 8 The structure of a device 800 for searching commodity objects according to an embodiment of the present application is shown. The device 800 may include: a search result acquisition module 801, which is used to acquire search results corresponding to the current commodity object search according to a search request triggered by a client; wherein the search results are obtained by interacting with a large language model after generating a second prompt word corresponding to the commodity object search scenario based on search basis data and search intent information; the search intent information is obtained by interacting with a large language model after generating a first prompt word corresponding to the commodity object search scenario based on search basis data for searching commodity objects; and a search result display module 802, which is used to display the search results based on the client.

[0097] The functions of each module in each device in the embodiments of the present application can be found in the corresponding description in the above method, and have corresponding beneficial effects, which will not be repeated here.

[0098] Fig. 9 FIG. 1 is a block diagram of an electronic device used to implement an embodiment of the present application. Fig. 9 As shown, the electronic device includes: a memory 901 and a processor 902. The memory 901 stores a computer program that can be run on the processor 902. When the processor 902 executes the computer program, the method in the above embodiment is implemented. The number of the memory 901 and the processor 902 can be one or more.

[0099] The electronic device also includes:

[0100] The communication interface 903 is used to communicate with external devices and perform data exchange transmission.

[0101] If the memory 901, the processor 902 and the communication interface 903 are implemented independently, the memory 901, the processor 902 and the communication interface 903 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0102] Optionally, in a specific implementation, if the memory 901, the processor 902 and the communication interface 903 are integrated on a chip, the memory 901, the processor 902 and the communication interface 903 can communicate with each other through an internal interface.

[0103] An embodiment of the present application provides a computer-readable storage medium storing a computer program, which implements the method provided in the embodiment of the present application when the program is executed by a processor.

[0104] An embodiment of the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method provided in any embodiment of the present application is implemented.

[0105] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present application.

[0106] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the present application.

[0107] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.

[0108] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of exemplary but not limiting description, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM).

[0109] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.

[0110] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.

[0111] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0112] Any process or method described in the flow chart or otherwise described herein can be understood as a module, fragment or portion of a code representing one or more executable instructions for implementing the steps of a specific logical function or process. And the scope of the preferred embodiment of the present application includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved.

[0113] The logic and / or steps described in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or used in combination with these instruction execution systems, devices or apparatuses.

[0114] It should be understood that the various parts of the present application can be implemented with hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium, and when the program is executed, it includes one of the steps of the method embodiment or a combination thereof.

[0115] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.

[0116] The above is only an exemplary embodiment of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope recorded in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for searching a commodity object, comprising: Acquire search basis data for searching commodity objects based on a search request triggered by a client; Based on the search basis data, a first prompt word corresponding to the commodity object search scenario is generated, and the search intention information corresponding to the current commodity object search is obtained by interacting with the large language model through the first prompt word; Based on the search basis data and the search intent information, a second prompt word corresponding to the commodity object search scenario is generated, and the second prompt word interacts with the large language model to obtain search results corresponding to this commodity object search.

2. The method according to claim 1, wherein: The step of obtaining search basis data for searching for commodity objects according to a search request triggered by a client includes: Acquire images, voices and / or texts based on the client input.

3. The method according to claim 1, wherein: The generating, based on the search basis data, a first prompt word corresponding to the commodity object search scenario comprises: Generate a first prompt word corresponding to a commodity object search scenario by combining a first type of prompt word template for requesting recognition of search intent and the search basis data; The generating of the second prompt word corresponding to the commodity object search scenario based on the search basis data and the search intention information includes: The second prompt word template for requesting to search for commodity objects and the search basis data are combined to generate a second prompt word corresponding to the commodity object search scenario.

4. The method according to claim 1, wherein: The search intent information includes at least one of the search intent type, commodity object description information, commodity object category, commodity object price, and commodity object order quantity; The search intent types include: single category search, multi-category search or fuzzy search without specifying a category.

5. The method according to claim 1, wherein: The generating of the second prompt word corresponding to the commodity object search scenario based on the search basis data and the search intention information includes: Based on the search user's commodity object access behavior and / or commodity object search behavior, as well as the search basis data and search intention information, a second prompt word corresponding to the commodity object search scenario is generated.

6. The method according to claim 1, wherein: The generating of the second prompt word corresponding to the commodity object search scenario based on the search basis data and the search intention information includes: Obtaining user behavior feature information generated based on user behavior information and / or user session information related to the search user, wherein the user behavior feature information represents the user's preference for the commodity object and / or the transportation process; Based on the user behavior feature information, search basis data and search intention information, a second prompt word corresponding to the commodity object search scenario is generated.

7. The method according to claim 6, wherein: The step of obtaining search results corresponding to the current commodity object search by interacting with the large language model through the second prompt word includes: inputting the second prompt word into the large language model, so that the large language model calls a commodity search process corresponding to the search intent type indicated by the search intent information, the commodity search process searches for commodity objects based on the search basis data and the search intent information, and the large language model deletes commodity objects that do not match the user behavior feature information from the search results; Among them, the search intent types include: single category search, multi-category search or fuzzy search of unspecified categories. Single category search corresponds to a single category search process, and multi-category search or fuzzy search of unspecified categories corresponds to a search process of multiple commodity object categories.

8. The method according to claim 1, wherein: In the case where the search intent type indicated by the search intent information is a fuzzy search of an unspecified category, the large language model also outputs a plurality of commodity object categories corresponding to the fuzzy search of the unspecified category and procurement and combination purchase plans for the plurality of commodity object categories.

9. The method according to claim 1, wherein: The large language model also outputs comparative data of the search results in at least one dimension, search intent information, and a product search process corresponding to the search intent type indicated by the search intent information.

10. The method according to claim 1, wherein: The large language model is a multi-layer Transformer network structure, and the training data of the large language model includes access behavior data of the commodity platform.

11. A method for searching for commodity objects, comprising: According to the search request triggered by the client, the search result corresponding to the current commodity object search is obtained; wherein the search result is obtained by interacting with the large language model after generating a second prompt word corresponding to the commodity object search scenario based on the search basis data and the search intention information; the search intention information is obtained by interacting with the large language model after generating a first prompt word corresponding to the commodity object search scenario based on the search basis data for searching the commodity object; The search results are displayed based on the client.

12. A device for searching for commodity objects, comprising: A search basis data acquisition module, used to acquire search basis data for searching commodity objects according to a search request triggered by a client; A search intention information acquisition module, configured to generate a first prompt word corresponding to a commodity object search scenario based on the search basis data, and obtain search intention information corresponding to the current commodity object search by interacting with the large language model through the first prompt word; The search result acquisition module is used to generate a second prompt word corresponding to the commodity object search scenario based on the search basis data and the search intent information, and obtain the search result corresponding to the current commodity object search by interacting with the large language model through the second prompt word.

13. A device for searching commodity objects, comprising: A search result acquisition module, configured to acquire search results corresponding to the current commodity object search according to a search request triggered by a client; wherein the search results are obtained by interacting with a large language model after generating a second prompt word corresponding to a commodity object search scenario based on search basis data and search intent information; and the search intent information is obtained by interacting with a large language model after generating a first prompt word corresponding to a commodity object search scenario based on search basis data for searching commodity objects. The search result display module is used to display the search result based on the client.

14. An electronic device comprising a memory, a processor and a computer program stored in the memory, wherein the processor implements the method according to any one of claims 1 to 11 when executing the computer program.

15. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.

Citation Information

Cited By

  • Method and device for identifying abnormal behavior in video, equipment and storage medium

    CN119296175A

  • Method, device, equipment and storage medium for identifying abnormal behavior in video

    CN119296175B

  • Retail industry search system and method based on large language model

    CN119669564A

  • Retail store unmanned shopping guide method and system based on large language model

    CN119941348A

  • Information search and display method and device, computing equipment, storage medium and product

    CN120386908A