A user search optimization method and system based on semantic analysis
By introducing structured intermediate results and main recall conditions into the search chain of e-commerce platforms, the problem of loss of multi-intent information during transmission is solved, and lossless transmission and refined processing of multi-intent information are achieved, thereby improving the accuracy of search recall results and system stability.
Patent Information
- Application Number
- CN202611173650.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-04
- Publication Date
- 2026-11-20
AI Technical Summary
In high-concurrency scenarios on e-commerce platforms, when the multi-intent soft representation output by the semantic analysis module is passed to the downstream recall interface that accepts a single category ID, the second-highest intent information is systematically discarded, resulting in the search recall results missing the user's potential real needs.
By introducing structured intermediate results, multiple intents are converted into primary recall conditions and supplementary recall conditions, and intent source tags and priority information are added to candidate products, thus achieving lossless transmission and refined processing of multiple intent information.
It effectively solves the problem of information truncation, improves the relevance and accuracy of search results, ensures system stability, and covers users' potential real needs.
Smart Images

Figure CN123138494A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of user search optimization based on semantic analysis, and more particularly to a user search optimization method and system based on semantic analysis. Background Technology
[0002] In the search chain of e-commerce platforms, the system typically uses semantic analysis technology to parse the intent of the natural language query input by the user and passes the parsing results to the downstream recall module to obtain a set of candidate products that match the user's intent. With the evolution of technology, the semantic analysis module can now accurately capture multiple possible intents in the query and retain complete intent uncertainty information in the form of a probability distribution. However, in high-concurrency scenarios such as e-commerce promotions, in order to ensure system response latency and stability, the core existing inverted index recall module often retains a relatively traditional interface design, only allowing the acceptance of a single discrete target tag as a query condition.
[0003] In this scenario, the multi-intent soft representation output by the semantic analysis module encounters a bottleneck in intent consumption protocol conversion when transmitted to the downstream recall interface that accepts a single category ID. When the user query is highly ambiguous and the prior probabilities of multiple candidate intents are not significantly different, the adaptation layer, in order to meet the constraints of the downstream hard decision interface, usually follows the simple logic of taking the maximum value, forcibly converging the probability distribution to a single category point estimate. This processing method results in the systematic discarding of near-equal probability, second-highest intent information before it enters the recall module.
[0004] Existing conventional methods, due to the lag in upgrades to the interfaces of various modules within the system architecture compared to algorithm evolution, struggle to ensure both stability during peak sales periods and lossless transmission of complex representations. This often overlooks information truncation caused by interface mismatches. Therefore, in the high-concurrency environment of e-commerce peak sales, when the semantic analysis module outputs a multi-peaked, multi-intent soft representation, the downstream recall interface can only consume a single-point estimated class tag. This leads to the systematic discarding of the second-highest intent information during the maximum intent truncation and transformation process, ultimately causing the search recall results to completely miss the user's potential real needs. Summary of the Invention
[0005] This application discloses a user search optimization method and system based on semantic analysis, which aims to solve the problem that in the search chain of e-commerce platforms, when the multi-intent soft representation output by the semantic analysis module is transmitted to the downstream recall interface that accepts a single category ID, the intent information is truncated due to interface mismatch, the second highest intent information is systematically discarded, and the search recall results ultimately miss the user's potential real needs.
[0006] In a first aspect, this application discloses a user search optimization method based on semantic analysis, comprising the following steps: Get the query text entered by the user; The semantic analysis module processes the query text to obtain the intent probability distribution output by the semantic analysis module based on the query text, and determines whether the intent probability distribution is a single intent-dominated state or a state where multiple intents coexist. When it is determined that multiple intentions coexist, several candidate intentions that meet the preset conditions are selected from the intention probability distribution; Several candidate intents are converted into structured intermediate results; the structured intermediate results include intent graphs, supplementary intents, corresponding intent identifiers, corresponding priorities, and intent relationship tags; The structured intermediate results are converted into main recall conditions and supplementary recall conditions that can be received by the downstream recall module. The main recall conditions correspond to the main idea graph, and the supplementary recall conditions correspond to the supplementary intent. The candidate product set returned by the main recall condition and the supplementary recall condition is merged, and the intent source tag and priority information are added to the products in the candidate product set.
[0007] Optionally, the query text is processed by the semantic analysis module to obtain the intent probability distribution output by the semantic analysis module based on the query text, including: Use regular expressions to clean the query text; The cleaned query text is segmented to obtain a word sequence; Inputting the word sequence into the semantic analysis module yields the intent probability distribution.
[0008] Optionally, determining whether the intent probability distribution is dominated by a single intent or a state where multiple intents coexist includes: Determine the first and second intention probabilities in the intention probability distribution; the first intention probability is the intention probability with the highest probability; the second intention probability is the intention probability with the second highest probability. If the difference between the first intent probability and the second intent probability is greater than a preset difference, and the first intent probability is greater than a confidence threshold, it is determined that the intent probability distribution is a single intent-dominated state. If the difference between the first intent probability and the second intent probability is less than or equal to a preset difference, or if the first intent probability is less than or equal to a confidence threshold, it is determined that the intent probability distribution is a state of multiple intents coexisting.
[0009] Optionally, when it is determined that multiple intentions coexist, several candidate intentions that meet preset conditions are selected from the intention probability distribution, including: Filter out intents whose probability ranking is greater than a ranking threshold from the intent probability distribution; Intents that exceed the ranking threshold are identified as several candidate intents.
[0010] Optionally, the structured intermediate results can be converted into primary recall conditions and supplementary recall conditions that can be received by the downstream recall module, including: Determine the load on the downstream recall module; When the first or second preset condition is met, the structured intermediate reception result is converted into a main recall condition and a supplementary recall condition that can be received by the downstream recall module. The first preset condition is that the load of the downstream recall module is less than or equal to the load threshold. The second preset condition is that the load is greater than the load threshold and the comprehensive value score of the supplementary intent is greater than the score threshold.
[0011] Optionally, the method also includes: When the load of the downstream recall module is greater than the load threshold, and the comprehensive value score of the supplementary intent is less than or equal to the score threshold, the structured intermediate acceptance result is converted into the main recall condition, and the conversion of the structured intermediate acceptance result into the supplementary recall condition is stopped.
[0012] Optionally, calculate the overall value score of the supplementary intent, including: Obtain the probability weights of supplementary intentions, their semantic relevance to the idea graph, and historical interaction performance data; Calculate the probability importance score based on the probability weights of the supplementary intentions; Calculate the semantic fit score based on the degree of semantic relevance between the supplementary intent and the idea graph; Calculate the user acceptance score based on historical interaction data of the supplementary intent; The probability importance score, semantic fit score, and user acceptance score are weighted and fused to obtain the comprehensive value score of the supplementary intent.
[0013] Optionally, the load includes CPU utilization and response time, and the method also includes: Obtain historical interaction performance data for each supplementary intent, including click-through rate and conversion rate; Based on historical interaction performance data, the business value weight is calculated, and the business value weight increases as the click-through rate and conversion rate increase. The system stability weight is calculated based on the load, and the system stability weight increases with the increase of CPU utilization and response time. The system stability weight and business value weight are weighted and fused together to obtain a comprehensive adjustment factor; The scoring threshold is dynamically adjusted based on the comprehensive adjustment factor; when the comprehensive adjustment factor indicates that system stability is prioritized, the scoring threshold is increased, and when the comprehensive adjustment factor indicates that business value is prioritized, the scoring threshold is decreased.
[0014] Optionally, the probability importance score, semantic fit score, and user acceptance score are weighted and fused to obtain a comprehensive value score for the supplementary intent, including: Acquire users' historical interaction data, which includes users' historical purchase records, browsing preferences, and demographic information; Based on the query text entered by the user, identify the user's current intent context, which includes the user's preference for product categories, price range focus, and brand preference; Based on historical interaction data and intent context, a user intent preference profile is constructed, which quantifies the user's preference for different product attributes and intent types; For each supplementary intent, the weights of probability importance score, semantic fit score, and user acceptance score are determined based on the user intent preference profile. Based on the weights of probability importance score, semantic fit score, and user acceptance score, the probability importance score, semantic fit score, and user acceptance score are weighted and fused to obtain the comprehensive value score of supplementary intent.
[0015] Secondly, this application also discloses a user search optimization system based on semantic analysis, the system comprising: The acquisition module is used to acquire the query text input by the user; The acquisition module is also used to process the query text based on the semantic analysis module to obtain the intent probability distribution output by the semantic analysis module based on the query text, and to determine whether the intent probability distribution is a single intent-dominated state or a state where multiple intents coexist. The filtering and conversion module is used to filter out several candidate intents that meet preset conditions from the intent probability distribution when it is determined that multiple intents coexist. The condition transformation module is used to convert several candidate intents into structured intermediate results; the structured intermediate results include an intent graph, supplementary intents, corresponding intent identifiers, corresponding priorities, and intent relationship tags; The solution determination module is used to convert the structured intermediate acceptance results into main recall conditions and supplementary recall conditions that can be received by the downstream recall module. The main recall conditions correspond to the main idea graph, and the supplementary recall conditions correspond to the supplementary intent. The merge add-on module is used to merge the candidate product sets returned by the main recall conditions and the supplementary recall conditions, and add intent source tags and priority information to the products in the candidate product set.
[0016] Beneficial Effects: This application provides a user search optimization method based on semantic analysis. It obtains the query text input by the user and processes it using a semantic analysis module to acquire an intent probability distribution. This method can determine whether the intent probability distribution is dominated by a single intent or multiple intents coexisting. When it is determined to be a state of multiple intents coexisting, it filters out several candidate intents that meet preset conditions from the intent probability distribution and converts them into a structured intermediate result containing an intent graph, supplementary intents, intent identifiers, priorities, and intent relationship markers. Subsequently, this structured intermediate result is converted into main recall conditions and supplementary recall conditions that can be received by the downstream recall module. Finally, the candidate product sets returned by the main recall conditions and supplementary recall conditions are merged, and intent source markers and priority information are added to the products.
[0017] Through the above technical solution, this application effectively solves the problem in existing technologies where, due to the lag in interface upgrades between different modules in the system architecture and algorithm evolution, the second-highest intent information is systematically discarded when the multi-intent soft representation output by the semantic analysis module is transmitted to the downstream recall interface that accepts a single category ID. This application achieves lossless transmission of multi-intent information by introducing structured intermediate results, avoiding information truncation caused by the traditional simple logic of "taking the maximum value." Simultaneously, by converting multiple intents into primary and supplementary recall conditions, the downstream recall module can process multiple intents simultaneously, thus more comprehensively covering the user's potential real needs. Furthermore, adding intent source tags and priority information to candidate products helps the subsequent sorting and display modules to perform more refined processing. Therefore, this application significantly improves the relevance and accuracy of search recall results while ensuring system stability, overcomes information truncation caused by interface mismatch in existing technologies, and effectively solves the technical problem of overlooking the user's potential real needs, demonstrating significant progress and practical value. Attached Figure Description
[0018] Figure 1 This is a schematic diagram of a user search optimization method based on semantic analysis provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of another user search optimization method based on semantic analysis provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of a user search optimization system structure based on semantic analysis provided in an embodiment of the present invention. Detailed Implementation
[0019] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments. The components of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0020] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0021] To better understand the technical solution proposed in this application, some key terms involved will be explained first.
[0022] The "query text" refers to the natural language text entered by the user in the search box of the e-commerce platform, such as "red dress" or "thin laptop". The "semantic analysis module" is a component that understands and parses natural language queries. Its role is to identify the intent contained in the user's query and output these intents and their corresponding confidence levels in the form of a probability distribution. The "intent probability distribution" represents the confidence assessment of the semantic analysis module for various intents that may be contained in the user's query, usually presented as a vector or list, where each element represents an intent and its corresponding probability value. "Single intent dominance" means that there is a clear dominant intent in the user's query, whose probability is much higher than other intents. "Multiple intents coexisting" means that there are multiple intents in the user's query, and the probability values of these intents are relatively close, with no single intent having an absolute advantage. The "structured intermediate result" is a standardized data structure used to encapsulate and transmit processed user intent information for consumption and processing by downstream modules. The "primary recall condition" and "supplementary recall condition" are query conditions generated based on the structured intermediate result and can be directly used by downstream recall modules to trigger product recall. The "downstream recall module" is a component in an e-commerce platform responsible for retrieving relevant products from the product database based on query criteria. This method is typically deployed in the e-commerce platform's search system as a key link in the search chain, working in conjunction with the front-end user interface, the back-end product database, and other recommendation and ranking modules.
[0023] The following specific embodiments will provide a detailed introduction and explanation of a user search optimization method based on semantic analysis provided in this application.
[0024] Reference Figure 1 This invention provides a user search optimization method based on semantic analysis, comprising the following steps: S1, obtain the query text entered by the user.
[0025] The query text can be any natural language text entered by the user in the search box of the e-commerce platform. For example, the user can provide the query text through keyboard input, voice input, or handwriting input. In one implementation, the system can directly receive the raw query text from the user interface. In another implementation, after the query text is received, it can undergo preliminary preprocessing, such as removing special characters and standardizing capitalization, to ensure the accuracy of subsequent semantic analysis.
[0026] S2. Process the query text based on the semantic analysis module to obtain the intent probability distribution output by the semantic analysis module based on the query text, and determine whether the intent probability distribution is a single intent-dominated state or a state where multiple intents coexist.
[0027] The semantic analysis module can be implemented using various techniques, such as deep learning-based models (e.g., BERT, GPT) or rule-based and dictionary-based methods. This module receives the query text as input and outputs an intent probability distribution that reflects the various intents the query text may contain and their corresponding probabilities.
[0028] For example, for the query "red dress", the semantic analysis module might output an intent probability distribution such as "color: red (0.95), category: dress (0.98), style: casual (0.05)". The system then needs to determine whether this intent probability distribution represents a single dominant intent or a state of multiple concurrent intents. One method is to set a threshold; if the difference between the highest probability intent and the second highest probability intent is greater than this threshold, it is judged as a single dominant intent; otherwise, it is judged as a state of multiple concurrent intents. For example, if the probability of "color: red" is 0.95 and the probability of "category: dress" is 0.98, the difference between the two is very small, so it might be judged as a state of multiple concurrent intents.
[0029] In some implementations, a first intent probability and a second intent probability can be determined in the intent probability distribution; the first intent probability is the intent probability with the highest probability; the second intent probability is the intent probability with the second highest probability. If the difference between the first intent probability and the second intent probability is greater than a preset difference, and the first intent probability is greater than a confidence threshold, it is determined that the intent probability distribution is a single intent-dominated state. If the difference between the first intent probability and the second intent probability is less than or equal to a preset difference, or if the first intent probability is less than or equal to a confidence threshold, it is determined that the intent probability distribution is a state of multiple intents coexisting.
[0030] Specifically, the first intent probability refers to the probability of the intent with the highest probability value among all identified intents in the intent probability distribution output by the semantic analysis module. The second intent probability refers to the probability of the intent with the second-highest probability value in the same intent probability distribution. These two probability values are used to quantify the significance of different intents in the user query text. The preset difference is a pre-set threshold used to measure the gap between the first intent probability and the second intent probability. When this difference is large enough, it indicates the existence of a clear dominant intent. The confidence threshold is another preset threshold used to assess the absolute confidence level of the highest intent probability. When the first intent probability is lower than this threshold, even if its probability difference with other intents is large, it may mean that the overall identification of the user intent is not certain enough.
[0031] This application's solution constructs a quantitative judgment mechanism by introducing a first intent probability, a second intent probability, a preset difference, and a confidence threshold. Specifically, firstly, by comparing the difference between the first intent probability and the second intent probability, the existence of a significant dominant intent can be assessed. If this difference is greater than the preset difference, it indicates that one intent is significantly superior to the others. Secondly, by combining whether the first intent probability is greater than the confidence threshold, the reliability of the dominant intent can be further confirmed. Only when the probability of the dominant intent is sufficiently high and its difference from other intents is sufficiently large is it considered a single intent-dominated state. Conversely, if the probability difference between the dominant intent and secondary intents is small, or even if the difference is large but the absolute probability of the dominant intent is not high, it indicates that the user intent may contain multiple aspects, or that the semantic analysis module is not confident enough in recognizing a single intent; in this case, it is judged as a state of multiple intents coexisting. This dual judgment mechanism effectively avoids misjudgment of user intent in ambiguous or low-confidence situations.
[0032] S3. When it is determined that multiple intentions coexist, select several candidate intentions that meet the preset conditions from the intention probability distribution.
[0033] When multiple intents coexist, to avoid information loss, the system will not simply select the intent with the highest probability, but will filter out multiple intents with relatively high probabilities as candidate intents. For example, a probability threshold can be set to filter out all intents with probabilities greater than that threshold. Alternatively, a ranking threshold can be set to filter out the top N intents by probability. For instance, if the intent probability distribution is "Intent A: 0.4, Intent B: 0.35, Intent C: 0.2, Intent D: 0.05", and the preset condition is to filter out intents with probabilities greater than 0.3, then Intent A and Intent B will be selected as candidate intents.
[0034] In some implementations, intents with a probability ranking greater than a ranking threshold can be selected from the intent probability distribution; these intents with a probability ranking greater than the ranking threshold are identified as several candidate intents.
[0035] Specifically, the "intent probability distribution" refers to the set of multiple possible intents and their corresponding probabilities output by the semantic analysis module based on the query text. For example, for the query "Apple phone case," the intent probability distribution might include "phone case (probability 0.6)," "Apple products (probability 0.3)," and "phone accessories (probability 0.08)," etc. The "probability ranking" refers to the order obtained by sorting the intents in the above intent probability distribution according to their probability values from highest to lowest. For example, in the "Apple phone case" example, "phone case" ranks first in probability, and "Apple products" ranks second. Furthermore, the "ranking threshold" is a preset integer value used to limit the number and relevance of the selected intents. Only intents whose probability ranking is within the "ranking threshold" are considered valid candidate intents. For example, if the ranking threshold is set to 3, only the first, second, and third ranked intents will be selected. Therefore, "several candidate intents" refers to the set of intents determined to have high relevance and importance after the above screening process; these intents will be used for the subsequent transformation of structured intermediate results.
[0036] In some preferred embodiments, assuming the user input query text is "Brand A men's running shoes", the intent probability distribution output by the semantic analysis module after processing is as follows: 1. Intent: Running shoes (Probability: 0.75, Rank: 1) 2. Intent: Brand A (Probability: 0.60, Rank: 2) 3. Intention: Men's style (Probability: 0.55, Rank: 3) 4. Intention: Sneakers (Probability: 0.10, Rank: 4) 5. Intent: Casual shoes (Probability: 0.03, Rank: 5) Assume the system's preset ranking threshold is 3. According to the scheme of this application, the system will filter out intentions with a probability ranking greater than the ranking threshold (i.e., a ranking less than or equal to 3) from the aforementioned intention probability distribution. Therefore, the filtered intentions will include: 1. Running shoes (ranked #1) 2. Brand A (ranked 2nd) 3. Men's style (ranked 3rd) The selected intents "running shoes," "brand A," and "men's" will be identified as candidate intents for subsequent conversion into structured intermediate results. In this way, the system can effectively focus on the core elements of the user's query, avoiding the inclusion of less relevant intents such as "sports shoes" or "casual shoes" in subsequent processing, thereby improving the efficiency and accuracy of search optimization.
[0037] S4. Convert several candidate intentions into structured intermediate results.
[0038] The structured intermediate result includes the idea graph, supplementary intents, corresponding intent identifiers, corresponding priorities, and intent relationship tags.
[0039] The structured intermediate results aim to provide a unified and rich data format to facilitate processing by subsequent modules. For example, for the filtered candidate intents "Intent A" and "Intent B", the system can designate the intent with the highest probability (e.g., Intent A) as the primary intent and the other intents (e.g., Intent B) as supplementary intents, based on factors such as probability and business importance. Simultaneously, each intent is assigned a unique intent identifier and prioritized according to its importance or probability. Intent relationship tags are used to describe the relationship between the primary intent and supplementary intents, such as whether it is a parallel, inclusive, or modifying relationship. For example, for the query "red dress", the primary intent could be "dress", the supplementary intent could be "red", and the intent relationship tag could be "modification".
[0040] S5. Convert the structured intermediate results into main recall conditions and supplementary recall conditions that can be received by the downstream recall module.
[0041] Among them, the main recall condition corresponds to the main intent, and the supplementary recall condition corresponds to the supplementary intent.
[0042] This step is crucial for achieving lossless delivery of multiple intents. Since downstream recall modules may only accept query conditions in a specific format (e.g., a single category ID), the structured intermediate results need to be adapted and converted. For example, the main intent "dress" can be converted to the category ID "12345" that the downstream recall module can recognize, serving as the primary recall condition. The supplementary intent "red" can be converted to the attribute filter condition "color=red," serving as a supplementary recall condition. This conversion can be customized according to the specific interface specifications of the downstream recall module.
[0043] S6. Merge the candidate product set returned by the main recall condition and the supplementary recall condition, and add intent source tag and priority information to the products in the candidate product set.
[0044] The downstream recall module returns separate sets of candidate products based on the primary and supplementary recall criteria. For example, the primary recall criterion might return all "dress" products, while the supplementary recall criterion might return all "red" products. The system merges these sets and adds intent source tags (e.g., whether the product was recalled due to the main intent image or the supplementary intent image) and priority information (e.g., products recalled due to the main intent image have higher priority). This additional information helps the subsequent sorting and display modules to perform more refined processing, thereby improving the overall quality of the search results.
[0045] Compared to existing technologies that simply force the probability distribution of multiple intents to converge into a single category point estimate, the core innovation of this application lies in introducing a dynamic conversion mechanism of "structured intermediate results" and "primary recall conditions and supplementary recall conditions." Traditional methods, when faced with queries containing multiple intents, often adopt a "maximum value" strategy to accommodate the single interface limitations of downstream recall modules, resulting in the systematic discarding of second-highest intent information with similar probabilities. For example, when a user searches for "thin and light laptops," traditional methods may only identify the main intent "laptop" while ignoring the important attribute "thin and light," thus recalling a large number of products that do not meet the user's "thin and light" requirement.
[0046] This application transforms selected candidate intents into a structured intermediate result containing a main intent graph, supplementary intents, priority, and intent relationship markers, thus fully preserving the multiple intent information in a user query. For example, for a query about "thin and light laptops," this application can identify "laptops" as the main intent graph and "thin and light" as the supplementary intent, encapsulating this information in a structured intermediate result. Subsequently, this structured information is intelligently converted into primary recall conditions (such as "category = laptops") and supplementary recall conditions (such as "attribute = thin and light") that can be received by the downstream recall module. This approach allows the downstream recall module to process multiple intents simultaneously, thereby recalling products that are both "laptops" and have the "thin and light" attribute. Finally, by merging the candidate product sets returned by different recall conditions and adding intent source and priority information, this application can provide more comprehensive and accurate search results. This method not only solves the problem of information truncation in traditional technologies but also effectively improves the matching degree between search results and users' actual needs without significantly modifying the existing recall module interface. Especially in high-concurrency scenarios, it can better balance system stability and search performance.
[0047] like Figure 2 As shown, specifically, the semantic analysis module processes the query text to obtain the intent probability distribution output by the semantic analysis module based on the query text, including: S101. Use regular expressions to clean the query text.
[0048] Text cleaning using regular expressions involves identifying and removing noise from the query text using predefined pattern matching rules. This noise includes elements such as special symbols, irrelevant characters, repeated words, and formatting errors. Specifically, a series of regular expressions can be defined to filter out non-text characters, HTML tags, URL links, emojis, and redundant spaces in user input. The goal is to standardize the user-inputted query text, ensuring the accuracy and efficiency of subsequent processing.
[0049] S102. Perform word segmentation on the cleaned query text to obtain a word sequence.
[0050] Specifically, this step involves breaking down the cleaned text into the smallest units with independent semantic meaning, namely, lexical units. For example, for Chinese queries, word segmentation breaks down a continuous sequence of Chinese characters into meaningful words. In practice, various word segmentation algorithms, such as dictionary matching, statistical models, or deep learning models, can be used. The goal is to transform unstructured text into a structured sequence of lexical units, providing standardized input for the semantic analysis module.
[0051] S103. Input the word sequence into the semantic analysis module to obtain the intent probability distribution.
[0052] Specifically, this step involves feeding the pre-processed word sequence as input into a pre-trained semantic analysis model. This semantic analysis module, based on its internal language understanding capabilities, performs deep semantic analysis on the input word sequence and outputs a distribution containing multiple potential user intentions and their corresponding probabilities. For example, when a user queries "Apple phone," the semantic analysis module might output a probability of 0.7 for "purchase intention," 0.2 for "comparison intention," and 0.1 for "query parameter intention." The purpose is to quantify the likelihood of various intentions contained in the user's query, providing a data foundation for subsequent intention judgment and recall strategies.
[0053] This application's solution systematically preprocesses the user-input query text. First, regular expressions are used for text cleaning, effectively removing noise and irrelevant information, ensuring the purity of the input data. Then, the cleaned text is segmented into semantically meaningful word sequences, transforming the unstructured text into structured input that the semantic analysis module can understand. Finally, these high-quality word sequences are input into the semantic analysis module, enabling it to more accurately and efficiently identify user intent and output a precise intent probability distribution. This series of steps works together to lay a solid foundation for subsequent intent judgment and recall strategies, significantly improving the robustness and accuracy of the entire search optimization method.
[0054] In some of the embodiments described above in this application, a method is proposed to convert the structured intermediate acceptance result into a main recall condition and a supplementary recall condition that can be received by the downstream recall module. However, if the system load of the downstream recall module and the actual value of the supplementary intention are not fully considered during its implementation, it may lead to excessive consumption of system resources, extended response time, or even affect the overall stability and efficiency of the system.
[0055] In response, this application further proposes a method for converting structured intermediate acceptance results into primary recall conditions and supplementary recall conditions that can be received by downstream recall modules, which includes: S201. Determine the load of the downstream recall module.
[0056] This load can be understood as the pressure exerted on the downstream recall module to process requests, and may include metrics such as CPU utilization, memory usage, concurrent requests, or response time. By monitoring these metrics in real time, the current operating status of the downstream recall module can be obtained.
[0057] S202. When the first preset condition or the second preset condition is met, the structured intermediate acceptance result is converted into the main recall condition and the supplementary recall condition that can be received by the downstream recall module.
[0058] The first preset condition refers to the downstream recall module's load being within an acceptable range, i.e., its load is less than or equal to a preset load threshold. When the system load is low, the system has sufficient resources to handle additional recall requests, at which point supplementary recall conditions can be safely generated and issued to broaden the coverage of search results.
[0059] Furthermore, the second preset condition means that even if the load on the downstream recall module has exceeded the load threshold, if the comprehensive value score of the supplementary intent is still greater than the preset score threshold, supplementary recall conditions are still allowed to be generated and issued. The comprehensive value score of the supplementary intent aims to quantify the potential value of the supplementary intent to the user or business, and can take into account factors such as its probability weight, semantic relevance to the idea graph, and historical interaction performance data. When the supplementary intent has high value, even if the system load is high, the system will still choose to process the supplementary intent in order to improve user experience or business benefits.
[0060] This application's solution achieves intelligent control over the recall condition generation process by introducing judgments on the load of downstream recall modules and evaluations of the comprehensive value score of supplementary intents. When the system load is low, the system can fully utilize resources to generate primary and supplementary recall conditions, thereby expanding the recall scope and providing users with a richer and more comprehensive selection of products. When the system load is high, the system does not categorically reject the generation of supplementary recall conditions, but rather further evaluates the potential value of supplementary intents. If a supplementary intent has a high comprehensive value, indicating a significant contribution to user experience or business growth, the system will prioritize its processing to avoid missing important business opportunities due to system load. Conversely, if the system load is high and the value of supplementary intents is low, unnecessary resource consumption can be avoided, ensuring the stable operation of core businesses.
[0061] In some preferred embodiments, assuming the user inputs the query text "red sneakers," semantic analysis identifies the main idea as "sneakers" and the supplementary intent as "red." Specifically, the system first determines the current load on the downstream recall module.
[0062] Scenario 1: If the CPU utilization of the downstream recall module is 30% and the response time is 50ms, both lower than the preset load thresholds (e.g., CPU utilization threshold 70%, response time threshold 100ms), then the first preset condition is met. In this case, the system will convert the structured intermediate receiving result into a main recall condition including "sports shoes" and a supplementary recall condition including "red," and send it to the downstream recall module to recall red sports shoes and other sports shoe products.
[0063] Scenario 2: If the downstream recall module's CPU utilization is 80% and the response time is 120ms, both exceeding the preset load threshold, but the system calculates a comprehensive value score of 0.9 for the supplementary intent "red" (e.g., based on historical data analysis, users have a very high preference for the "red" attribute and excellent conversion rate), while the preset score threshold is 0.7, the second preset condition is met because the comprehensive value score of the supplementary intent is greater than the score threshold. In this case, the system will still convert the structured intermediate result into a main recall condition including "sports shoes" and a supplementary recall condition including "red," and send them to the downstream recall module to ensure that high-value supplementary intents are processed, thereby improving user experience and potential business revenue.
[0064] In some embodiments of this application, when the load on the downstream recall module is high but the overall value score of the supplementary intent meets certain conditions, the main recall condition and supplementary recall condition will still be generated. However, in practical applications, if the load on the downstream recall module is already high and the overall value score of the supplementary intent is insufficient to bring significant business value or user experience improvement, continuing to generate and process supplementary recall conditions may further increase the system burden, leading to prolonged response time or resource exhaustion, thereby affecting the stability and overall performance of the system.
[0065] In response, this application further proposes an optimization scheme, the method of which also includes: S301. When the load of the downstream recall module is greater than the load threshold, and the comprehensive value score of the supplementary intent is less than or equal to the score threshold, the structured intermediate acceptance result is converted into the main recall condition, and the conversion of the structured intermediate acceptance result into the supplementary recall condition is stopped.
[0066] Specifically, the load of the downstream recall module refers to the pressure or resource consumption of the module currently processing requests, such as CPU utilization, memory usage, concurrent requests, or response time. The load threshold is a pre-set critical value used to determine if the system is under high load. When the actual load exceeds this threshold, the system is considered to be under high load. The comprehensive value score of supplementary intents is a quantitative indicator measuring the potential business value and user acceptance of supplementary intents. Its calculation method can comprehensively consider factors such as probability weights, semantic relevance, and historical interaction performance data. The score threshold is a critical value used to determine whether a supplementary intent has sufficient value. When the comprehensive value score of a supplementary intent is lower than or equal to this score threshold, it indicates that the value of the supplementary intent is relatively low and insufficient to be prioritized when the system is under high load. In this case, the system will only generate the primary recall condition corresponding to the main intent graph, and will no longer generate supplementary recall conditions corresponding to the supplementary intent, thereby avoiding the processing of low-value supplementary intents and reducing the burden on the downstream recall module.
[0067] This application's solution achieves intelligent decision-making under resource constraints by introducing a joint judgment of the load of the downstream recall module and the comprehensive value score of supplementary intentions. When the system detects that the load of the downstream recall module has exceeded a preset load threshold, indicating that system resources are strained, it further evaluates the comprehensive value score of supplementary intentions. If the comprehensive value score of the supplementary intention fails to reach the preset score threshold, i.e., its potential business value or user acceptance is low, the system will proactively stop converting the above-mentioned structured intermediate acceptance results into supplementary recall conditions. This mechanism ensures that under high system load, only those supplementary intentions with high value will be further processed, while low-value supplementary intentions are temporarily shelved, thereby avoiding unnecessary resource consumption.
[0068] In some preferred embodiments, assuming a user searches for "Apple phone case," the semantic analysis module identifies the main intent as "Apple phone case," and simultaneously identifies the supplementary intents "iPhone 15 phone case" and "phone case brand." After converting these intents into structured intermediate results, the system prepares to convert them into recall conditions. At this point, if the CPU utilization of the downstream recall module reaches 90% (greater than the load threshold of 80%), and the overall value score of the supplementary intent "phone case brand" (e.g., 0.3) is lower than a preset score threshold (e.g., 0.5), the system will only convert "Apple phone case" and "iPhone 15 phone case" into the corresponding main and supplementary recall conditions, while stopping the conversion of "phone case brand" into a supplementary recall condition. In this way, under high load, the system prioritizes processing intents that are more closely related to the user's core needs and have higher value, avoiding further burdening the system by processing low-value supplementary intents, thereby ensuring the response speed and stability of the search service.
[0069] Specifically, the comprehensive value score of the above-mentioned supplementary intention can be calculated in the following way.
[0070] Specifically, the overall value score for calculating supplementary intent includes: S401, Obtain the probability weight of supplementary intents, the degree of semantic association with the idea graph, and historical interaction performance data.
[0071] The probability weight can be understood as the relative importance of the supplementary intent within the overall intent probability distribution, reflecting the likelihood that the supplementary intent will be matched by the user's true intent. For example, it can be directly obtained from the probability value corresponding to the supplementary intent in the intent probability distribution output by the semantic analysis module. Semantic relevance refers to the semantic correlation or similarity between the supplementary intent and the main idea. Its purpose is to ensure that the supplementary intent aligns with the user's core needs, avoiding the introduction of irrelevant recall results. In practical applications, this can be obtained by calculating the cosine similarity between the semantic vectors of the main idea and the supplementary intent, or by using a pre-trained language model to evaluate the semantic distance between them. Historical interaction performance data refers to the user's past interaction data with products or content associated with the supplementary intent, such as click-through rate, conversion rate, dwell time, and purchase frequency. Its purpose is to quantify the user's actual acceptance and interest in the supplementary intent.
[0072] S402. Calculate the probability importance score based on the probability weight of the supplementary intention.
[0073] This score directly reflects the explicitness of supplementary intent in a user's query. For example, it can be obtained by directly normalizing the probability weights or by mapping them through a specific function.
[0074] S403. Calculate the semantic fit score based on the semantic relevance between the supplementary intent and the main idea.
[0075] This score measures the intrinsic connection between supplementary intent and the idea graph, ensuring the overall relevance of the recall results. For example, the degree of semantic relevance can be used directly as the score, or it can be transformed through a non-linear function.
[0076] S404. Calculate the user acceptance score based on the historical interaction data of the supplementary intent.
[0077] This score reflects users' implicit preferences and actual feedback regarding the supplementary intent. For example, it can be obtained by combining metrics such as click-through rate and conversion rate, and predicted through weighted averaging or machine learning models.
[0078] S405. The probability importance score, semantic fit score, and user acceptance score are weighted and fused to obtain the comprehensive value score of the supplementary intent.
[0079] The purpose of weighted fusion is to comprehensively consider information from different dimensions to more fully and accurately assess the value of supplementary intentions. For example, a linear weighted sum can be used, i.e.: Overall Value Score = w1 * Probability Importance Score + w2 * Semantic Fit Score + w3 * User Acceptance Score, where w1, w2, and w3 are preset weight coefficients, and w1 + w2 + w3 = 1. These weight coefficients can be optimized and adjusted according to actual business needs, historical data analysis, or through machine learning methods.
[0080] This application's solution quantifies the potential value of supplementary intents from multiple dimensions by acquiring their probability weights, semantic relevance to the main idea graph, and historical interaction data, and then calculating probability importance scores, semantic fit scores, and user acceptance scores. Specifically, the probability importance score reflects the explicit probability of the supplementary intent in the current query; the semantic fit score ensures the intrinsic relevance between the supplementary intent and the main idea graph; and the user acceptance score, based on historical data, reflects the user's actual preference for that intent. By weighting and fusing these three scores, a comprehensive and objective integrated value score can be generated, which more accurately measures the actual business value and user demand matching degree of the supplementary intent.
[0081] In some embodiments of this application, when converting the structured intermediate reception results into primary and supplementary recall conditions that can be received by the downstream recall module, a comparison is made between the comprehensive value score of the downstream recall module's load and the supplementary intent and a preset score threshold. However, in practical applications, the system's operating state and business objectives are dynamically changing. If the score threshold remains fixed, it may not be possible to achieve the optimal balance between system stability and business value. For example, when the system load is high, setting the score threshold too low may lead to further system overload; while when the system load is low and the need to improve business value is urgent, setting the score threshold too high may result in missing opportunities to improve user experience and business revenue.
[0082] In response, this application further proposes a user search optimization method based on semantic analysis, wherein the aforementioned load includes CPU utilization and response time, and the method further includes: S501. Obtain historical interaction performance data for each supplementary intent.
[0083] Historical interaction performance data includes click-through rate and conversion rate.
[0084] In practical applications, historical interaction performance data refers to the historical record of user interactions with products or content related to a specific supplementary intent, such as click-through rate (CTR) and conversion rate. CTR measures a user's level of interest in content related to that intent, while conversion rate reflects the efficiency with which that intent leads to actual purchases or achieves business goals. This data can be obtained through log analysis, user behavior tracking, and other methods.
[0085] S502. Calculate the business value weight based on historical interaction performance data.
[0086] Among them, the weight of business value increases with the increase of click-through rate and conversion rate.
[0087] The business value weight is a metric that measures the contribution of supplementary intents to business operations, calculated based on historical interaction performance data. Increased click-through rates and conversion rates indicate higher user appeal and commercial value for the supplementary intent, thus increasing its corresponding business value weight. This ensures that high-value supplementary intents receive greater consideration in the decision-making process.
[0088] S503. Calculate the system stability weights based on the load.
[0089] Among them, the system stability weight increases with the increase of CPU utilization and response time.
[0090] System stability weight is an indicator that measures a system's current processing capacity and risk, calculated based on load (CPU utilization and response time). Increased CPU utilization and response time indicate a heavier system load and potential stability risks, thus increasing the corresponding system stability weight. This helps prioritize system stability during resource-constrained periods.
[0091] S504. The system stability weight and business value weight are weighted and integrated to obtain a comprehensive adjustment factor.
[0092] This adjustment factor comprehensively reflects the relative importance of business value and system stability under the current system state. The fusion method can employ various approaches, such as linear weighting or nonlinear functions, to adapt to different business needs and system characteristics.
[0093] S505. Adjust the score threshold dynamically based on the comprehensive adjustment factor.
[0094] Specifically, when the comprehensive adjustment factor indicates that system stability is prioritized, the score threshold is increased; when the comprehensive adjustment factor indicates that business value is prioritized, the score threshold is decreased.
[0095] Specifically, when the overall adjustment factor prioritizes system stability (e.g., high system load, where stability weight is much higher than business value weight), the scoring threshold will be increased. This means that only supplementary intentions with extremely high overall value scores will be considered for generating supplementary recall conditions, thereby reducing system load and ensuring stability. Conversely, when the overall adjustment factor prioritizes business value (e.g., low system load, where business value weight is high), the scoring threshold will be decreased. This allows more valuable supplementary intentions to be adopted, maximizing business benefits.
[0096] This application's solution incorporates consideration of system load and historical interaction data of supplementary intentions, transforming these into system stability weights and business value weights. These weighted factors are then fused to generate a comprehensive adjustment factor, enabling dynamic adjustment of the scoring threshold. This dynamic adjustment mechanism allows the system to maximize the business value of supplementary intentions while ensuring its stable operation. Specifically, when system load is high, the system stability weight increases accordingly, and the comprehensive adjustment factor prioritizes system stability, thus raising the scoring threshold. This ensures that only supplementary intentions that significantly contribute to business value are adopted, preventing further burden on the system from generating too many supplementary recall conditions. Conversely, when system load is low and historical interaction data of supplementary intentions is good, the business value weight increases accordingly, and the comprehensive adjustment factor prioritizes business value, thus lowering the scoring threshold. This allows more supplementary intentions with potential business value to be adopted, thereby improving user experience and overall business revenue.
[0097] In some preferred embodiments, a specific example is given below. Suppose a user inputs the query text "thin and light laptop". The semantic analysis module identifies the main intent as "laptop" and identifies several supplementary intents, such as "thin and light", "high performance", "long battery life", etc., and calculates the comprehensive value score for each.
[0098] At this point, the system first obtains the load information of the downstream recall module, such as a CPU utilization rate of 85% and a response time of 500ms, indicating that the system is currently under high load. Simultaneously, the system obtains historical interaction performance data for each supplementary intent; for example, the click-through rate for the "lightweight" intent is 15%, and the conversion rate is 3%; the click-through rate for the "high-performance" intent is 10%, and the conversion rate is 2%.
[0099] Based on this data, the system calculates the business value weight. Because the "lightweight" intent has a relatively high click-through rate and conversion rate, its business value weight is calculated to be 0.7; the "high-performance" intent has a business value weight calculated to be 0.5.
[0100] Meanwhile, based on the high load conditions, the system calculates a system stability weight. Since both CPU utilization and response time are high, the system stability weight is calculated to be 0.8.
[0101] The system then weights and merges the business value weight and system stability weight to obtain a comprehensive adjustment factor. For example, using a simple linear weighting (0.5 * business value weight + 0.5 * system stability weight), the comprehensive adjustment factor is (0.5 * 0.7 + 0.5 * 0.8) = 0.75 for the "lightweight" intention and (0.5 * 0.5 + 0.5 * 0.8) = 0.65 for the "high-performance" intention.
[0102] The system dynamically adjusts the score threshold based on a comprehensive adjustment factor. Due to the high system load, the comprehensive adjustment factor prioritizes system stability, therefore the score threshold is increased, for example, from the initial 0.6 to 0.7.
[0103] With the adjusted score threshold of 0.7, the system determines that the overall value score of the "thin and light" intent (assumed to be 0.78) is greater than 0.7, and therefore converts it into a supplemental recall condition. However, the overall value score of the "high-performance" intent (assumed to be 0.62) is less than 0.7, so it is not converted into a supplemental recall condition.
[0104] Through this dynamic adjustment, the system can maintain stability under high load while still incorporating supplementary intentions with high business value, thereby achieving a balance between system performance and business benefits.
[0105] In some of the embodiments described above in this application, a scheme is proposed to obtain a comprehensive value score for supplementary intent by weighted fusion of probability importance score, semantic fit score and user acceptance score. However, in its implementation, if the weights of the weighted fusion are fixed or universally set, it may not be able to fully reflect the user's personalized preferences and current search intent, thereby affecting the recommendation accuracy of supplementary intent.
[0106] In response, this application further proposes the following steps for weighted fusion of the probability importance score, semantic fit score, and user acceptance score to obtain a comprehensive value score for the supplementary intent: S601. Obtain the user's historical interaction data.
[0107] Historical interaction data includes users' historical purchase records, browsing preferences, and demographic information.
[0108] Specifically, acquiring users' historical interaction data refers to the system collecting and storing users' behavioral records on the platform. For example, a user's historical purchase records can reflect their preferences for specific product categories, brands, or price ranges; browsing preferences can reveal users' interests in product attributes (such as color, material, and function); and demographic information provides basic characteristics of the user group, helping to build a more comprehensive user profile. This data is the foundation for understanding users' long-term interests and behavioral patterns.
[0109] S602. Identify the user's current intent context based on the query text entered by the user.
[0110] The intent context includes the user's preference for product categories, price range focus, and brand preference.
[0111] Specifically, this step can be understood as the system dynamically determining the user's focus during the current search session by analyzing the query text entered by the user in real time. For example, when a user searches for "high-performance laptops at competitive prices," the intent context may indicate that the user prefers the "laptop" category and is interested in the "price range" (high performance at competitive prices), but may be unclear about "brand preference." This step aims to capture the user's immediate and dynamic search needs.
[0112] S603. Based on historical interaction data and intent context, construct a user intent preference profile.
[0113] Among them, the user intent preference profile quantifies the user's inclination towards different product attributes and intent types.
[0114] In practical applications, constructing a user intent preference profile based on historical interaction data and intent context refers to combining long-term user behavior patterns with short-term search intents to form a quantitative, multi-dimensional user preference model. This profile can meticulously describe a user's preferences for different product attributes (such as size, color, and material), product categories, price ranges, and brands, and quantify the degree of importance a user places on different intent types (such as purchase intent, browsing intent, and comparison intent). For example, a user may have strong brand loyalty for electronic products, while paying more attention to style and price for clothing.
[0115] S604. For each supplementary intent, determine the weights of the probability importance score, semantic fit score, and user acceptance score based on the user intent preference profile.
[0116] Furthermore, for each supplementary intent, weights are determined based on the user intent preference profile, including the probability importance score, semantic fit score, and user acceptance score. The aim is to achieve personalized and dynamic adjustment of these weights. For example, if the user intent preference profile shows that the user is highly price-sensitive, the weight of the user acceptance score (which may be related to price sensitivity) may be increased when calculating the overall value score of the supplementary intent; if the user has a strong preference for a specific brand, the weight of the semantic fit score (which may be brand-related) may be adjusted accordingly.
[0117] S605. Based on the weights of the probability importance score, semantic fit score, and user acceptance score, the probability importance score, semantic fit score, and user acceptance score are weighted and fused to obtain the comprehensive value score of the supplementary intent.
[0118] This application's solution constructs a user intent preference profile by introducing historical interaction data and intent context, thereby dynamically determining the weights of probability importance score, semantic fit score, and user acceptance score. Specifically, historical interaction data provides long-term, stable user preference information, while intent context captures the user's immediate search needs. The user intent preference profile constructed by fusing these two types of information can more comprehensively and precisely depict the user's personalized needs. Based on this, for each supplementary intent, the system can intelligently adjust the weights of various scores according to the degree of matching between the supplementary intent and the user intent preference profile. For example, for a price-sensitive user, the weight of the user acceptance score for supplementary intents related to low prices will be increased; for a user with high brand loyalty, the weight of the semantic fit score for supplementary intents related to their preferred brands will be increased. This dynamic and personalized weight adjustment mechanism allows the final weighted fusion of the supplementary intent's comprehensive value score to more accurately reflect the user's true interest and potential value for that supplementary intent, thus overcoming the recommendation inaccuracy problem that may be caused by fixed or general weights.
[0119] In some preferred embodiments, suppose user A enters "thin and light laptop" into the search box, and their historical interaction data (purchase history, browsing preferences) shows that the user frequently purchases electronic products from a specific brand and is highly price-sensitive, while demographic information indicates they are a young white-collar worker. The system then retrieves this historical interaction data. Next, based on the query text "thin and light laptop," the system identifies the user's current intent context as a preference for the "laptop" category, an interest in the "thin and light" attribute, and possibly some concern about "price." Based on this historical interaction data and intent context, the system constructs a user A's intent preference profile, which quantifies user A's high inclination towards a specific brand, strong demand for the "thin and light" attribute, and high price sensitivity.
[0120] Suppose the system identifies two candidate supplementary intentions at this point: supplementary intention... Figure 1 It refers to "a specific brand of ultrabook," which is a supplementary meaning. Figure 2 It is a "high-performance, lightweight laptop." (This is in response to a supplementary point.) Figure 1 "Specific Brand Ultrabooks": Because User A's intent preference profile shows a strong preference for a specific brand, this preference is included in the calculation of supplementary intent preferences. Figure 1 When calculating the overall value score, the weight of the semantic fit score is significantly increased. Simultaneously, if user A is price-sensitive, the weight of the user acceptance score will also be adjusted according to their price preference. Regarding supplementary information... Figure 2 "High-performance, lightweight laptops": Since user A's intention preference profile shows that they are highly price-sensitive, this is considered when calculating supplementary intention preferences. Figure 2 When calculating the overall value score, the weight of user acceptance score is increased, while the weight of brand preference may be relatively decreased. In this way, the system can assign personalized weights to different supplementary intentions based on user A's unique preferences, thus more accurately calculating the overall value score of each supplementary intention. For example, if user A has extremely high loyalty to a particular brand, even if the supplementary intention... Figure 2 More favorable price, supplementary Figure 1 A user's overall value score may also be higher because their brand fit score is given greater importance under personalized weighting. Ultimately, based on these personalized weighted overall value scores, the system will more accurately recommend supplementary intents that best match user A's current intent and long-term preferences.
[0121] like Figure 3 As shown, this embodiment of the invention also provides a user search optimization system based on semantic analysis. The system includes: The acquisition module is used to acquire the query text input by the user; The acquisition module is also used to process the query text based on the semantic analysis module to obtain the intent probability distribution output by the semantic analysis module based on the query text, and to determine whether the intent probability distribution is a single intent-dominated state or a state where multiple intents coexist. The filtering and conversion module is used to filter out several candidate intents that meet preset conditions from the intent probability distribution when it is determined that multiple intents coexist. The condition transformation module is used to convert several candidate intents into structured intermediate results; the structured intermediate results include an intent graph, supplementary intents, corresponding intent identifiers, corresponding priorities, and intent relationship tags; The solution determination module is used to convert the structured intermediate acceptance results into main recall conditions and supplementary recall conditions that can be received by the downstream recall module. The main recall conditions correspond to the main idea graph, and the supplementary recall conditions correspond to the supplementary intent. The merge add-on module is used to merge the candidate product sets returned by the main recall conditions and the supplementary recall conditions, and add intent source tags and priority information to the products in the candidate product set.
[0122] This application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be executed by a computer program instructing related hardware. This program can be stored in the computer-readable storage medium, and when executed, it can include the processes of the above method embodiments. The computer-readable storage medium can be an internal storage unit of the task execution device (including a data sending end and / or a data receiving end) of any of the foregoing embodiments, such as the hard disk or memory of the task execution device. The computer-readable storage medium can also be an external storage device of the terminal device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the terminal device. Further, the computer-readable storage medium can include both the internal storage unit of the task execution device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the task execution device. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
[0123] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0124] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0125] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be covered within the scope of protection of this application.
Claims
1. A user search optimization method based on semantic analysis, characterized in that, include: Get the query text entered by the user; The semantic analysis module processes the query text to obtain the intent probability distribution output by the semantic analysis module based on the query text, and determines whether the intent probability distribution is a single intent-dominated state or a state where multiple intents coexist. When it is determined that the state of multiple intentions coexisting is reached, several candidate intentions that meet the preset conditions are selected from the intention probability distribution. The candidate intentions are converted into structured intermediate results; The structured intermediate result includes a main idea graph, supplementary intents, corresponding intent identifiers, corresponding priorities, and intent relationship tags. The structured intermediate receiving result is converted into a main recall condition and a supplementary recall condition that can be received by the downstream recall module. The main recall condition corresponds to the main idea graph. The supplementary recall condition corresponds to the supplementary intention. The candidate product sets returned by the main recall condition and the supplementary recall condition are merged, and intent source tags and priority information are added to the products in the candidate product set.
2. The user search optimization method based on semantic analysis according to claim 1, characterized in that, The step of processing the query text based on the semantic analysis module to obtain the intent probability distribution output by the semantic analysis module based on the query text includes: The query text is cleaned using regular expressions; The cleaned query text is segmented to obtain a word sequence; The word sequence is input into the semantic analysis module to obtain the intent probability distribution.
3. The user search optimization method based on semantic analysis according to claim 1, characterized in that, The determination of whether the intent probability distribution is a state dominated by a single intent or a state where multiple intents coexist includes: Determine the first intention probability and the second intention probability in the intention probability distribution; the first intention probability is the intention probability with the highest probability; the second intention probability is the intention probability with the second highest probability. If the difference between the first intent probability and the second intent probability is greater than a preset difference, and the first intent probability is greater than a confidence threshold, it is determined that the intent probability distribution is a single intent-dominated state. If the difference between the first intent probability and the second intent probability is less than or equal to the preset difference, or if the first intent probability is less than or equal to the confidence threshold, it is determined that the intent probability distribution is a state of multiple intents coexisting.
4. The user search optimization method based on semantic analysis according to claim 1, characterized in that, When the state of multiple intentions coexisting is determined, several candidate intentions that meet preset conditions are selected from the intention probability distribution, including: Filter out intentions whose probability ranking is greater than a ranking threshold from the intention probability distribution; Intents that exceed the ranking threshold are identified as the candidate intents.
5. The user search optimization method based on semantic analysis according to claim 1, characterized in that, The process of converting the structured intermediate reception result into primary recall conditions and supplementary recall conditions that can be received by the downstream recall module includes: Determine the load of the downstream recall module; When the first or second preset condition is met, the structured intermediate reception result is converted into a main recall condition and a supplementary recall condition that can be received by the downstream recall module; the first preset condition is that the load of the downstream recall module is less than or equal to the load threshold; the second preset condition is that the load is greater than the load threshold and the comprehensive value score of the supplementary intent is greater than the score threshold.
6. The user search optimization method based on semantic analysis according to claim 5, characterized in that, The method further includes: When the load of the downstream recall module is greater than the load threshold, and the comprehensive value score of the supplementary intent is less than or equal to the score threshold, the structured intermediate acceptance result is converted into the main recall condition, and the conversion of the structured intermediate acceptance result into the supplementary recall condition is stopped.
7. The user search optimization method based on semantic analysis according to claim 5, characterized in that, Calculating the overall value score of the supplementary intent includes: Obtain the probability weight of the supplementary intent, the degree of semantic association with the idea graph, and historical interaction performance data; Calculate the probability importance score based on the probability weights of the supplementary intentions; Calculate the semantic fit score based on the degree of semantic relevance between the supplementary intent and the idea graph; Calculate the user acceptance score based on the historical interaction data of the supplementary intent; The probability importance score, the semantic fit score, and the user acceptance score are weighted and fused to obtain the comprehensive value score of the supplementary intent.
8. The user search optimization method based on semantic analysis according to claim 5, characterized in that, The load includes CPU utilization and response time, and the method further includes: Obtain historical interaction performance data for each of the aforementioned supplementary intentions, including click-through rate and conversion rate; Based on the historical interaction performance data, a business value weight is calculated, which increases as the click-through rate and conversion rate increase. Based on the load, a system stability weight is calculated, which increases as the CPU utilization and response time increase. The system stability weight and the business value weight are weighted and fused together to obtain a comprehensive adjustment factor; The score threshold is dynamically adjusted based on the comprehensive adjustment factor; wherein, when the comprehensive adjustment factor indicates that system stability is prioritized, the score threshold is increased, and when the comprehensive adjustment factor indicates that business value is prioritized, the score threshold is decreased.
9. A user search optimization method based on semantic analysis according to claim 7, characterized in that, The weighted fusion of the probability importance score, the semantic fit score, and the user acceptance score to obtain the comprehensive value score of the supplementary intent includes: Acquire users’ historical interaction data, which includes users’ historical purchase records, browsing preferences and demographic information; Based on the query text entered by the user, the intent context in which the user is currently located is identified. The intent context includes the user's preference for product categories, attention to price ranges, and brand preferences. Based on the historical interaction data and the intent context, a user intent preference profile is constructed, which quantifies the user's inclination towards different product attributes and intent types. For each supplementary intent, the weights of the probability importance score, the semantic fit score, and the user acceptance score are determined based on the user intent preference profile. Based on the weights of the probability importance score, the semantic fit score, and the user acceptance score, the probability importance score, the semantic fit score, and the user acceptance score are weighted and fused to obtain the comprehensive value score of the supplementary intent.
10. A user search optimization system based on semantic analysis, characterized in that, The system includes: The acquisition module is used to acquire the query text input by the user; The acquisition module is further configured to process the query text based on the semantic analysis module to obtain the intent probability distribution output by the semantic analysis module based on the query text, and to determine whether the intent probability distribution is a single intent-dominated state or a multi-intent coexistence state. The filtering and conversion module is used to filter out a number of candidate intentions that meet preset conditions from the intention probability distribution when it is determined that the multiple intentions coexist. The condition transformation module is used to convert the candidate intents into a structured intermediate result; the structured intermediate result includes an intent graph, supplementary intents, corresponding intent identifiers, corresponding priorities, and intent relationship tags; The scheme determination module is used to convert the structured intermediate acceptance result into a main recall condition and a supplementary recall condition that can be received by the downstream recall module. The main recall condition corresponds to the main idea graph, and the supplementary recall condition corresponds to the supplementary intention. The merged add-on module is used to merge the candidate product set returned by the main recall condition and the supplementary recall condition, and to add intent source tags and priority information to the products in the candidate product set.
