Commodity retrieval method and device, terminal equipment and storage medium

By generating and matching search keywords and product vector data tables, it solves the problem of low relevance of product retrieval in e-commerce platforms, achieves more accurate understanding of user intentions and personalized recommendations, and improves user experience.

CN118606541APending Publication Date: 2024-09-06SHENZHEN CLOUD INTEGRAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410397964.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-03
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The product retrieval methods of existing e-commerce platforms cannot fully understand user intentions, especially when keywords are spelled incorrectly or ambiguously. As a result, the retrieval results are not highly relevant to the user's target product, have low accuracy, and cannot meet the user's personalized needs. Poor user experience.

Method used

By generating search keywords and target keyword identifiers, and using preset mapping models to convert product search information and product data into vector data, the matching degree is calculated, the target product is determined, search information details are retained, and retrieval accuracy is improved.

Benefits of technology

It improves the accuracy of product retrieval, meets the personalized needs of users, improves user experience, and avoids low relevance problems caused by keyword errors or ambiguities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118606541A
    Figure CN118606541A
Patent Text Reader

Abstract

The invention is applicable to the technical field of computer application, and provides a commodity retrieval method and device, terminal equipment and a storage medium, and the method comprises the following steps: generating a search keyword according to commodity search information input by a user and a preset keyword type; determining a target keyword identifier according to the search keyword and the keyword vector data table; and determining a target commodity according to the commodity search information, the target keyword identifier and the commodity vector data table. Therefore, the target keyword identifier matched with the keyword is obtained through the keyword and the keyword vector data table, so that the condition that the relevance between the retrieved commodity and the target commodity of the user is not high due to reasons such as keyword spelling error or keyword ambiguity is avoided; and the target commodity is determined according to the commodity search information, the target keyword identifier and the commodity vector data table, and the intention of the user is fully understood, so that the accuracy of commodity retrieval is improved, the personalized requirements of the user are met, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer application technology, and in particular, relates to a commodity retrieval method, device, terminal equipment and computer-readable storage medium. Background Art

[0002] With the rapid development of Internet technology, e-commerce has become an important part of modern business, playing an important role in promoting economic development and improving social welfare. The variety and quantity of goods on major e-commerce platforms are also increasing, and it is usually necessary to display the user's target goods to the user based on the user's search content.

[0003] In the related art, keywords are obtained according to the user's search content, and then products are directly retrieved based on the keywords. This cannot fully understand the user's intention and often cannot meet the user's personalized needs. In addition, if keyword spelling errors and keyword ambiguity occur in the search content, it is easy to cause the retrieved products to have low relevance to the user's target products, resulting in low accuracy of product retrieval and poor user experience. Summary of the invention

[0004] The purpose of the present application is to provide a product retrieval method, apparatus, terminal device and computer-readable storage medium, which can solve the problem in the related art that keywords are obtained according to the user's search content, and then the products are directly retrieved according to the keywords, which cannot fully understand the user's intention, and when keyword spelling errors and keyword ambiguity appear in the search content, it is easy to cause the retrieved products to have low relevance to the user's target products, thereby resulting in low accuracy of product retrieval, failure to meet the user's personalized needs, and poor user experience.

[0005] In a first aspect, an embodiment of the present application provides a method for retrieving a product, including: generating a search keyword based on product search information input by a user and a preset keyword type; determining a target keyword identifier based on the search keyword and a keyword vector data table; determining a target product based on the product search information, the target keyword identifier and the product vector data table.

[0006] In a possible implementation of the first aspect, before generating the search keyword according to the product search information input by the user and the preset keyword type, the method further includes:

[0007] Get the product data corresponding to each product in the product library;

[0008] Generate multiple keyword information corresponding to each preset keyword type according to each commodity data, wherein each keyword information includes a keyword and a keyword identifier corresponding to the keyword;

[0009] Using a preset mapping model, each keyword is mapped into a keyword vector;

[0010] Generate each initial keyword type table according to each keyword vector and the corresponding keyword identifier;

[0011] Performing data structure processing on each initial keyword type table to generate each keyword type table and generate a keyword vector data table;

[0012] Generate product information corresponding to each product based on the product data;

[0013] Using a preset mapping model, each product information is mapped into a product information vector;

[0014] Generate an initial product vector data table based on the product information vector and product data corresponding to each product;

[0015] Perform data structure processing on the initial product vector data table to generate a product vector data table.

[0016] Optionally, in another possible implementation of the first aspect, generating a search keyword according to the product search information input by the user and a preset keyword type includes:

[0017] Using the preset filtering model, product search information is extracted according to the preset keyword type to generate search keywords.

[0018] Optionally, in another possible implementation manner of the first aspect, determining the target keyword identifier according to the search keyword and the keyword vector data table includes:

[0019] Generate a search keyword vector according to the search keyword by using a preset mapping model;

[0020] According to the search keyword vector and the keyword vector data table, determining the degree of matching between each keyword vector in the keyword vector data table corresponding to the search keyword vector and the first vector of the search keyword vector;

[0021] According to the matching degrees of each first vector, a target keyword identifier is determined.

[0022] Optionally, in another possible implementation manner of the first aspect, determining the target product according to the product search information, the target keyword identifier, and the product vector data table includes:

[0023] generating at least one candidate target product according to the target keyword identifier;

[0024] Determine the target product based on the product search information, candidate target products and product vector data table.

[0025] Optionally, in another possible implementation manner of the first aspect, determining the target product according to the product search information, the candidate target products, and the product vector data table includes:

[0026] Mapping the product search information into a search information vector using a preset mapping model;

[0027] Determine, according to the search information vector and the product vector data table, a second vector matching degree between the search information vector and each product information vector corresponding to each candidate target product in the product vector data table;

[0028] The target product is determined according to the matching degrees of the second vectors corresponding to the candidate target products.

[0029] Optionally, in another possible implementation manner of the first aspect, determining the target product according to the matching degrees of the second vectors corresponding to the candidate target products includes:

[0030] When the second vector matching degree corresponding to the candidate target product is greater than a preset matching degree threshold, the candidate product is determined as the target product.

[0031] In the second aspect, the present application also provides a commodity retrieval device, including: a first generation module, used to generate search keywords based on the commodity search information input by the user and the preset keyword type; a first determination module, used to determine the target keyword identifier based on the search keyword and the keyword vector data table; a second determination module, used to determine the target commodity based on the commodity search information, the target keyword identifier and the commodity vector data table.

[0032] In a possible implementation of the second aspect, the above-mentioned commodity search device further includes:

[0033] The first acquisition module is used to acquire the commodity data corresponding to each commodity in the commodity library;

[0034] A second generating module is used to generate a plurality of keyword information corresponding to each preset keyword type according to each commodity data, wherein each keyword information includes a keyword and a keyword identifier corresponding to the keyword;

[0035] A first mapping module, used to map each keyword into a keyword vector using a preset mapping model;

[0036] A third generating module, used to generate each initial keyword type table according to each keyword vector and the corresponding keyword identifier;

[0037] A fourth generating module, used for performing data structure processing on each initial keyword type table, generating each keyword type table, and generating a keyword vector data table;

[0038] A fifth generating module, used to generate commodity information corresponding to each commodity according to each commodity data;

[0039] A second mapping module, used to map each commodity information into a commodity information vector using a preset mapping model;

[0040] A sixth generation module, used to generate an initial commodity vector data table according to the commodity information vector and commodity data corresponding to each commodity;

[0041] The seventh generating module is used to perform data structure processing on the initial commodity vector data table to generate a commodity vector data table.

[0042] Optionally, in another possible implementation manner of the second aspect, the first generating module includes:

[0043] The first generating unit is used to extract the commodity search information and generate the search keyword by using the preset filtering model and according to the preset keyword type.

[0044] Optionally, in another possible implementation manner of the second aspect, the first determining module includes:

[0045] A first mapping unit, configured to generate a search keyword vector according to the search keyword by using a preset mapping model;

[0046] A first determining unit, configured to determine, based on the search keyword vector and the keyword vector data table, a degree of matching between each keyword vector in the keyword vector data table corresponding to the search keyword vector and a first vector of the search keyword vector;

[0047] The second determining unit is used to determine the target keyword identifier according to the matching degree of each first vector.

[0048] Optionally, in another possible implementation manner of the second aspect, the second determining module includes:

[0049] A second generating unit, configured to generate at least one candidate target commodity according to the target keyword identifier;

[0050] The third determining unit is used to determine the target commodity according to the commodity search information, the candidate target commodities and the commodity vector data table.

[0051] Optionally, in another possible implementation manner of the second aspect, the third determining unit is specifically configured to:

[0052] Mapping the product search information into a search information vector using a preset mapping model;

[0053] Determine, according to the search information vector and the product vector data table, a second vector matching degree between the search information vector and each product information vector corresponding to each candidate target product in the product vector data table;

[0054] The target product is determined according to the matching degrees of the second vectors corresponding to the candidate target products.

[0055] Optionally, in yet another possible implementation manner of the second aspect, the third determining unit is further configured to:

[0056] When the second vector matching degree corresponding to the candidate target product is greater than a preset matching degree threshold, the candidate product is determined as the target product.

[0057] In a third aspect, the present application further provides a terminal device. The terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, a method for implementing any one of the implementation modes of the first aspect is implemented.

[0058] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method of any one of the implementation modes of the first aspect is implemented.

[0059] In a fifth aspect, the present application further provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute any one of the methods of the first aspect.

[0060] Compared with the prior art, the embodiments of the present application have the following beneficial effects: a target keyword identifier that matches the keyword is obtained through the keyword and the keyword vector data table, thereby avoiding the situation where the retrieved product is not highly relevant to the user's target product due to keyword spelling errors or keyword ambiguity, and determining the target product based on the product search information, the target keyword identifier and the product vector data table, retaining the detailed information in the product search information, fully understanding the user's intention, thereby improving the accuracy of product retrieval, meeting the user's personalized needs, and enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying any creative work.

[0062] Figure 1 It is a flowchart of a method for searching for commodities provided in an embodiment of the present application;

[0063] Figure 2 It is a schematic diagram of the structure of a commodity search device provided in an embodiment of the present application;

[0064] Figure 3 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0065] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0066] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0067] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0068] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0069] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0070] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0071] The following is a detailed description of the commodity retrieval method, apparatus, terminal device, storage medium and computer program provided by the present application with reference to the accompanying drawings.

[0072] Figure 1 A schematic flow chart of a commodity search method provided in an embodiment of the present application is shown.

[0073] Step 101: Generate search keywords based on the product search information input by the user and the preset keyword type.

[0074] It should be noted that the commodity search method of the embodiment of the present application can be executed by the commodity search device of the embodiment of the present application. The commodity search device of the embodiment of the present application can be configured in any terminal device to execute the commodity search method of the embodiment of the present application.

[0075] As a possible implementation method, the product search information input by the user may be words or sentences related to the product input by the user according to actual needs. The preset keyword types may include "category", "brand", "efficacy" and "ingredients". Keywords about "category", "brand", "efficacy" and "ingredients" in the product search information may be extracted according to the preset keyword types to generate search keywords, wherein each preset keyword type may be an optional field. If the keyword corresponding to the preset keyword type does not exist in the product search information, the preset keyword type is ignored.

[0076] For example, if the product search information entered by the user is "Do you have any moisturizing facial masks to recommend?", the keyword corresponding to "efficacy" in the preset keyword type can be extracted as "moisturizing", and the keyword corresponding to "category" can be extracted as "facial mask", and the generated search keyword is "efficacy: moisturizing; category: facial mask". If the product search information entered by the user is "I have dry skin, what facial masks can I recommend", the keyword corresponding to "category" in the preset keyword type can be extracted as "facial mask", and the generated search keyword is "category: facial mask".

[0077] Furthermore, a pre-trained model may be used to extract keywords from product search information, thereby improving the accuracy of product retrieval. That is, in a possible implementation of the embodiment of the present application, the above step 101 may include:

[0078] Using the preset filtering model, product search information is extracted according to the preset keyword type to generate search keywords.

[0079] As a possible implementation method, the model can be pre-trained according to the preset keyword type to generate a preset filtering model. The large model can be used as the preset filtering model, and the product search information can be input into the preset filtering model to generate search keywords.

[0080] Furthermore, a keyword vector data table and a product vector data table can be created based on the product data of each product in the product library and the preset keyword type, thereby further improving the accuracy of product retrieval and user experience. That is, in a possible implementation of the embodiment of the present application, before the above step 101, the following may also be included:

[0081] Get the product data corresponding to each product in the product library;

[0082] Generate multiple keyword information corresponding to each preset keyword type according to each commodity data, wherein each keyword information includes a keyword and a keyword identifier corresponding to the keyword;

[0083] Using a preset mapping model, each keyword is mapped into a keyword vector;

[0084] Generate each initial keyword type table according to each keyword vector and the corresponding keyword identifier;

[0085] Performing data structure processing on each initial keyword type table to generate each keyword type table and generate a keyword vector data table;

[0086] Generate product information corresponding to each product based on the product data;

[0087] Using a preset mapping model, each product information is mapped into a product information vector;

[0088] Generate an initial product vector data table based on the product information vector and product data corresponding to each product;

[0089] Perform data structure processing on the initial product vector data table to generate a product vector data table.

[0090] As a possible implementation method, the product data corresponding to each product in the product library can be obtained. The product data may include the product name, product identification, product category, category identification, product brand, brand identification, product efficacy, efficacy identification, product ingredients, ingredient identification and product price, etc. According to the product data, multiple keyword information corresponding to each preset keyword type (including category, brand, efficacy and ingredient) can be generated. Each keyword information is unique in the corresponding preset keyword type. The keyword information includes the keyword identification corresponding to the keyword. For example, when generating multiple keyword information corresponding to the category, the product category and category identification of each product can be recorded, and the product category is used as the keyword and the category identification is used as the keyword identification. When there are multiple products with the same product category and category identification, the product category and category identification can be recorded only once (because each keyword information is unique in the corresponding preset keyword type). The keyword information corresponding to other preset keyword types (brand, efficacy and ingredient) can be obtained in the same way.

[0091] For example, when generating multiple keyword information corresponding to categories, assuming that there are four products A, B, C, and D in the product library, the product category of product A is "facial mask" and the category identifier is 1, the product category of product B is "perfume" and the category identifier is 2, the product category of product C is "lipstick" and the category identifier is 3, and the product category of product D is also "facial mask" and the category identifier is 1, then the multiple keyword information corresponding to the category is "Keyword: facial mask, keyword identifier: 1; keyword: perfume, keyword identifier: 2; keyword: lipstick, keyword identifier: 3". The product category of product D is the same as that of product A, so there is no need to record it repeatedly.

[0092] As a possible implementation method, a pre-trained preset mapping model (for example, an Embedding model) can be used to map each keyword into a keyword vector. The dimension of the keyword vector can be set according to actual needs. Each keyword vector and keyword identifier can be stored in a table corresponding to each preset keyword type to generate each initial keyword type table (including an initial category table, an initial brand table, an initial efficacy table, and an initial ingredient table).

[0093] As an example, the keyword information corresponding to the category is "Keyword: facial mask, keyword identifier: 1". The keyword "facial mask" is converted into a 768-dimensional feature vector through the Embedding model as a keyword vector. The 768-dimensional feature vector and the keyword identifier "1" are stored in the table corresponding to the category to generate a category table.

[0094] As a possible implementation method, data structure processing can be performed on each keyword type table. For example, B+ tree indexes can be constructed for the initial category table, initial brand table, initial efficacy table and initial ingredient table respectively to generate each keyword type table (including category table, brand table, efficacy table and ingredient table), and each keyword type table can be combined to generate a keyword vector data table.

[0095] As a possible implementation method, product information of each product can be generated according to the product data corresponding to each product. The product information may include product name, product category, product brand, product efficacy and product ingredients. The format of the product information can be: "Product name: {product name of a certain product}, product category: {product category of a certain product}, product brand: {product brand of a certain product}, product efficacy: {product efficacy of a certain product}, product ingredients: {product ingredients of a certain product}". The product information can be mapped into a product information vector using a pre-trained preset mapping model. The product information vector, product identifier, product name, category identifier, brand identifier, efficacy identifier, product price and ingredient identifier of each product can be stored in a table according to the product data of each product to generate an initial product vector data table. The initial product vector data table can be processed for data structure (for example, building a B+ tree index) to generate a product vector data table.

[0096] Step 102: Determine the target keyword identifier according to the search keyword and the keyword vector data table.

[0097] As a possible implementation method of the present application, the corresponding keyword type table in the keyword vector data table can be determined according to the preset keyword type corresponding to the keyword in the search keyword, and the keywords in the search keyword can be matched with each keyword vector in the keyword type table to determine the matching degree corresponding to each keyword vector, and the keyword identifier corresponding to the keyword vector with the highest matching degree in each keyword type table participating in the calculation can be used as the target keyword identifier.

[0098] Furthermore, the search keyword can be converted into a feature vector and matched with each keyword vector in the keyword vector data table to determine the target keyword identifier, so that the search keyword that may have typos or semantic ambiguity can be aligned with the keyword information actually stored in the keyword vector data table, avoiding the situation where the searched product is not highly relevant to the user's target product due to keyword spelling errors or keyword ambiguity, thereby further improving the accuracy of product retrieval and enhancing user experience. That is, in a possible implementation method of the present application embodiment, the above step 102 may include:

[0099] Generate a search keyword vector according to the search keyword by using a preset mapping model;

[0100] According to the search keyword vector and the keyword vector data table, determining the degree of matching between each keyword vector in the keyword vector data table corresponding to the search keyword vector and the first vector of the search keyword vector;

[0101] According to the matching degrees of each first vector, a target keyword identifier is determined.

[0102] As a possible implementation method of the present application, a preset mapping model (for example, an Embedding model) can be used to map the keywords corresponding to each preset keyword type in the search keyword into a high-dimensional feature vector, and use the high-dimensional feature vector as the search keyword vector. When the search keyword contains keywords corresponding to multiple preset keyword types, the search keyword vector can contain multiple high-dimensional feature vectors.

[0103] For example, when the search keyword is "effect: moisturizing; category: facial mask", the Embedding model can be used to map "moisturizing" and "facial mask" into high-dimensional feature vectors X and Y respectively, and the search keyword vectors can be X and Y.

[0104] As a possible implementation of the present application, the keyword type table corresponding to the keyword vector data table can be determined according to the preset keyword type corresponding to the search keyword vector, and the search keyword vector is matched with each keyword vector in the keyword type table to generate each first vector matching degree. Specifically, each first vector matching degree can be determined according to the following method: Calculate the cosine distance between the search keyword vector and each keyword vector, assuming that the search keyword vector X is N-dimensional, and there are M corresponding keyword vectors V in the keyword vector data table. m (m=1,…,M), then search for keyword vector X and keyword vector V m The cosine distance between The first vector matching degree may be determined according to the cosine distance (the smaller the cosine distance, the higher the first vector matching degree). The keyword identifier corresponding to the keyword vector with the highest first matching degree in each keyword type table participating in the calculation may be determined as the target keyword identifier.

[0105] As an example, assuming that the search keyword vector includes a high-dimensional feature vector X corresponding to "efficacy" and a high-dimensional feature vector Y corresponding to "category", X can be matched with the keyword vector in the efficacy table, and Y can be matched with the keyword vector in the category table. Assuming that the keyword identifier corresponding to the first keyword vector with the highest matching degree with X in the efficacy table is 1, and the keyword identifier corresponding to the first keyword vector with the highest matching degree with Y in the category table is 2, the keyword identifier "1" and the keyword identifier "2" can be used as target keyword identifiers.

[0106] Step 103, determining the target product according to the product search information, the target keyword identifier and the product vector data table.

[0107] It should be noted that if products are searched only based on keywords, the product search information entered by the user may not be fully understood. For example, if the user inputs "I have dry skin, what facial masks are recommended?", when extracting keywords, only the product category of the product to be queried can be extracted as "facial mask", while the detail that the product function corresponding to "dry skin" is "moisturizing, hydrating" is ignored. Therefore, it is necessary to further match the products based on the product search information and the product vector data table, so as to fully understand the user's intention and further improve the accuracy of product retrieval.

[0108] As a possible implementation method, the products in the product library may be filtered according to the target keyword identifier, and then the product search information may be matched with the product information vectors corresponding to the filtered products in the product vector data table to determine the target product.

[0109] Furthermore, the candidate target products can be determined according to the target keyword identifier, thereby reducing the complexity of the search and further improving the accuracy of product retrieval. That is, in a possible implementation of the embodiment of the present application, the above step 103 may include:

[0110] generating at least one candidate target product according to the target keyword identifier;

[0111] Determine the target product based on the product search information, candidate target products and product vector data table.

[0112] As a possible implementation method, all products can be filtered according to the target keyword identifier. According to the product data of each product, the products whose category identifier, brand identifier, efficacy identifier and ingredient identifier in the product data are the same as the target keyword identifier or included in the target keyword identifier are determined as candidate target products, where "included in the target keyword identifier" means that the range of a certain identifier of the product is smaller than the range of the target keyword identifier.

[0113] For example, assuming that the target keyword identifiers are 100 and 200, where "100" is the category identifier and "200" is the efficacy identifier, then all products with a category identifier of 100, a category identifier included in 100, an efficacy identifier of 200, and an efficacy identifier included in 200 can be determined as candidate target products. Assuming that "100" is the category identifier corresponding to the category "facial mask", the products with a category identifier included in 100 can be products with a product category of "patch mask", "compressed mask", etc., and the product category range is smaller than "facial mask".

[0114] As a possible implementation method, the product search information may be matched with the product information vector corresponding to the candidate target product in the product vector data table to determine the target product.

[0115] Furthermore, the product search information can be converted into a high-dimensional feature vector, and the target product can be determined by matching the high-dimensional feature vector corresponding to the product search information with the product information vector, thereby retaining the detailed information in the product search information, fully understanding the user's intention, and then meeting the user's personalized needs, further improving the accuracy of product retrieval. That is, in a possible implementation of the embodiment of the present application, the above-mentioned determination of the target product based on the product search information, the candidate target product and the product vector data table can include:

[0116] Mapping the product search information into a search information vector using a preset mapping model;

[0117] Determine, according to the search information vector and the product vector data table, a second vector matching degree between the search information vector and each product information vector corresponding to each candidate target product in the product vector data table;

[0118] The target product is determined according to the matching degrees of the second vectors corresponding to the candidate target products.

[0119] As a possible implementation method of the present application, a preset mapping model (for example, an Embedding model) can be used to map product search information into a high-dimensional feature vector, and the high-dimensional feature vector is used as a search information vector. The search information vector is matched with the product information vector corresponding to each candidate target product in the product vector data table. For example, the cosine distance between the search information vector and each product information vector can be calculated to generate a second vector matching degree between the search information vector and the product information vector corresponding to each candidate target product. The target product can be determined based on the second vector matching degrees corresponding to each candidate target product. For example, the candidate target products corresponding to the product information vectors ranked in the top k (k is a positive integer) in terms of second vector matching degrees can be used as the target products.

[0120] Furthermore, a matching threshold may be specified, and the candidate target products whose second vector matching degree meets the matching threshold may be used as target products, thereby preventing the candidate target products with lower second vector matching degree from being determined as target products, thereby further improving the accuracy of product retrieval and enhancing user experience. That is, in a possible implementation of the embodiment of the present application, the above-mentioned determination of the target product based on the matching degree of each second vector corresponding to each candidate target product may include:

[0121] When the second vector matching degree corresponding to the candidate target product is greater than a preset matching degree threshold, the candidate product is determined as the target product.

[0122] As a possible implementation of the present application, a matching degree threshold may be preset, and a candidate target commodity whose second vector matching degree is greater than the preset matching degree threshold is determined as the target commodity.

[0123] As a possible implementation, the maximum number Q of target commodities may be limited. If the number of candidate target commodities whose second vector matching degree is greater than a preset matching degree threshold is greater than Q, the first Q candidate target commodities may be selected as target commodities.

[0124] The product retrieval method provided in the embodiment of the present application obtains a keyword identifier that matches the keyword through the keyword and the keyword vector data table, thereby avoiding the situation where the retrieved product is not highly relevant to the user's target product due to keyword spelling errors or keyword ambiguity, and determines the target product based on the product search information and the product vector data table, retains the detailed information existing in the product search information, fully understands the user's intention, thereby improving the accuracy of product retrieval, meeting the user's personalized needs, and improving the user experience, and by mapping the keywords and product search information into high-dimensional feature vectors, and matching them with the vectors in the keyword vector data table and the product vector data table respectively, the matching accuracy is improved, thereby further improving the accuracy of product retrieval and further improving the user experience.

[0125] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0126] Corresponding to the commodity retrieval method described in the above embodiment, Figure 2 A structural block diagram of a commodity retrieval device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0127] Reference Figure 2 , the device 20 comprises:

[0128] The first generating module 21 is used to generate search keywords according to the commodity search information input by the user and the preset keyword type;

[0129] A first determination module 22, configured to determine a target keyword identifier according to the search keyword and the keyword vector data table;

[0130] The second determination module 23 is used to determine the target commodity according to the commodity search information, the target keyword identifier and the commodity vector data table.

[0131] In actual use, the commodity retrieval device provided in the embodiment of the present application can be configured in any terminal device to execute the aforementioned commodity retrieval method.

[0132] The product retrieval device provided in the embodiment of the present application obtains a target keyword identifier that matches the keyword through a keyword and a keyword vector data table, thereby avoiding the situation where the retrieved product has a low correlation with the user's target product due to keyword spelling errors or keyword ambiguity, and determines the target product based on the product search information, the target keyword identifier and the product vector data table, retains the detailed information existing in the product search information, and fully understands the user's intention, thereby improving the accuracy of product retrieval, meeting the user's personalized needs, and enhancing the user experience.

[0133] In a possible implementation form of the present application, the above-mentioned commodity search device 20 further includes:

[0134] The first acquisition module is used to acquire the commodity data corresponding to each commodity in the commodity library;

[0135] A second generating module is used to generate a plurality of keyword information corresponding to each preset keyword type according to each commodity data, wherein each keyword information includes a keyword and a keyword identifier corresponding to the keyword;

[0136] A first mapping module, used to map each keyword into a keyword vector using a preset mapping model;

[0137] A third generating module, used to generate each initial keyword type table according to each keyword vector and the corresponding keyword identifier;

[0138] A fourth generating module, used for performing data structure processing on each initial keyword type table, generating each keyword type table, and generating a keyword vector data table;

[0139] A fifth generating module, used to generate commodity information corresponding to each commodity according to each commodity data;

[0140] A second mapping module, used to map each commodity information into a commodity information vector using a preset mapping model;

[0141] A sixth generation module, used to generate an initial commodity vector data table according to the commodity information vector and commodity data corresponding to each commodity;

[0142] The seventh generating module is used to perform data structure processing on the initial commodity vector data table to generate a commodity vector data table.

[0143] Furthermore, in another possible implementation form of the present application, the first generating module 21 includes:

[0144] The first generating unit is used to extract the commodity search information and generate the search keyword by using the preset filtering model and according to the preset keyword type.

[0145] Furthermore, in another possible implementation form of the present application, the first determining module 22 includes:

[0146] A first mapping unit, configured to generate a search keyword vector according to the search keyword by using a preset mapping model;

[0147] A first determining unit, configured to determine, based on the search keyword vector and the keyword vector data table, a degree of matching between each keyword vector in the keyword vector data table corresponding to the search keyword vector and a first vector of the search keyword vector;

[0148] The second determining unit is used to determine the target keyword identifier according to the matching degree of each first vector.

[0149] Furthermore, in another possible implementation form of the present application, the second determining module 23 includes:

[0150] A second generating unit, configured to generate at least one candidate target commodity according to the target keyword identifier;

[0151] The third determining unit is used to determine the target commodity according to the commodity search information, the candidate target commodities and the commodity vector data table.

[0152] Furthermore, in another possible implementation form of the present application, the third determining unit is specifically configured to:

[0153] Mapping the product search information into a search information vector using a preset mapping model;

[0154] Determine, according to the search information vector and the product vector data table, a second vector matching degree between the search information vector and each product information vector corresponding to each candidate target product in the product vector data table;

[0155] The target product is determined according to the matching degrees of the second vectors corresponding to the candidate target products.

[0156] Furthermore, in another possible implementation form of the present application, the third determining unit is further configured to:

[0157] When the second vector matching degree corresponding to the candidate target product is greater than a preset matching degree threshold, the candidate product is determined as the target product.

[0158] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0159] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0160] In order to implement the above embodiments, the present application also proposes a terminal device.

[0161] Figure 3 A schematic diagram of the structure of a terminal device according to an embodiment of the present application.

[0162] like Figure 3 As shown, the terminal device 200 includes:

[0163] The memory 210 and at least one processor 220, a bus 230 connecting different components (including the memory 210 and the processor 220), the memory 210 stores a computer program, and when the processor 220 executes the program, the method for retrieving goods described in the embodiment of the present application is implemented.

[0164] Bus 230 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0165] The terminal device 200 typically includes a variety of electronic device readable media, which can be any available media that can be accessed by the terminal device 200, including volatile and non-volatile media, removable and non-removable media.

[0166] The memory 210 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 240 and / or cache memory 250. The terminal device 200 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 260 may be used to read and write non-removable, non-volatile magnetic media ( Figure 3 not shown, usually called a "hard drive"). Although Figure 3 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical medium) may be provided. In these cases, each drive may be connected to bus 230 via one or more data medium interfaces. Memory 210 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present application.

[0167] A program / utility 280 having a set (at least one) of program modules 270 may be stored, for example, in the memory 210, such program modules 270 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 270 generally perform the functions and / or methods of the embodiments described herein.

[0168] The terminal device 200 can also communicate with one or more external devices 290 (e.g., keyboard, pointing device, display 291, etc.), and can also communicate with one or more devices that enable users to interact with the terminal device 200, and / or communicate with any device that enables the terminal device 200 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be carried out through an input / output (I / O) interface 292. In addition, the terminal device 200 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) through a network adapter 293. As shown in the figure, the network adapter 293 communicates with other modules of the terminal device 200 through a bus 230. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the terminal device 200, including but not limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive, and data backup storage system, etc.

[0169] The processor 220 executes various functional applications and data processing by running the programs stored in the memory 210 .

[0170] It should be noted that the implementation process and technical principles of the terminal device of this embodiment refer to the aforementioned explanation of the commodity retrieval method of the embodiment of the present application, and will not be repeated here.

[0171] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0172] An embodiment of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0173] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0174] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0175] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0176] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, 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.

[0177] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0178] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for searching for commodities, characterized in that: include: Generate search keywords based on the product search information entered by the user and the preset keyword type; Determine a target keyword identifier according to the search keyword and keyword vector data table; The target commodity is determined according to the commodity search information, the target keyword identifier and the commodity vector data table.

2. The method according to claim 1, characterized in that Before generating the search keyword according to the commodity search information input by the user and the preset keyword type, the method further includes: Get the product data corresponding to each product in the product library; Generate a plurality of keyword information corresponding to each preset keyword type according to each of the commodity data, wherein each of the keyword information includes a keyword and a keyword identifier corresponding to the keyword; Using a preset mapping model, mapping each of the keywords into a keyword vector; Generating each initial keyword type table according to each keyword vector and the corresponding keyword identifier; Performing data structure processing on each of the initial keyword type tables to generate each keyword type table and generate the keyword vector data table; Generating commodity information corresponding to each commodity according to each commodity data; Using the preset mapping model, mapping each of the commodity information into a commodity information vector; Generate an initial product vector data table according to the product information vector and the product data corresponding to each product; The initial commodity vector data table is processed for data structure to generate the commodity vector data table.

3. The method according to claim 1, characterized in that The generating of search keywords according to the commodity search information input by the user and the preset keyword type includes: The commodity search information is extracted by using a preset filtering model according to the preset keyword type to generate the search keyword.

4. The method according to claim 2, characterized in that The step of determining a target keyword identifier according to the search keyword and the keyword vector data table includes: Generate a search keyword vector according to the search keyword by using the preset mapping model; According to the search keyword vector and the keyword vector data table, determining a first vector matching degree between each keyword vector in the keyword vector data table corresponding to the search keyword vector and the search keyword vector; The target keyword identifier is determined according to the matching degrees of each of the first vectors.

5. The method according to claim 2, characterized in that The step of determining the target commodity according to the commodity search information, the target keyword identifier and the commodity vector data table includes: generating at least one candidate target commodity according to the target keyword identifier; A target product is determined according to the product search information, the candidate target products and the product vector data table.

6. The method according to claim 5, characterized in that The step of determining the target product according to the product search information, the candidate target product and the product vector data table includes: Mapping the commodity search information into a search information vector using the preset mapping model; Determine, according to the search information vector and the product vector data table, a second vector matching degree between the search information vector and each of the product information vectors corresponding to each of the candidate target products in the product vector data table; The target product is determined according to the matching degrees of the second vectors corresponding to the candidate target products.

7. The method according to claim 6, characterized in that The determining the target product according to the matching degree of each of the second vectors corresponding to each of the candidate target products includes: When the matching degree of the second vector corresponding to the candidate target product is greater than a preset matching degree threshold, the candidate product is determined as the target product.

8. A commodity search device, characterized in that: include: A first generating module, used to generate search keywords according to the commodity search information input by the user and the preset keyword type; A first determination module, configured to determine a target keyword identifier according to the search keyword and the keyword vector data table; The second determination module is used to determine the target commodity according to the commodity search information, the target keyword identifier and the commodity vector data table.

9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the terminal device implements the method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by an electronic device, the method according to any one of claims 1 to 7 is implemented.