Product menu diagnosis method and device
By diagnosing the matching between merchant menu items and products, adjusting mounting errors and missing items, the problem of merchant menu layout is solved, and the user experience and conversion rate are improved.
Patent Information
- Application Number
- CN202410910152.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-08
AI Technical Summary
Merchants have many problems in menu layout, resulting in poor user experience when entering the store and low conversion rate into the store. It is difficult for existing technology to effectively solve this problem.
Provide a product menu diagnosis method and device, which determines whether the mounting relationship is correct by diagnosing the matching degree between menu items and products, and outputs adjustment suggestions based on the diagnosis results, including adjusting incorrectly mounted products to appropriate menu items and adding missing items target product or menu item.
The merchant menu structure is optimized, the user experience and conversion rate when entering the store are improved, the merchant's operating difficulty is reduced, and the operating effect is improved.
Smart Images

Figure CN118468090B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method and device for diagnosing a product menu. Background Art
[0002] The user's store conversion rate is a very important indicator to measure the business efficiency of merchants. Through the analysis of user store data, we know that the reason for user loss after entering the store is closely related to the product menu provided by the merchant. The menu layout of the merchant in the private domain of the store is a very important factor in improving the user's store conversion rate. However, due to the different levels of digital management capabilities of merchants, many merchants have many problems in menu layout, which leads to poor user experience in the store and inability to quickly find the dishes they want, which ultimately leads to low store conversion rate. Summary of the invention
[0003] The embodiments of the present application provide a method and device for diagnosing a product menu, which can diagnose the product menu and output targeted adjustment suggestions for the product menu, which is conducive to improving the conversion rate of entering the store.
[0004] In a first aspect, a method for diagnosing a product menu is provided, the method comprising: obtaining a product menu to be diagnosed of a target merchant; wherein the product menu to be diagnosed comprises: a plurality of menu items, each of which comprises at least one product; diagnosing whether a mounting relationship of the product menu to be diagnosed is correct and / or diagnosing whether a target object is missing, and obtaining a diagnosis result; wherein the mounting relationship is used to characterize whether the product under each of the menu items matches the menu item, and the target object comprises a target product and / or a target menu item; and outputting adjustment suggestions for the product menu to be diagnosed based on the diagnosis result.
[0005] In combination with the first aspect, in some possible implementations, the diagnosis of the mounting relationship of the product menu to be diagnosed includes: obtaining the matching degree between the product under each menu item in the product menu to be diagnosed and the menu item; and determining whether the mounting relationship between the product under each menu item and the menu item is correct based on the matching degree between the product under each menu item and the menu item.
[0006] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, obtaining the matching degree between the product under each menu item in the menu of products to be diagnosed and the menu item includes: obtaining the description text of the menu of products to be diagnosed; inputting the description text into a fine-tuned text embedding model, and the text embedding model outputs the matching degree between the description text of the product under each menu item and the description text of the menu item.
[0007] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the fine-tuning method of the text embedding model includes: obtaining menu sample data; wherein the menu sample data includes: description information of the sample merchant, description information of the sample menu and description information of the sample products under each sample menu item in the sample menu; inputting the menu sample data into a multimodal large model, and the multimodal large model judges whether the mounting relationship between the sample menu items and the sample products in the menu sample data is correct, and outputs a mounting relationship determination result; wherein the mounting relationship determination result includes correct mounting and incorrect mounting; marking the sample menu items and sample products whose mounting relationship determination results are correct mounting with a correct mounting label, and marking the sample menu items and sample products whose mounting relationship determination results are incorrect mounting with a mounting incorrect label, to obtain labeled data; according to the labeled data, fine-tuning the pre-trained text embedding model to obtain a fine-tuned text embedding model.
[0008] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the pre-trained text embedding model is fine-tuned according to the labeled data to obtain a fine-tuned text embedding model, including: constructing a number of positive and negative sample pairs according to the labeled data; wherein each of the positive and negative sample pairs includes a positive sample and a negative sample, the positive sample includes a sample menu item and a sample product with a correct mounting relationship, and the negative sample includes the sample menu item in the positive sample and a sample product not under the sample menu item; according to the several positive and negative sample pairs, the pre-trained text embedding model is fine-tuned to obtain a fine-tuned text embedding model.
[0009] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the diagnosis result includes: the mounting relationship is a product with an incorrect mounting and a menu item; based on the diagnosis result, outputting adjustment suggestions for the menu of the product to be diagnosed, including: for the incorrectly mounted product, obtaining the matching degree between the product and each menu item in the menu of the product to be diagnosed; based on the matching degree, determining the candidate menu item with the highest matching degree with the product among each menu item in the menu of the product to be diagnosed; if the matching degree between the product and the candidate menu item is greater than a preset matching degree threshold, outputting a first adjustment suggestion for representing the adjustment of the incorrectly mounted product to the candidate menu item.
[0010] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the diagnosis of whether the target object is missing from the product menu to be diagnosed includes: determining the industry category in which the target merchant is located; determining the industry menu template and core product category corresponding to the industry category; and determining whether the target product or the target menu item is missing from the product menu to be diagnosed based on the industry menu template and the core product category.
[0011] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the outputting of adjustment suggestions for the menu of goods to be diagnosed based on the diagnosis results includes: if the diagnosis results include that the target product is missing from the menu of goods to be diagnosed, then outputting a second adjustment suggestion for reminding the target merchant to add the target product; if the diagnosis results include that the target product exists in the menu of goods to be diagnosed, and that a target menu item that can take over the target product is missing, then if the number of target products is greater than or equal to a preset quantity threshold, outputting a third adjustment suggestion for reminding the target merchant to add the target menu item.
[0012] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the third adjustment suggestion carries a recommended name of the target menu item, and the method of generating the recommended name includes: obtaining a prompt text for generating the recommended name; wherein the prompt text includes: description information of the target merchant and description information of the target product existing in the product menu to be diagnosed; inputting the prompt text into a large language model, processing the prompt text by the large language model, and outputting the recommended name matching the target merchant.
[0013] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, determining the industry menu template and core product categories corresponding to the industry category includes: obtaining order data of each product category under the industry category; calculating the index value of the operating indicator of each product category based on the order data of each product category; determining the industry menu template and core product category corresponding to the industry category based on the index value of the operating indicator of each product category.
[0014] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, after outputting adjustment suggestions for the product menu to be diagnosed based on the diagnosis results, the method also includes: adjusting the product menu to be diagnosed based on the adjustment suggestions to obtain an adjusted product menu; obtaining user behavior data for each product of the target merchant within a preset historical time period; sorting each menu item in the adjusted product menu based on the user behavior data of each product and taking the conversion rate of the target merchant as the target, and outputting sorting suggestions for the adjusted product menu.
[0015] In a second aspect, a device for diagnosing a product menu is provided, the device comprising: an acquisition module, used to acquire a product menu to be diagnosed of a target merchant; wherein the product menu to be diagnosed comprises: a plurality of menu items, each of which comprises at least one product; a diagnosis module, used to diagnose whether a mounting relationship of the product menu to be diagnosed is correct and / or whether a target object is missing, and obtain a diagnosis result; wherein the mounting relationship is used to characterize whether the product under each of the menu items matches the menu item, and the target object comprises a target product and / or a target menu item; an adjustment suggestion output module, used to output adjustment suggestions for the product menu to be diagnosed based on the diagnosis result.
[0016] In a third aspect, a computer device is provided, comprising one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the computer program is loaded and executed by the one or more processors to implement the method for diagnosing the product menu.
[0017] In a fourth aspect, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the method for diagnosing the product menu.
[0018] In a fifth aspect, a computer program product or a computer program is provided, which includes a program code, and the program code is stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the computer device executes the method for diagnosing the product menu.
[0019] By adopting the technical solution provided in the embodiment of the present application, by diagnosing whether the mounting relationship of the target merchant's product menu to be diagnosed is correct and / or diagnosing whether the target object is missing, it is convenient to obtain the diagnosis result of whether the mounting relationship between the product and the menu item in the product menu to be diagnosed is correct and / or the diagnosis result of whether the target product and the target menu item are missing in the product menu to be diagnosed. The adjustment suggestions output according to the diagnosis results can provide effective suggestions for the defects of the target merchant to adjust the product menu, which is conducive to optimizing the product menu of the target merchant, reducing the operating difficulty of the target merchant, improving the operating effect of the target merchant, optimizing the user's store experience, and helping to improve the store conversion rate of the target merchant. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 It is a schematic diagram of an implementation environment of a method for diagnosing a product menu provided in an embodiment of the present application;
[0022] Figure 2 is a flow chart of a method for diagnosing a product menu provided in an embodiment of the present application;
[0023] Figure 3 is a schematic diagram of a menu of commodities to be diagnosed provided in an embodiment of the present application;
[0024] Figure 4 It is a schematic flow chart of an implementation method of a fine-tuning method of a text embedding model provided in an embodiment of the present application;
[0025] Figure 5 It is an overall flow chart of a method for diagnosing a product menu provided in an embodiment of the present application;
[0026] Figure 6 It is a structural schematic diagram of a diagnostic device for a commodity menu provided in an embodiment of the present application;
[0027] Figure 7 is a schematic diagram of the structure of another device for diagnosing a product menu provided in an embodiment of the present application;
[0028] Figure 8 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0030] In this application, the terms "first", "second", etc. are used to distinguish identical or similar items with basically the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there any limitation on quantity and execution order.
[0031] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain better results.
[0032] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory, and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge sub-models to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence.
[0033] Natural language processing: Natural language processing is an important direction in the field of artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language people use in daily life, so it is closely related to the study of linguistics, but there are important differences. Natural language processing is not a general study of natural language, but the development of computer systems that can effectively realize natural language communication, especially the software systems therein.
[0034] Large Language Model (LLM): is a deep learning model trained with a large amount of text. It can generate language prompts or understand the meaning of language text, so as to handle a variety of natural language tasks, including dialogue question and answer, information extraction, text classification, etc., and has shown great potential in many tasks.
[0035] Multimodal large models refer to a type of artificial intelligence model that can simultaneously process and integrate data modalities or sensory information from different types, such as text, images, audio, video, voice, and other forms of data. This type of model integrates multiple modal information through a unified framework, learns cross-modal common representations, and then promotes the completion of complex tasks, such as content generation, understanding, translation, recognition, decision making, etc. Compared with single-modal models, multimodal models are more comprehensive and accurate in understanding and generation tasks because they can capture the intrinsic connections and semantics between different modal data.
[0036] Prompt: refers to the input text paragraph or phrase, which is added in front of the task text to be solved and passed to LLM to achieve the expected task. It has the meaning of instruction and prompt, usually in the form of questions, dialogues, descriptions, etc. The input of Prompt enables LLM to adapt to various downstream applications. For the LLM model, it is very important to design a suitable Prompt. By designing a prompt that meets the requirements to optimize the input content, guide the model to generate more accurate, stable, reliable and expected results, so as to give full play to the potential and advantages of LLM.
[0037] Zero-Shot Learning (ZSL): is a machine learning technique that allows a model to recognize objects of a new category without having received any labeled samples of that category. This learning paradigm is different from traditional supervised learning, in which a model requires a large number of labeled samples to learn and make accurate predictions. Zero-shot learning is a powerful tool for dealing with rare or unseen categories, because in the real world, it is often impractical to obtain labeled samples of all possible categories. Zero-shot learning has potential applications in many fields such as image recognition, natural language processing, and recommendation systems.
[0038] Semantic features: features used to represent the semantics expressed by text. Different texts can correspond to the same semantic features. For example, the text "How is the weather today" and the text "How is the weather today" can correspond to the same semantic feature. Computer devices can map characters in text to character vectors, and combine and operate on character vectors based on the relationship between characters to obtain the semantic features of the text. For example, computer devices can use bidirectional encoder representations from transformers (BERT).
[0039] Moka Massive Mixed Embedding (M3E) is a text embedding model trained, open-sourced, and evaluated by MokaAI. The M3E model is mainly used to process and understand Chinese text. It learns vectorized representations of vocabulary and phrases by training large-scale data sets (such as more than 22 million Chinese sentence pairs). These representations can be used for various natural language processing tasks, such as text classification, matching calculation, retrieval, and dialogue systems. M3E can more fully capture the semantic and grammatical characteristics of Chinese vocabulary, improving the effect of downstream natural language processing applications. At the same time, the emphasis on "Massive" indicates that the model uses a large amount of data during training, which enhances the model's generalization ability and coverage of long-tail vocabulary.
[0040] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0041] Figure 1 is a schematic diagram of an implementation environment of a method for diagnosing a product menu provided in an embodiment of the present application, see Figure 1 , the implementation environment may include a terminal 110 and a server 140.
[0042] The terminal 110 is connected to the server 140 via a wireless network or a wired network. Optionally, the terminal 110 is a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The terminal 110 installs and runs an application that supports the diagnosis of the product menu. In the embodiment of the present application, the user can use the technical solution provided by the embodiment of the present application through the terminal 110.
[0043] The server 140 is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, distribution networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The server 140 provides background services for applications running on the terminal 110.
[0044] Those skilled in the art will appreciate that the number of the above-mentioned terminals 110 may be more or less. For example, the above-mentioned terminal 110 is only one, or the above-mentioned terminals 110 are dozens or hundreds, or a larger number. In this case, the above-mentioned implementation environment also includes other terminals. The embodiment of the present application does not limit the number and device type of the terminals.
[0045] After introducing the implementation environment of the embodiments of the present application, the application scenarios of the embodiments of the present application are introduced below.
[0046] The method for diagnosing a product menu provided in the embodiment of the present application can be applied in any scenario where a product menu needs to be diagnosed. For example, it can be applied in the scenario of diagnosing a product menu to be published, it can also be applied in the scenario of diagnosing a product menu that has been published, and it can also be applied in the scenario of diagnosing product menus of various different merchants.
[0047] Taking the following scenario of diagnosing the product menu to be diagnosed of merchant A as an example, the product menu to be diagnosed of merchant A is obtained, and the technical solution provided in the embodiment of the present application is adopted to diagnose whether the mounting relationship of the product menu to be diagnosed of merchant A is correct and / or whether the target object is missing, and output adjustment suggestions for the product menu to be diagnosed based on the diagnosis results. In the embodiment of the present application, it is crucial for both buyers and sellers to clearly and accurately understand the product menu. It determines whether buyers can find the products they need, and it is also related to whether the seller's products can accurately reach potential customers, which requires reasonable diagnosis and adjustment of the product menu.
[0048] After introducing the application scenarios of the embodiments of the present application, the technical solutions provided by the embodiments of the present application are introduced below. Figure 2 is a flowchart of a method for diagnosing a product menu provided in an embodiment of the present application, see Figure 2 Taking the execution subject as a server as an example, the method includes the following steps.
[0049] Step 201: Obtain a menu of products to be diagnosed of a target merchant, wherein the menu of products to be diagnosed includes: a plurality of menu items, each menu item includes at least one product.
[0050] Step 202: diagnose whether the mounting relationship of the diagnosed product menu is correct and / or whether the target object is missing, and obtain a diagnosis result; wherein the mounting relationship is used to indicate whether the product under each menu item matches the menu item, and the target object includes the target product and / or the target menu item.
[0051] Step 203: Outputting adjustment suggestions for the menu of the product to be diagnosed based on the diagnosis results.
[0052] exist Figure 2 In the illustrated embodiment, by diagnosing whether the mounting relationship of the target merchant's product menu to be diagnosed is correct and / or whether the target object is missing, it is convenient to obtain the diagnosis result of whether the mounting relationship between the product and the menu item in the product menu to be diagnosed is correct and / or whether the target product and the target menu item are missing in the product menu to be diagnosed. The adjustment suggestions output according to the diagnosis results can provide effective suggestions for the defects of the target merchant to adjust the product menu, which is conducive to optimizing the product menu of the target merchant, reducing the operating difficulty of the target merchant, improving the operating effect of the target merchant, optimizing the user's store experience, and helping to improve the store conversion rate of the target merchant.
[0053] Below Figure 2 The specific implementation of each step in the embodiment shown is described as follows:
[0054] In step 201, the target merchant is any merchant that needs to undergo menu diagnosis, which can be a merchant in a variety of different fields on the e-commerce platform, such as a merchant in the field of takeout. It is understandable that, in order to facilitate users to purchase the required goods, each merchant will set up a product menu, and users can find the desired goods by browsing the product menu. The product menu of the merchant that needs to undergo menu diagnosis is the product menu to be diagnosed, which can be prepared by the merchant based on the goods it sells.
[0055] The menu of products to be diagnosed includes: a menu list, which includes multiple menu items, and each menu item includes at least one product. The multiple menu items and the products included in each menu item can be set by the target merchant. For example, the schematic diagram of the menu of products to be diagnosed can be referred to Figure 3 , Figure 3 The item menu to be diagnosed is the item menu of a coffee shop. Figure 3 The menu list 301 in the example includes multiple menu items such as latte, Americano, milk coffee, desserts, other drinks, sandwiches, etc. Among them, the products 302 under the menu item of latte include cappuccino, classic latte, raw coconut latte, oatmeal latte, raw cheese latte, and velvet latte. The products under the other menu items are not described here.
[0056] In step 202, the diagnosis of the commodity menu to be diagnosed includes: diagnosis of whether the mounting relationship is correct and / or diagnosis of whether the target object is missing. The following describes these two types of diagnosis respectively:
[0057] First, let's introduce the diagnosis of whether the mount relationship is accurate:
[0058] The mounting relationship is used to indicate whether the product under each menu item matches the menu item, that is, whether the product under the menu item should be attributed to the menu item. If a product under a menu item matches the menu item, it can be determined that the mounting relationship between the product and the menu item is correct. If a product under a menu item does not match the menu item, it can be determined that the mounting relationship between the product and the menu item is incorrect.
[0059] For example, see Figure 3 , take the diagnosis of whether the mounting relationship between the menu item latte and the goods under the menu item latte is correct as an example for explanation: determine whether the menu item latte matches the goods cappuccino, if they do, determine that the mounting relationship between the goods cappuccino and the menu item latte is correctly mounted; if they do not match, determine that the mounting relationship between the goods cappuccino and the menu item latte is incorrectly mounted. Determine whether the menu item latte matches the goods classic latte, if they do match, determine that the mounting relationship between the goods classic latte and the menu item latte is correctly mounted; if they do not match, determine that the mounting relationship between the goods classic latte and the menu item latte is incorrectly mounted. The diagnosis method for whether the mounting relationship between the remaining menu items and the goods is correct is similar to the above example, and this embodiment will not be repeated here.
[0060] In a possible implementation, the above-mentioned implementation method of diagnosing the mounting relationship of the to-be-diagnosed commodity menu and obtaining the first diagnosis result includes the following S11 to S12:
[0061] S11: Obtain the matching degree between the product under each menu item in the menu of products to be diagnosed and the menu item.
[0062] Specifically, a preset matching degree calculation algorithm can be used to calculate the matching degree between each item in the menu of the item to be diagnosed and the item. The matching degree can indicate whether the mounting relationship between the item under the menu item and the menu item is correct, that is, whether the item under the menu item should belong to the menu item.
[0063] For example, see Figure 3 Taking the matching degree between the menu item Latte and the products under it as an example, these matching degrees may include: the matching degree between the menu item Latte and the product Cappuccino, the matching degree between the menu item Latte and the product Classic Latte, the matching degree between the menu item Latte and the product Raw Coconut Latte, the matching degree between the menu item Latte and the product Oatmeal Latte, the matching degree between the menu item Latte and the product Raw Cheese Latte, and the matching degree between the menu item Latte and the product Velvet Latte. The matching degree between other menu items and the products under other menu items can refer to the above examples, which will not be repeated here.
[0064] In a possible implementation, the implementation of S11 may include: obtaining a description text of the product menu to be diagnosed; inputting the description text into a fine-tuned text embedding model, and the text embedding model outputs the matching degree between the description text of the product under each menu item and the description text of the menu item.
[0065] The description text of the product menu to be diagnosed includes: description texts of multiple menu items in the product menu to be diagnosed and description texts of the products under each menu item. The description texts of the multiple menu items may be the names of the multiple menu items, and the description text of the products may be the names of the products.
[0066] In this embodiment, the description text of the product menu to be diagnosed is input into the fine-tuned text embedding model, and the text embedding model calculates and outputs the text matching degree between the description text of the product under each menu item and the description text of the menu item. The text embedding model can be the above-mentioned M3E model, and the output of the M3E model can be a matching degree between 0 and 1, which can also be understood as similarity, that is, the text similarity between the description text of the product under each menu item and the description text of the menu item. For example, combined with Figure 3 Through the M3E model, the matching degree between the menu item Latte and the products under it, the matching degree between the menu item American and the products under it, the matching degree between the menu item Milk Coffee and the products under it, the matching degree between the menu item Dessert Meals and the products under it, the matching degree between the menu item Other Beverages and the products under it, and the matching degree between the menu item Sandwich and the products under it can be output.
[0067] Specifically, the description text of each menu item and the description text of each product under the menu item can be combined into a text pair, and the text pair is input into the above M3E model, so that the M3E model outputs the matching degree of the two description texts in the text pair. Figure 3 Take the matching degree of the menu item "Chinese Latte" and the products under this menu item as an example. The text pairs composed of the description text of the menu item "Latte" and the description text of the products under this menu item include: Latte-Cappuccino, Latte-Classic Latte, Latte-Raw Coconut Latte, Latte-Oatmeal Latte, Latte-Raw Cheese Latte, and Latte-Velvet Latte. By inputting these text pairs into the M3E model, the matching degree of the text pairs is calculated by the M3E model, and the matching degree of each text pair is output, and finally the matching degree of the description text of the product under each menu item and the description text of the menu item is obtained.
[0068] In one possible implementation, a schematic flowchart of the implementation of the fine-tuning method of the text embedding model can be found in Figure 4 ,include:
[0069] Step 401: Obtain menu sample data.
[0070] Among them, the menu sample data includes: description information of sample merchants, description information of sample menus, and description information of sample products under each sample menu item in the sample menu. The sample merchants can be some pre-selected merchants with product menus. The description information of the sample merchants is used to characterize the characteristics of the sample merchants, including: the name of the sample merchants, the industry category to which they belong, and evaluations. The description information of the sample menu is used to characterize the characteristics of the sample menu, including: the name and format of each sample menu item in the sample menu. The description information of the sample products is used to characterize the characteristics of the sample products, including: the name, picture, ingredients, description words, etc. of the sample products. The menu sample data can be multimodal sample data, which can include: sample data of text modality, sample data of picture modality, sample data of video modality, etc.
[0071] Step 402: Input the menu sample data into the multimodal large model, and the multimodal large model determines whether the mounting relationship between the sample menu items and the sample commodities in the menu sample data is correct, and outputs the mounting relationship determination result.
[0072] Among them, the mounting relationship determination result includes correct mounting and wrong mounting. Specifically, a prompt word (Prompt) can be constructed for the multimodal large model to prompt the multimodal large model to perform the corresponding task. In an embodiment of the present application, the task is to judge whether the mounting relationship between the sample menu item and the sample product in the menu sample data is correct. Among them, whether the mounting relationship is correct is whether the sample product matches the sample menu item it is currently mounted on. For example, the sample menu item is latte, and the sample products under the sample menu item include: cappuccino and classic latte. Then, through the multimodal large model, it can be determined that latte does not match cappuccino, and latte matches classic latte. In other words, the sample product of classic latte matches the sample menu item of latte it is currently mounted on, and the sample product of cappuccino does not match the sample menu item of latte it is currently mounted on.
[0073] In a possible implementation, the prompt word Prompt constructed for the above multimodal large model is exemplified as follows: "Judge whether the mounting relationship between the sample menu item and the sample product in the menu sample data is correct, and output the mounting relationship determination result. If the mounting relationship is correct, output 1, otherwise output 0.
[0074] Step 403: The sample menu items and sample commodities whose mounting relationship is determined to be correctly mounted are marked with a label of correct mounting, and the sample menu items and sample commodities whose mounting relationship is determined to be incorrectly mounted are marked with a label of incorrect mounting, to obtain the marking data.
[0075] Step 404: fine-tune the pre-trained text embedding model according to the labeled data to obtain a fine-tuned text embedding model.
[0076] In this embodiment, the marked data is used as a fine-tuning data set for fine-tuning the text embedding model. The pre-trained text embedding model is fine-tuned through the fine-tuning data set to obtain a fine-tuned text embedding model. The pre-trained text embedding model is an open source, general and directly accessible text embedding model. In this embodiment, the pre-trained text embedding model is fine-tuned through the above-mentioned fine-tuning data set, so that the fine-tuned text embedding model is more suitable for determining whether the mounting relationship between the product and the menu item is correct.
[0077] In some embodiments, the idea of zero-sample learning is adopted in the process of fine-tuning the text embedding model, that is, the above-mentioned fine-tuning data set includes multiple sample products-sample menu items, all of which are sample products-sample menu items whose mounting relationships are to be determined, that is, sample products-sample menu items whose mounting relationships have never been determined, and the text embedding model has not "seen" these sample products-sample menu items in the previous pre-training process.
[0078] In one possible implementation method, the implementation method of the above step 404 includes: constructing a number of positive and negative sample pairs based on the labeled data; wherein each positive and negative sample pair includes a positive sample and a negative sample, the positive sample includes a sample menu item and a sample product with a correct mounting relationship, and the negative sample includes the sample menu item in the positive sample and the sample product under the non-sample menu item; according to the number of positive and negative sample pairs, fine-tuning the pre-trained text embedding model to obtain a fine-tuned text embedding model.
[0079] That is to say, the labeled data obtained by the above multimodal large model is used to construct positive and negative sample pairs as the fine-tuning data set of the text embedding model M3E. The positive samples are the sample menu items and sample products and related description information that the multimodal large model believes to have the correct mounting relationship, and the negative samples are the sample menu items that are the same as the positive samples and the sample products and related description information in the non-sample menu items. For example, the positive sample in one positive and negative sample pair is: Latte (sample menu item)-Classic Latte (sample product), and the negative sample is: Latte (sample menu item)-Cappuccino (sample product). The positive sample in another positive and negative sample pair is: American (sample menu item)-Classic American (sample product), and the negative sample is: American (sample menu item)-Cappuccino (sample product).
[0080] In one possible implementation, the server adds a fine-tuning network layer to the pre-trained text embedding model, and the fine-tuning network layer and the corresponding original network layer in the pre-trained text embedding model jointly process the input text. While keeping the parameters of the original network layer in the pre-trained text embedding model unchanged, the server uses the several positive and negative sample pairs to train the pre-trained text embedding model to adjust the parameters of the fine-tuning network layer to obtain a fine-tuned text embedding model. When fine-tuning the text embedding model using the above method, the original network layer of the pre-trained text embedding model can be frozen, and an additional trainable fine-tuning network layer is added to the text embedding model. Only the parameters of these newly added fine-tuning network layers are trained, which greatly reduces the number of parameters that need to be trained for the text embedding model to adapt to downstream tasks, and is more efficient than full parameter fine-tuning.
[0081] S12: Determine whether the mounting relationship between the product under each menu item and the menu item is correct according to the matching degree between the product under each menu item and the menu item.
[0082] Specifically, a preset threshold value for measuring whether the mounting relationship is correct can be preset. If the matching degree between the commodity under a menu item and the menu item is greater than the preset threshold value, it is determined that the commodity matches the menu item, that is, the mounting relationship is correctly mounted. Otherwise, it is determined that the commodity does not match the menu item, that is, the mounting relationship is incorrectly mounted. Among them, the preset threshold value can be pre-calibrated, for example, it can be calibrated to 70%, 80% or 90%, etc. In other words, the above-mentioned matching degree can characterize whether the mounting relationship between the commodity under the menu item and the menu item is correct, that is, whether the commodity under the menu item should be attributed to the menu item. After obtaining the matching degree between the commodity under each menu item and the menu item, the mounting relationship between the commodity with a matching degree higher than the preset threshold and the menu item is determined to be correctly mounted, and the mounting relationship between the commodity with a matching degree lower than the preset threshold and the menu item is determined to be incorrectly mounted.
[0083] For example, see Figure 3 , assuming that the matching degree of latte-cappuccino is lower than the preset threshold, it is confirmed that the mounting relationship between latte and cappuccino is a mounting error, that is, the product cappuccino should not be mounted under the menu item latte. Assuming that the matching degree of latte-classic latte, the matching degree of latte-raw coconut latte, the matching degree of latte-oatmeal latte, the matching degree of latte-raw cheese latte, and the matching degree of latte-velvet latte are all higher than the preset threshold, it is confirmed that the mounting relationship of latte-classic latte, latte-raw coconut latte, latte-oatmeal latte, and latte-raw cheese latte are all mounted correctly, that is, classic latte, raw coconut latte, oatmeal latte, and raw cheese latte should all be mounted under the menu item latte.
[0084] According to the mounting relationship of the wrongly mounted products and menu items, a diagnosis result is obtained. Specifically, all the wrongly mounted products can be combined as the diagnosis result. That is, the diagnosis result includes the wrongly mounted products in the menu of the products to be diagnosed, and the matching degree between the wrongly mounted products and the menu items to which the wrongly mounted products belong (i.e., the mounted menu items) is less than a preset threshold. For example, combined with the above Figure 3 , the mounting relationship is that the incorrectly mounted commodity and the menu item include latte-cappuccino, that is, the incorrectly mounted commodity includes cappuccino. In this embodiment, the incorrectly mounted commodity can be added to the commodity pool to be adjusted, so that in the subsequent process, the mounting relationship of the commodities in the commodity pool to be adjusted is adjusted.
[0085] The following describes the diagnosis of whether the target object is missing:
[0086] Among them, the target object includes a target commodity and / or a target menu item. The target commodity may be a core commodity of the industry category to which the target merchant belongs, and the target menu item may be a core menu item of the industry category to which the target merchant belongs. Different industry categories may correspond to their own core commodities and core menu items. For example, different industry categories include: local dishes, coffee, milk tea juice, bento, etc. For the industry category of coffee, its core commodities may include: latte, American coffee, milk coffee, etc., and its core menu items may include latte menu items (for example, the menu item name is latte), American menu items (for example, the menu item name is American), and milk coffee menu items (for example, the menu item name is milk coffee). If the industry category to which the target merchant belongs is coffee, then if there is no latte in the menu of commodities to be diagnosed of the target merchant, it is determined that the menu of commodities to be diagnosed lacks the target commodity, i.e., the core commodity. If there is a latte in the menu of commodities to be diagnosed of the target merchant, but there is no latte menu item, it can be determined that the menu of commodities to be diagnosed lacks the target menu item, i.e., the core menu item.
[0087] In one possible implementation, the core commodities and core menu items of the above-mentioned different industry categories may be pre-set by technical personnel in this field based on industry experience. In a specific implementation, they may also be calculated through order data under different industry categories.
[0088] In an exemplary embodiment, the implementation method of diagnosing whether the to-be-diagnosed commodity menu lacks the target object may include the following steps S21 to S23:
[0089] S21: Determine the industry category of the target merchant.
[0090] Specifically, the industry category of the target merchant can be determined based on the description information of the target merchant, and the description information of the target merchant can include the industry category to which it belongs. For example, the target merchant has already registered the industry category to which it belongs when registering, so that the description information of the target merchant includes the industry category to which it belongs. The industry category to which the target merchant belongs can be any one of the industry categories such as local cuisine, coffee, milk tea and juice, and bento meals.
[0091] S22: Determine the industry menu template and core product categories corresponding to the industry categories.
[0092] Specifically, the industry menu templates and core product categories corresponding to different industry categories can be predetermined and stored as preset corresponding relationships. Thus, based on the preset corresponding relationships, the industry menu templates and core product categories corresponding to the industry category where the target merchant is located can be determined.
[0093] The industry menu template includes: menu items set for multiple core product categories under the industry category. The menu items set for each core product category can be determined based on the name, characteristics and other features of the core product category. For example, the name of the core product category can be directly determined as the menu item set for the core product category. The core product category refers to the main product category among the multiple product categories under the industry category, or the product category with good sales. The product category covered by the industry menu template is the core product category.
[0094] Exemplarily, the corresponding relationship between industry menu templates corresponding to different industry categories may be shown in the following Table 1:
[0095] Table 1
[0096]
[0097] Among them, the arrangement order of each menu item in the industry menu template, that is, the order of each industry menu template from front to back in the above Table 1, the higher the arrangement order, usually indicates that the goods sold under the menu item have a higher sales volume and a high user order rate.
[0098] In one possible implementation method, the implementation method of the above S22 includes: obtaining order data of each commodity category under the industry category; calculating the index value of the operating indicator of each commodity category based on the order data of each commodity category; determining the industry menu template and core commodity category corresponding to the industry category based on the index value of the operating indicator of each commodity category.
[0099] Among them, each commodity category under the industry category can be determined based on the commodity knowledge graph of the industry category. In the commodity knowledge graph, each commodity entity (such as "Kung Pao Chicken") will be assigned one or more attribute labels (such as "Sichuan cuisine: Sichuan cuisine", "Cooking method: Stir-fry", "Ingredients: Chicken breast"). These attributes define the position of the commodity in the graph, which is convenient for the machine to understand the characteristics of the commodity, and also supports users to conduct multi-dimensional search, recommendation, comparison, analysis and learning. The commodity category attribute is used to describe and classify the category characteristics of the commodity. As an attribute of the commodity entity in the commodity knowledge graph, it helps to organize and query the commodity in a systematic and structured manner. In this embodiment, based on the commodity category attributes in the commodity knowledge graph, it can be determined which commodity categories exist under the industry category.
[0100] Operating indicators are indicators used to measure the operating conditions of each commodity category. Operating indicators can include operating indicators of multiple dimensions, which may include dynamic sales ratio, net turnover ratio, etc. Dynamic sales ratio usually refers to the proportion of commodity categories with sales records in a certain period of time to all commodity categories, or the proportion of sales of a certain commodity category to total sales. It reflects which commodity categories in the merchant's commodity structure are more popular in the market and have faster circulation. Net turnover ratio usually refers to the proportion of the net turnover of a certain commodity category in a certain period of time to the total net turnover of all commodity categories under the industry category.
[0101] Specifically, the operating indicators of different dimensions may have their own indicator calculation logic. For example, the above-mentioned dynamic sales ratio has its own calculation logic, and the above-mentioned net turnover also has its own calculation logic. In this embodiment, the order data of each commodity category under the industry category within a preset time period can be obtained, and the indicator values of the operating indicators of different dimensions of each commodity category are calculated according to the order data of each commodity category within the preset time period and the indicator calculation logic of the operating indicators of different dimensions. Then, each commodity category is sorted according to the indicator values of the operating indicators of different dimensions to obtain the industry menu template and core commodity categories corresponding to the industry category. In this embodiment, by sorting each commodity category, it is intended to determine which menu items set for which commodity categories can be included in the industry menu template, and which commodity categories can be used as core commodity categories.
[0102] In a possible implementation, the business indicators include the index values of the business indicators of different dimensions. The implementation method of determining the industry menu template and the core commodity category corresponding to the industry category according to the index values of the business indicators of each commodity category includes: for the business indicators of each dimension, traverse the above-mentioned commodity categories in order from high to low according to the index values of the business indicators of the dimension, until the preset stop traversal condition is met, and add the traversed commodity category to the commodity category set corresponding to the dimension. Among them, the stop traversal condition includes: the sum of the index values of the business indicators of the commodity categories already in the commodity category set reaches the preset index value threshold. Then, the intersection of the commodity category sets corresponding to each of the multiple dimensions is calculated, and the commodity categories in the intersection are determined as the core commodity categories. The menu items set for these core commodity categories are arranged in order from high to low according to the index values of the business indicators to obtain the industry menu template. Optionally, similar commodity categories in these core commodity categories can also be merged according to industry experience, and finally the industry menu template as shown in Table 1 above is obtained. Among them, the preset indicator value threshold can be pre-calibrated, for example, it can be calibrated to 90%, 80%, etc.
[0103] To facilitate understanding of the above example, the following takes the industry category of coffee and the operating indicators of different dimensions including the sales ratio and net turnover ratio as an example to illustrate the implementation method of determining the industry menu template and core product categories:
[0104] First, obtain the order data of each product category under the coffee industry category, such as the order data of the latte product category in the past month, the order data of the American product category in the past month, the order data of the milk coffee product category in the past month, and the order data of the sandwich product category in the past month.
[0105] Then, based on the order data of each product category under the coffee industry category and the indicator calculation logic of different dimensions of operating indicators, the sales share and net turnover share of product categories such as latte, American, milk coffee, and sandwiches are calculated respectively.
[0106] Next, the above-mentioned latte, American, milk coffee, sandwich and other commodity categories are traversed in the order of dynamic sales ratio from high to low until the preset first stop traversal condition is met, and the traversed commodity categories are added to the first commodity category set. Among them, the first stop traversal condition includes: the sum of the dynamic sales ratios of the commodity categories in the first commodity category set reaches the preset dynamic sales ratio, wherein the preset dynamic sales ratio can be pre-calibrated, such as 90%. For example, the first commodity category set includes: American (dynamic sales ratio 40%), latte (dynamic sales ratio 30%), milk coffee (dynamic sales ratio 20%). The above-mentioned latte, American, milk coffee, sandwich and other commodity categories are traversed in the order of net turnover ratio from high to low until the preset second stop traversal condition is met, and the traversed commodity categories are added to the second commodity category set. Among them, the second stop traversal condition includes: the sum of the net turnover ratios of the commodity categories in the second commodity category set reaches the preset net turnover ratio, wherein the preset net turnover ratio can be pre-calibrated, such as 90%. For example, the second product category set includes: latte (accounting for 40% of net sales), milk coffee (accounting for 20% of net sales), American coffee (accounting for 10% of net sales), sandwiches (accounting for 10% of net sales), and cakes (accounting for 10% of net sales).
[0107] Finally, find the intersection of the first product category set and the second product category set, and determine the product categories in the intersection as core product categories. In the above example, the intersection of the first product category set and the second product category set is Latte, Milk Coffee, and Americano. It can be determined that the core product categories under the coffee industry category include: Latte, Milk Coffee, and Americano. Correspondingly, the industry menu template for the coffee industry category includes: menu items set for the core product categories of Latte, Milk Coffee, and Americano.
[0108] S23: Determine whether a target product or a target menu item is missing in the product menu to be diagnosed based on the industry menu template and the core product category.
[0109] Specifically, the industry menu template and the core product category can be compared with the product menu to be diagnosed to determine whether the target product or target menu item is missing in the product menu to be diagnosed. The target product is a product belonging to the core product category, the target menu item is a core menu item in the industry menu template, and the core menu item can be a menu item belonging to the core product category in the industry menu template. The diagnosis result includes: the target product or target menu item is missing in the product menu to be diagnosed.
[0110] In this implementation, the business indicators are calculated based on the product knowledge graph and the user's order data, with the order data of different product categories as a reference. Combining the business indicators with industry experience is conducive to the reasonable formulation of industry menu templates and core product categories for different industry categories.
[0111] In step 203, the diagnosis result obtained by diagnosing the mounting relationship of the product menu to be diagnosed is called the first diagnosis result, and the diagnosis result obtained by diagnosing whether the product menu to be diagnosed is missing the target object is called the second diagnosis result. According to the first diagnosis result, the first adjustment suggestion for the product menu to be diagnosed is output to help the target merchant adjust the wrongly mounted product and adjust the wrongly mounted product to the appropriate menu item already in the product menu to be diagnosed. According to the second diagnosis result, the second adjustment suggestion for the product menu to be diagnosed is output to help the target merchant add the missing target object.
[0112] In a possible implementation, the diagnosis result includes: a product and a menu item whose mounting relationship is a mounting error; and the implementation of outputting adjustment suggestions for the menu of the product to be diagnosed according to the diagnosis result includes the following S31 to S33:
[0113] S31: For a product with a mounting error, obtain the matching degree between the product and each menu item in the menu of the product to be diagnosed.
[0114] Specifically, for a product that is mounted incorrectly, the matching degree between the product that is mounted incorrectly and each existing menu item in the menu of products to be diagnosed can be obtained through the above-mentioned fine-tuned text embedding model M3E. For example, the description text of the product that is mounted incorrectly and the description text of each existing menu item in the menu of products to be diagnosed can be respectively composed into text pairs, and the text pairs are input into the above-mentioned fine-tuned text embedding model to obtain the matching degree between the two description texts in the text pair, and the matching degree between the two description texts in the text pair is used as the matching degree between the product described by the two description texts and the menu item.
[0115] S32: According to the matching degree, determine the candidate menu item with the highest matching degree with the product from among the menu items in the product menu to be diagnosed.
[0116] Specifically, for a wrongly mounted product, based on the above matching degree, a menu item with the highest matching degree with the wrongly mounted product is determined from among the existing menu items in the product menu to be diagnosed, as a preliminarily determined candidate menu item suitable for mounting the product.
[0117] S33: If the matching degree between the product and the candidate menu item is greater than a preset matching degree threshold, a first adjustment suggestion is outputted, which is used to indicate that the incorrectly mounted product should be adjusted to the candidate menu item.
[0118] The preset matching threshold can be pre-calibrated to indicate that the matching degree between the product and the candidate menu item is high enough to be considered reasonable to adjust the incorrectly mounted product to the candidate menu item. The first adjustment suggestion may include: adjusting the incorrectly mounted product to the candidate menu item. For example, refer to Figure 3 , the wrong product is cappuccino, and the candidate menu item is milk coffee, so Figure 3 The first adjustment suggestion for the menu of goods to be diagnosed shown may include: suggesting that the incorrectly mounted cappuccino be adjusted to the candidate menu item of milk coffee.
[0119] In a possible implementation, the implementation of outputting adjustment suggestions for the menu of the product to be diagnosed according to the diagnosis result includes the following steps S41 to S42:
[0120] S41: If the diagnosis result includes that the target product is missing from the product menu to be diagnosed, output a second adjustment suggestion for reminding the target merchant to add the target product.
[0121] For example, assuming that the diagnosis result for a coffee shop's product menu to be diagnosed includes: the target product latte is missing from the product menu to be diagnosed, then the output second adjustment suggestion may include: suggesting that the coffee shop increase the supply of latte.
[0122] S42: If the diagnosis result includes that the target product exists in the product menu to be diagnosed, and a target menu item that can take over the target product is missing, then when the number of target products is greater than a preset quantity threshold, a third adjustment suggestion is output to remind the target merchant to add the target menu item.
[0123] The preset quantity threshold may be preset, for example, 3. If the number of target commodities is greater than the preset quantity threshold, it indicates that the number of target commodities currently existing in the to-be-diagnosed commodity menu meets the condition for adding a new menu item.
[0124] Assume that the diagnosis result of the menu of goods to be diagnosed of a coffee shop includes: there is a target product, i.e., a core product, such as latte, in the menu of goods to be diagnosed, but there is no target menu item, i.e., a core menu item, that can undertake the core product such as latte in the existing menu items of the menu of goods to be diagnosed. For example, the core product such as latte is mounted under the menu item of milk coffee, but not in the menu item of latte specially set up for latte, then it is determined that the core menu item missing from the menu of goods to be diagnosed is the menu item of latte. Furthermore, if the products of the type of latte existing in the menu of goods to be diagnosed include: classic latte, raw coconut latte, and oatmeal latte, it can be determined that the quantity of latte, a product of this type, meets the conditions for opening a core menu item separately, that is, the quantity of lattes is greater than the preset quantity threshold, and then a third adjustment suggestion for reminding the target merchant to add the menu item of latte can be output. In other words, the content of the third adjustment suggestion includes suggesting that the target merchant add a menu item set for the core product category of latte.
[0125] In a possible implementation, the third adjustment suggestion carries a recommended name of the target menu item, and a method for generating the recommended name includes the following steps S51 to S52:
[0126] S51: Obtain a prompt text for generating a recommended name.
[0127] The prompt text includes: description information of the target merchant and description information of the target product in the product menu to be diagnosed. The description information of the target merchant may include the name of the target merchant, business characteristics and other information used to describe the target merchant, and the description information of the target product may include the name of the target product, production characteristics, evaluation and other information used to describe the target product.
[0128] Optionally, the prompt text may also include the name format of the menu item of the product menu to be diagnosed, so that the large language model can generate a recommended name that conforms to the name format of the product menu to be diagnosed. Optionally, the prompt text may also include the name of the core product category to which the target product belongs, so that the large language model can refer to the name of the core product category and output a recommended name of the target menu item suitable for mounting the target product.
[0129] S52: Input the prompt text into the large language model, and the large language model processes the prompt text and outputs a recommended name that matches the target merchant.
[0130] Among them, the above-mentioned large language model can be a large model in text form, and its input and output are both text-state data. The large language model has the ability to output reply content according to the prompt text, and the large language model can be fine-tuned so that the large language model can better perform the task of generating recommended names. The reply text output by the large language model is the recommended name that matches the target merchant. In some embodiments, the large language model is a large language model with natural language processing capabilities of any structure, and the embodiments of the present application are not limited to this.
[0131] Exemplarily, the above prompt text can be understood as a prompt word (Prompt) input into the large language model, which is used to prompt the large language model to perform the task of generating a recommended name. In a possible implementation, the format of the Prompt used to prompt the large language model to perform the task of generating a recommended name is exemplified as follows: "Please refer to the name of the target merchant, the name and characteristics of the target product, the name of the core product category to which the target product belongs, the format of the menu of the product to be diagnosed, and other information, and give the newly added target menu item for the target product a recommended name that is suitable for the characteristics of the target merchant." Thus, after receiving the above Prompt, the large language model can output a recommended name that matches the target merchant.
[0132] In this embodiment, not only is a suggestion for adding a target menu item outputted to the target merchant, but the large language model can also be used to further provide the target merchant with a suggestion for a recommended name for the core menu item, thereby providing an effective reference for the target merchant to add a new core menu item, so that the target merchant does not need to worry about naming the core menu item, thereby further facilitating the target merchant to adjust the menu of the diagnosed product.
[0133] In a possible implementation, after outputting adjustment suggestions for the product menu to be diagnosed based on the diagnosis results, it also includes: adjusting the product menu to be diagnosed based on the adjustment suggestions to obtain an adjusted product menu; obtaining user behavior data for each product of the target merchant within a preset historical time period; based on the user behavior data of each product, sorting each menu item in the adjusted product menu with the conversion rate of the target merchant as the target, and outputting sorting suggestions for the adjusted product menu.
[0134] The above-mentioned preset historical time period can be set according to actual needs, and is intended to determine the business conditions of the target merchant in the preset historical time period by obtaining the user behavior data of each product of the target merchant in the preset historical time period. For example, the above-mentioned preset historical time period can be the past 1 month, the past 2 months, etc., and this embodiment does not specifically limit this. User behavior data includes user browsing behavior data and purchase behavior data. Browsing behavior data represents the user's browsing behavior on the product, and purchase behavior data represents the user's purchase behavior on the product.
[0135] Based on the above adjustment suggestions, adjustments to the menu of the product to be diagnosed may include: adjustment of mounting relationships (adjusting incorrectly mounted products to appropriate menu items), addition of core products, addition of core menu items, and other adjustments.
[0136] For example, the server obtains the user behavior data of each product of the target merchant in a preset historical time period. According to the user behavior data of each product, the menu items in the adjusted product menu are determined.
[0137] A user behavior data set for the commodities under the menu item. According to the user behavior data set under each menu item, the conversion rate corresponding to each menu item is determined. The user behavior data set under each menu item includes: the number of first users who purchased the commodities under the menu item and the number of second users who browsed the commodities under the menu item within a preset historical time period, and the ratio of the number of first users to the number of second users is taken as the conversion rate corresponding to the menu item. After obtaining the conversion rate corresponding to each menu item, the menu items in the menu of commodities to be diagnosed are sorted with the maximum conversion rate of the target merchant as the goal, and a sorting suggestion for the menu of commodities to be diagnosed is output. For example, the sorting suggestion may include: sorting the menu items in order from high to low in terms of conversion rate, so that the menu item with a higher conversion rate is ranked higher in the sorting result.
[0138] Exemplarily, the main category of each menu item in the adjusted product menu can be determined first. By calculating the category ratio of the products sold under the menu item in a preset historical time period, the category with the largest category ratio is the main category of the menu item. For example, based on the above-mentioned user behavior data, the user's purchase data for each product in a preset historical time period can be determined, and the purchase data can include the purchase quantity of each product. Based on the purchase data, the category ratio of different product categories in the menu item can be calculated, and the category ratio of each product category is: the proportion of the purchase quantity of the products under the product category to the purchase quantity of all products under the menu item.
[0139] If there are multiple product categories with the highest category share, that is, multiple product categories have the highest category share, then the product category with the highest semantic match with the menu item is selected as the core category of the menu item. Menu items with the same core category are grouped together to obtain multiple groups of menu items.
[0140] By sorting multiple groups of menu items in accordance with the sorting of core product categories in the industry menu template, you can get the inter-group sorting of multiple groups of menu items. Then, based on the exposure and order data of each menu item in each group of menu items over a period of time, calculate the UV value (Unit Value) of each menu item. Within each group of menu items, sort the menu items from high to low by UV value to get the order of multiple menu items within each group of menu items, and then get the final menu recommendation sorting result. The final menu recommendation sorting result is output to the target merchant as a sorting suggestion for the target merchant's reference. Among them, UV value refers to the value brought by a single independent visitor, that is, the average revenue created by each independent visitor for the merchant.
[0141] In the above example, in each group of menu items, they are sorted in reverse order according to UV value, with high-value menu items at the front. This means that more popular and profitable menu items are displayed first, optimizing the user experience and increasing the user conversion rate into the store. In this example, a data-driven strategy is used to first determine the core category of each menu item, then optimize the menu structure through semantic matching, and finally dynamically sort based on market feedback, namely UV value, which is conducive to improving the overall performance of the menu and customer satisfaction, while promoting the business's operating efficiency and increasing the user conversion rate into the store.
[0142] In this embodiment, by outputting the sorting suggestions for the menu of products to be diagnosed, it is helpful to help the target merchant to adjust the sorting of the menu of products to be diagnosed, thereby improving the overall conversion rate of the target merchant.
[0143] To further facilitate the understanding of this embodiment, Figure 5The diagnostic method of the product menu of this embodiment is explained:
[0144] Figure 5 It is an overall flow chart of a method for diagnosing a product menu provided in an embodiment of the present application.
[0145] For example, Figure 5 As shown, the diagnostic methods of the product menu include:
[0146] Step 501: Obtain the industry category of the merchant, the menu of products to be diagnosed, and product information.
[0147] The menu of products to be diagnosed is also the menu list of the merchant, and the product information includes: order data representing the business situation of the product, the product category to which the product belongs, pictures of the product, etc.
[0148] Step 502: Calculate the index values of the commodity's business index by industry category and commodity category.
[0149] Step 503: Determine the industry menu template and industry core product categories.
[0150] Specifically, according to the product categories and user order data, the index values of operating indicators such as the sales ratio and net turnover ratio of each product category under each industry category are calculated. According to the index values of operating indicators, combined with the experience input of related industries, and the merger of similar product categories, the industry menu template and industry core product categories of the industry category are obtained. The industry core product categories are also the above-mentioned industry core product categories.
[0151] Step 504: Use the multimodal large model to mark the mounting relationship between menu items and products to obtain marking data.
[0152] Specifically, the multimodal large model is used to output whether the mounting relationship between menu items and products is correct, and the corresponding correct mounting labels and incorrect mounting labels are marked. For example, using the multimodal large model in a Zero-Shot manner, the input information of the multimodal large model includes merchant information (merchant name, category, etc.), menu information (menu item name, etc.) and product information (product name, picture, ingredients, description, etc.), and the output information of the multimodal large model is whether the mounting relationship between the input menu items and products is correct.
[0153] Step 505: fine-tune the M3E model using the marking data, and use the fine-tune M3E model to determine the mounting relationship.
[0154] Specifically, the labeled data of the multimodal large model is used to construct positive and negative sample pairs as fine-tuning training data for the M3E model. The positive samples are the menu items and product names and related information that the multimodal large model believes to have the correct mounting relationship. The negative samples are the menu items and product names and related information that are the same as the positive samples and non-menu items. The M3E model is fine-tuned through the above positive and negative sample pairs. The fine-tuned M3E model is used to judge the mounting relationship between the full amount of menu items and dishes to be diagnosed, and the products with incorrect mounting are selected and added to the product pool to be adjusted.
[0155] Step 506: Diagnosis of missing core products.
[0156] Step 507: Diagnosis of missing core menu items.
[0157] Step 508: Diagnosis of mounting relationship.
[0158] Step 509: Diagnosis of menu sorting.
[0159] Among them, the diagnosis of missing core products and the diagnosis of missing core menu items are the above-mentioned diagnosis of whether the target object is missing, the core products are the target products, and the core menu items are the target menu items.
[0160] Step 510: The commodity supply is turned up.
[0161] Step 511: The large language model outputs a recommended name for the newly added core menu item.
[0162] Step 512: Adjust the mounting relationship.
[0163] Step 513: Adjust the menu order.
[0164] Specifically, if the comparison of the industry menu template and the industry's core product categories shows that the merchant is missing core products, the merchant is advised to increase the supply of core products of this type, that is, to increase the supply of core products. If the comparison of the industry menu template and the industry's core product categories shows that the merchant has core products but is missing core menu items, the merchant is advised to add core menu items. At the same time, a large language model can be used to combine the merchant's name, the name of the core product, the name of the core product category, and the name format of the merchant's other menu items to generate recommended names for the newly added core menu items.
[0165] For example, if the industry menu template and the industry core product categories are compared to determine that the merchant has core products, it can be determined whether the core products under each core product category in the merchant's store can constitute a menu item on their own, and then analyze whether there are core menu items in the merchant's existing menu items that take over the core product. If the core product that can form a menu item on its own is not currently taken over by an existing core menu item, the core product will enter the product pool to be adjusted.
[0166] For the products in the pool of products to be adjusted, the product and other menu items of the merchant are combined into a product-menu item text pair, and the matching degree of the product-menu item text pair is determined through the fine-tuned M3E model. According to the matching degree, the products that can be reasonably adjusted to other menu items are adjusted. For example, for the products in the pool of products to be adjusted, the matching degree between the product and each existing menu item of the merchant is obtained. According to the matching degree, the candidate menu item with the highest matching degree with the product is determined among the various menu items of the merchant. If the matching degree between the product and the candidate menu item is greater than the preset matching degree threshold, it is determined that the product can be reasonably adjusted to the candidate menu item. The output is used to represent the first adjustment suggestion for adjusting the product to the candidate menu item, so that the merchant can adjust the products that can be reasonably adjusted to other menu items according to the first adjustment suggestion, that is, the above-mentioned mounting relationship adjustment.
[0167] After all the products in the product pool that can be reasonably adjusted to other menu items are adjusted, if the number of core products that are missing core menu items still meets the conditions of constituting a separate menu item, it is determined that the merchant should add a new menu item to take over the core product. Then, using the large language model, combined with the name of the merchant, the name of the core product, the name of the core product category, and the name format of the merchant's other menu items, a recommended name is generated for the newly added core menu item. That is, the above large language model outputs the recommended name of the newly added core menu item.
[0168] Specifically, based on the merchant's menu and the business performance of the product over a period of time, combined with the industry menu template, and with the merchant's overall store conversion rate as the goal, the merchant's menu sorting is adjusted, which is the above-mentioned menu sorting adjustment.
[0169] In this embodiment, by analyzing the order data of different commodity categories under different industry categories and combining industry experience, the core commodity categories and industry menu templates under the industry category are obtained. After that, the rationality of the menu structure is diagnosed by combining algorithm models such as multimodal large models and text matching models, and problems such as unreasonable menu sorting, wrong commodity mounting under menu items, missing core commodities, and missing core menu items can be diagnosed. According to the diagnosis results, adjustment suggestions are output to adjust the unreasonable mounting relationship and menu sorting in the commodity menu, as well as the phenomenon of missing core commodities and core menu items. After the adjustment is completed, the commodity menu will be reordered with the goal of maximizing the overall conversion rate of the merchant, and finally the merchant will be given complete diagnosis results and suggestions. For merchants, using the commodity menu adjusted based on the adjustment suggestions can improve the shopping guide efficiency and user conversion rate in the store, thereby improving the sales and turnover of merchants; for users, it can improve the user experience and complete the selection of products more quickly and clearly.
[0170] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0171] By adopting the technical solution provided in the embodiment of the present application, through the powerful semantic understanding ability of the large language model and text embedding model and the ability of multimodal data fusion, combined with the dish knowledge graph and industry experience, the motivation of the merchant's menu setting is explored, and it is possible to accurately judge whether the mounting relationship in the menu of the product to be diagnosed is reasonable, and whether there is a problem of missing core products and core menu items, and give corresponding mounting relationship adjustment suggestions, suggestions for adding core products or core menu items, and menu sorting suggestions, thereby reducing the business difficulty of merchants, improving the business results of merchants, and optimizing the user's store experience.
[0172] Figure 6 is a schematic diagram of a diagnostic device for a product menu provided in an embodiment of the present application, see Figure 6 The device includes: an acquisition module 601, a diagnosis module 602, and an adjustment suggestion output module 603.
[0173] The acquisition module 601 is used to acquire a menu of commodities to be diagnosed of a target merchant; wherein the menu of commodities to be diagnosed includes: a plurality of menu items, each of which includes at least one commodity.
[0174] The diagnostic module 602 is used to diagnose whether the mounting relationship of the product menu to be diagnosed is correct and / or whether the target object is missing, and obtain a diagnostic result; wherein the mounting relationship is used to characterize whether the product under each menu item matches the menu item, and the target object includes the target product and / or the target menu item.
[0175] The adjustment suggestion output module 603 is used to output adjustment suggestions for the menu of the commodity to be diagnosed according to the diagnosis result.
[0176] In a possible implementation, the diagnostic module 602 is used to obtain the matching degree between the product under each menu item in the product menu to be diagnosed and the menu item; and determine whether the mounting relationship between the product under each menu item and the menu item is correct based on the matching degree between the product under each menu item and the menu item.
[0177] In a possible implementation, the diagnosis module 602 is used to obtain the description text of the product menu to be diagnosed; input the description text into a fine-tuned text embedding model, and the text embedding model outputs the matching degree between the description text of each product under the menu item and the description text of the menu item.
[0178] In one possible implementation, the diagnosis result includes: the mounting relationship is a product with an incorrect mounting error and a menu item; an adjustment suggestion output module 603, which is used to obtain, for the incorrectly mounted product, a matching degree between the product and each menu item in the product menu to be diagnosed; based on the matching degree, determining a candidate menu item with the highest matching degree with the product among each menu item in the product menu to be diagnosed; if the matching degree between the product and the candidate menu item is greater than a preset matching degree threshold, outputting a first adjustment suggestion for representing adjusting the incorrectly mounted product to the candidate menu item.
[0179] In one possible implementation, the diagnostic module 602 is used to determine the industry category in which the target merchant is located; determine the industry menu template and core product category corresponding to the industry category; and determine whether the target product or the target menu item is missing from the product menu to be diagnosed based on the industry menu template and the core product category.
[0180] In one possible implementation, the adjustment suggestion output module 603 is used to output a second adjustment suggestion for reminding the target merchant to add the target product if the diagnosis result includes that the target product is missing from the menu of products to be diagnosed; if the diagnosis result includes that the target product exists in the menu of products to be diagnosed and that a target menu item that can take over the target product is missing, then when the quantity of the target products is greater than or equal to a preset quantity threshold, output a third adjustment suggestion for reminding the target merchant to add the target menu item.
[0181] In a possible implementation, the third adjustment suggestion carries a recommended name for the target menu item, and the diagnostic device for the above-mentioned product menu also includes: a recommended name generation module, used to obtain a prompt text for generating the recommended name; wherein the prompt text includes: description information of the target merchant and description information of the target product existing in the product menu to be diagnosed; the prompt text is input into a large language model, and the large language model processes the prompt text to output the recommended name matching the target merchant.
[0182] In a possible implementation, the diagnostic module 602 is used to obtain order data of each commodity category under the industry category; calculate the index value of the operating indicator of each commodity category based on the order data of each commodity category; and determine the industry menu template and core commodity category corresponding to the industry category based on the index value of the operating indicator of each commodity category.
[0183] In a possible implementation, the diagnostic device for the above-mentioned product menu also includes: a sorting suggestion module, which is used to adjust the product menu to be diagnosed according to the adjustment suggestion to obtain an adjusted product menu; obtain user behavior data of each product of the target merchant within a preset historical time period; according to the user behavior data of each product, sort each menu item in the adjusted product menu with the conversion rate of the target merchant as the target, and output a sorting suggestion for the adjusted product menu.
[0184] Figure 7 Schematic diagram of another device for diagnosing a product menu provided in an embodiment of the present application. Figure 7 As shown, the diagnostic device 700 includes: an acquisition module 701, a diagnostic module 702 and an adjustment suggestion output module 703. The acquisition module 701 is used to acquire a menu of commodities to be diagnosed of a target merchant.
[0185] In a possible implementation, the diagnosis module 702 includes: a first diagnosis module 7021 and / or a second diagnosis module 7022 . Figure 7 In the description, the diagnosis module 702 includes a first diagnosis module 7021 and a second diagnosis module 7022 as an example.
[0186] The first diagnosis module 7021 includes: a matching degree prediction module 704 and a mounting relationship determination module 705 .
[0187] The matching degree prediction module 704 is used to obtain the description text of the product menu to be diagnosed; input the description text into the fine-tuned text embedding model, and the text embedding model outputs the matching degree between the description text of each product under the menu item and the description text of the menu item.
[0188] The mounting relationship determination module 705 is used to determine whether the mounting relationship between the commodity under each menu item and the menu item is correct according to the matching degree between the commodity under each menu item and the menu item.
[0189] In a possible implementation, the first diagnosis module 7021 further includes: a sample acquisition module 708 , a sample annotation module 709 and a fine-tuning module 710 .
[0190] The sample acquisition module 708 is used to acquire menu sample data; wherein the menu sample data includes: description information of the sample merchant, description information of the sample menu, and description information of the sample products under each sample menu item in the sample menu.
[0191] The sample labeling module 709 is used to input the menu sample data into the multimodal large model, and the multimodal large model determines whether the mounting relationship between the sample menu items and the sample commodities in the menu sample data is correct, and outputs the mounting relationship determination result; wherein the mounting relationship determination result includes correct mounting and incorrect mounting; for the sample menu items and sample commodities whose mounting relationship determination result is correct mounting, a label of correct mounting is marked, and for the sample menu items and sample commodities whose mounting relationship determination result is incorrect mounting, a label of incorrect mounting is marked, to obtain the labeled data.
[0192] The fine-tuning module 710 is used to fine-tune the pre-trained text embedding model according to the labeled data to obtain a fine-tuned text embedding model.
[0193] In one possible implementation, the fine-tuning module 710 is specifically used to construct a number of positive and negative sample pairs based on the labeled data; wherein each of the positive and negative sample pairs includes a positive sample and a negative sample, the positive sample includes a sample menu item and a sample product with a correct mounting relationship, and the negative sample includes the sample menu item in the positive sample and the sample product not under the sample menu item; according to the several positive and negative sample pairs, the pre-trained text embedding model is fine-tuned to obtain a fine-tuned text embedding model.
[0194] In a possible implementation, the second diagnosis module 7022 includes: a determination module 706 and a missing object detection module 707 .
[0195] The determination module 706 is used to determine the industry category of the target merchant, and determine the industry menu template and core product category corresponding to the industry category.
[0196] The missing object detection module 707 is used to determine whether the target product or the target menu item is missing in the product menu to be diagnosed according to the industry menu template and the core product category.
[0197] In a possible implementation, the determination module 706 includes: an order acquisition unit 7061 , an indicator value calculation unit 7062 , and a determination unit 7063 .
[0198] The order acquisition unit 7061 is used to acquire order data of each commodity category under the industry category.
[0199] The index value calculation unit 7062 is used to calculate the index value of the operating index of each commodity category according to the order data of each commodity category.
[0200] The determination unit 7063 is used to determine the industry menu template and the core commodity category corresponding to the industry category according to the index value of the operating index of each commodity category.
[0201] In a possible implementation, the adjustment suggestion output module 703 includes: a mounting relationship adjustment module 7031 , a product adding suggestion module 7032 , and a target menu item adding suggestion module 7033 .
[0202] The mounting relationship adjustment module 7031 is used for obtaining, for the incorrectly mounted product, the degree of matching between the product and each menu item in the menu of the product to be diagnosed, if the diagnosis result includes a product and a menu item whose mounting relationship is an incorrect mounting relationship; determining, based on the degree of matching, a candidate menu item with the highest degree of matching with the product among each menu item in the menu of the product to be diagnosed; and outputting a first adjustment suggestion for representing the adjustment of the incorrectly mounted product to the candidate menu item if the degree of matching between the product and the candidate menu item is greater than a preset matching degree threshold.
[0203] The product adding suggestion module 7032 is used to output a second adjustment suggestion for reminding the target merchant to add the target product if the diagnosis result includes that the target product is missing from the to-be-diagnosed product menu.
[0204] The module 7033 for suggesting adding target menu items is used to output a third adjustment suggestion for reminding the target merchant to add the target menu item if the diagnosis result includes that the target product exists in the menu of products to be diagnosed, and there is a lack of a target menu item that can take over the target product. If the quantity of the target product is greater than or equal to a preset quantity threshold,
[0205] In a possible implementation, the adjustment suggestion output module 703 also includes: a sorting suggestion module 7034, which is used to adjust the product menu to be diagnosed according to the adjustment suggestion to obtain an adjusted product menu; obtain user behavior data of each product of the target merchant within a preset historical time period; sort each menu item in the adjusted product menu based on the user behavior data of each product and with the conversion rate of the target merchant as the target, and output a sorting suggestion for the adjusted product menu.
[0206] It should be noted that: the diagnostic device for the commodity menu provided in the above embodiment only uses the division of the above functional modules as an example when diagnosing the commodity menu. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the diagnostic device for the commodity menu provided in the above embodiment and the embodiment of the diagnostic method for the commodity menu belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0207] The embodiment of the present application provides a computer device for executing the above method. The computer device can be implemented as a server. The structure of the server is introduced below:
[0208] Figure 8 This is a schematic diagram of the structure of a server provided in an embodiment of the present application. The server 800 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 801 and one or more memories 802, wherein the one or more memories 802 store at least one computer program, and the at least one computer program is loaded and executed by the one or more processors 801 to implement the methods provided in the above-mentioned various method embodiments. Of course, the server 800 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server 800 may also include other components for implementing device functions, which will not be described in detail here.
[0209] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a computer program, and the computer program can be executed by a processor to complete the method for diagnosing the product menu in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0210] In an exemplary embodiment, a computer program product or a computer program is also provided, which includes a program code, and the program code is stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the computer device executes the above-mentioned method for diagnosing a product menu.
[0211] In some embodiments, the computer program involved in the embodiments of the present application may be deployed and executed on a computer device, or on multiple computer devices located at one location, or on multiple computer devices distributed at multiple locations and interconnected by a communication network. Multiple computer devices distributed at multiple locations and interconnected by a communication network may constitute a blockchain system.
[0212] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0213] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0214] The above contents are only specific implementation methods 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 changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for diagnosing a product menu, characterized in that: The method comprises: Obtaining a menu of products to be diagnosed from a target merchant; wherein the menu of products to be diagnosed includes: a plurality of menu items, each of which includes at least one product; Obtain the description text of the product menu to be diagnosed; input the description text into a fine-tuned text embedding model, and the text embedding model outputs the matching degree between the description text of each product under the menu item and the description text of the menu item; according to the matching degree between each product under the menu item and the menu item, determine whether the mounting relationship between each product under the menu item and the menu item is correct, and obtain a diagnosis result; wherein the mounting relationship is used to characterize whether the product under each menu item matches the menu item; and / or, Determine the industry category of the target merchant; determine the industry menu template and core product category corresponding to the industry category; determine whether the target product or target menu item is missing in the product menu to be diagnosed based on the industry menu template and core product category, and obtain a diagnosis result; Outputting adjustment suggestions for the menu of the commodity to be diagnosed according to the diagnosis result; Wherein, if the diagnosis result includes a commodity and a menu item whose mounting relationship is a mounting error, then for the commodity with the mounting error, the matching degree between the commodity and each menu item in the menu of the commodity to be diagnosed is obtained; according to the matching degree, a candidate menu item with the highest matching degree with the commodity is determined from each menu item in the menu of the commodity to be diagnosed; if the matching degree between the commodity and the candidate menu item is greater than a preset matching degree threshold, a first adjustment suggestion for indicating that the commodity with the mounting error is adjusted to the candidate menu item is output; If the diagnosis result includes that the target product is missing from the to-be-diagnosed product menu, outputting a second adjustment suggestion for reminding the target merchant to add the target product; If the diagnosis result includes that the target product exists in the menu of products to be diagnosed, and a target menu item that can take over the target product is missing, then when the quantity of the target product is greater than or equal to a preset quantity threshold, a third adjustment suggestion is output to remind the target merchant to add the target menu item.
2. The method according to claim 1, characterized in that The fine-tuning method of the text embedding model includes: Acquire sample menu data; wherein the sample menu data includes: description information of the sample merchant, description information of the sample menu, and description information of the sample goods under each sample menu item in the sample menu; Inputting the menu sample data into the multimodal large model, the multimodal large model determines whether the mounting relationship between the sample menu items and the sample commodities in the menu sample data is correct, and outputs the mounting relationship determination result; wherein the mounting relationship determination result includes mounting correctness and mounting error; The sample menu items and sample commodities whose mounting relationship determination result is correct are marked with a label indicating correct mounting, and the sample menu items and sample commodities whose mounting relationship determination result is incorrect are marked with a label indicating incorrect mounting, to obtain marking data; According to the labeled data, the pre-trained text embedding model is fine-tuned to obtain a fine-tuned text embedding model.
3. The method according to claim 2, characterized in that The step of fine-tuning the pre-trained text embedding model according to the labeled data to obtain a fine-tuned text embedding model includes: According to the labeled data, a plurality of positive and negative sample pairs are constructed; wherein each of the positive and negative sample pairs includes a positive sample and a negative sample, the positive sample includes a sample menu item and a sample commodity with a correct mounting relationship, and the negative sample includes the sample menu item in the positive sample and a sample commodity not under the sample menu item; According to the plurality of positive and negative sample pairs, the pre-trained text embedding model is fine-tuned to obtain a fine-tuned text embedding model.
4. The method according to claim 1, characterized in that: The third adjustment suggestion carries a recommended name of the target menu item, and the method for generating the recommended name includes: Acquire a prompt text for generating the recommended name; wherein the prompt text includes: description information of the target merchant and description information of the target product in the product menu to be diagnosed; The prompt text is input into a large language model, and the large language model processes the prompt text to output the recommended name matching the target merchant.
5. The method according to claim 1, characterized in that The determining of the industry menu template and the core product category corresponding to the industry category includes: Obtain order data for each product category under the industry category; Calculating the index value of the operating index of each commodity category according to the order data of each commodity category; According to the index values of the operating indicators of the various commodity categories, the industry menu template and the core commodity categories corresponding to the industry categories are determined.
6. The method according to claim 1, characterized in that After outputting adjustment suggestions for the menu of commodities to be diagnosed according to the diagnosis results, the method further includes: According to the adjustment suggestion, the to-be-diagnosed product menu is adjusted to obtain an adjusted product menu; Obtaining user behavior data for each product of the target merchant within a preset historical time period; According to the user behavior data of each commodity, the menu items in the adjusted commodity menu are sorted with the conversion rate of the target merchant as a target, and a sorting suggestion for the adjusted commodity menu is output.
7. A diagnostic device for a product menu, characterized in that: The device comprises: An acquisition module is used to acquire a menu of commodities to be diagnosed of a target merchant; wherein the menu of commodities to be diagnosed includes: a plurality of menu items, each of which includes at least one commodity; A first diagnostic module and / or a second diagnostic module, wherein the first diagnostic module includes a matching prediction module and a mounting relationship determination module; the matching prediction module is used to obtain the description text of the product menu to be diagnosed; the description text is input into a fine-tuned text embedding model, and the text embedding model outputs the matching degree between the description text of each product under the menu item and the description text of the menu item; the mounting relationship determination module is used to determine whether the mounting relationship between each product under the menu item and the menu item is correct according to the matching degree between each product under the menu item and the menu item, and obtain a diagnostic result; wherein the mounting relationship is used to characterize whether the product under each menu item matches the menu item; The second diagnosis module includes: a determination module and a missing object detection module; the determination module is used to determine the industry category of the target merchant, and determine the industry menu template and core product category corresponding to the industry category; the missing object detection module is used to determine whether the target product or target menu item is missing in the product menu to be diagnosed according to the industry menu template and the core product category, and obtain a diagnosis result; An adjustment suggestion output module, used for outputting adjustment suggestions for the menu of commodities to be diagnosed according to the diagnosis results; Wherein, the adjustment suggestion output module includes: A mounting relationship adjustment module, for, if the diagnosis result includes a commodity and a menu item whose mounting relationship is a mounting error, obtaining, for the commodity with the mounting error, a matching degree between the commodity and each menu item in the menu of commodities to be diagnosed; determining, according to the matching degree, a candidate menu item with the highest matching degree with the commodity from among each menu item in the menu of commodities to be diagnosed; and outputting a first adjustment suggestion for indicating that the commodity with the mounting error should be adjusted to the candidate menu item if the matching degree between the commodity and the candidate menu item is greater than a preset matching degree threshold; a commodity adding suggestion module, configured to output a second adjustment suggestion for reminding the target merchant to add the target commodity if the diagnosis result includes that the target commodity is missing from the to-be-diagnosed commodity menu; A module for suggesting adding target menu items is used to output a third adjustment suggestion for reminding the target merchant to add the target menu item if the diagnosis result includes that the target product exists in the menu of products to be diagnosed, and there is a lack of a target menu item that can take over the target product. If the quantity of the target product is greater than or equal to a preset quantity threshold, 8. The diagnostic device according to claim 7, characterized in that The first diagnostic module also includes: A sample acquisition module is used to acquire menu sample data; wherein the menu sample data includes: description information of the sample merchant, description information of the sample menu, and description information of the sample goods under each sample menu item in the sample menu; A sample labeling module, used for inputting the menu sample data into the multimodal large model, and the multimodal large model determines whether the mounting relationship between the sample menu items and the sample commodities in the menu sample data is correct, and outputs the mounting relationship determination result; wherein the mounting relationship determination result includes correct mounting and wrong mounting; for the sample menu items and sample commodities whose mounting relationship determination result is correct mounting, a label of correct mounting is marked, and for the sample menu items and sample commodities whose mounting relationship determination result is wrong mounting, a label of wrong mounting is marked, so as to obtain the labeling data; The fine-tuning module is used to fine-tune the pre-trained text embedding model according to the labeled data to obtain a fine-tuned text embedding model.
9. The diagnostic device according to claim 7, characterized in that: The determination module comprises: An order acquisition unit, used to acquire order data of each commodity category under the industry category; An index value calculation unit, used to calculate the index value of the operating index of each commodity category according to the order data of each commodity category; The determination unit is used to determine the industry menu template and the core commodity category corresponding to the industry category according to the index value of the operating index of each commodity category.
10. The diagnostic device according to claim 7, characterized in that The third adjustment suggestion carries a recommended name of the target menu item, and the module for adding a target menu item suggestion includes: A recommended name generation module is used to obtain a prompt text for generating the recommended name; wherein the prompt text includes: description information of the target merchant and description information of the target product in the product menu to be diagnosed; the prompt text is input into a large language model, the prompt text is processed by the large language model, and the recommended name matching the target merchant is output.
