A commodity search link-based parameter comparison method and a related device

By comparing the deserialization results of input and output parameters of the search links for new and old functions, the problem of difficulty in troubleshooting caused by the non-plaintext input and output parameters of the PB protocol was solved, and more efficient troubleshooting of new function issues was achieved.

CN119512903BActive Publication Date: 2025-11-18GUANGZHOU PINWEI SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411736095.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-11-18
Estimated Expiration
2044-11-29

AI Technical Summary

Technical Problem

In existing technologies, the input and output parameters of the PB protocol are not plaintext, making it difficult to troubleshoot problems in the search chain.

Method used

By responding to the link comparison request of the target product based on the new function search link, calling the ID of the old function search link to be compared with the new function search link, determining the input and output parameters of each stage in the new and old function search links, and deserializing them from the data sequence of the Protocol Buffers protocol, comparing the deserialized results, and obtaining the difference results of the new and old function parameters.

Benefits of technology

It makes it easier and more convenient to troubleshoot issues in the new search link features, improving the efficiency of problem troubleshooting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512903B_ABST
    Figure CN119512903B_ABST
Patent Text Reader

Abstract

The application discloses a commodity parameter comparison method based on a search link and a related device thereof. The method comprises the following steps: in response to a link comparison request of a commodity based on a new function search link, calling an id of an old function search link, determining the in-out parameters of each stage in the new and old function search links according to the ids of the new and old function search links, performing deserialization processing on the in-out parameters of each stage from a data sequence of a PB protocol to obtain in-out parameter deserialization results, comparing the in-out parameter deserialization results of each stage of the new and old function search links, and obtaining a parameter difference result of the commodity for the new and old functions in the stage. It can be seen that the in-out parameters of each stage in the search link can be deserialized from the data sequence of the PB protocol and converted into more intuitive results, so that it is more convenient and easier to troubleshoot or compare the problems existing in the new function of the search link.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of e-commerce, more particularly, to a commodity parameter comparison method based on a search link and a related device thereof. BACKGROUND

[0002] With the continuous development of e-commerce technology, e-commerce platforms strive to recommend commodity information that meets user needs to users to provide a better online shopping experience. When users shop online, they search for the commodity they want to buy through search terms, and the e-commerce system inputs the search terms provided by the user into a search link. The search link includes multiple stages, such as intent recognition, commodity recall, relevance analysis, commodity filtering, rough sorting, fine sorting, and rearrangement, each stage having an out-parameter (out-parameter and in-parameter). The current in-out parameter is a PB (Protocol Buffers) protocol, which is a high-efficiency serialization format, has the advantages of cross-platform compatibility, extensibility, and simple code generation, and is suitable for application scenarios with high performance requirements.

[0003] However, the in-out parameter of the PB protocol is binary and non-plain text, and is passed in a large amount in the search link, which makes it difficult to troubleshoot problems after a new function is released in the search link.

[0004] Therefore, how to compare the parameters of the commodity based on the search link is a problem that needs attention. SUMMARY

[0005] In view of the above problems, the present application provides a commodity parameter comparison method based on a search link and a related device thereof to efficiently troubleshoot parameter differences in new and old function search links.

[0006] In order to achieve the above purpose, the specific scheme is as follows:

[0007] A commodity parameter comparison method based on a search link, comprising:

[0008] In response to a link comparison request of a target commodity based on a new function search link, calling an id of an old function search link for comparison with the new function search link;

[0009] According to the id of the new function search link, determining the in-out parameter of each stage of the target commodity in the new function search link;

[0010] According to the id of the old function search link, determining the in-out parameter of each stage of the target commodity in the old function search link;

[0011] For the input and output parameters of each stage in the new function search link, the input and output parameters of the stage are deserialized from the data sequence of the ProtocolBuffers protocol to obtain a deserialization result of the input and output parameters of the stage;

[0012] For the input and output parameters of each stage in the old function search link, the input and output parameters of the stage are deserialized from the data sequence of the ProtocolBuffers protocol to obtain a deserialization result of the input and output parameters of the stage;

[0013] The deserialization results of the input and output parameters of each stage of the new function search link are compared with the deserialization results of the input and output parameters of the stage of the old function search link to obtain a new-old function parameter difference result of the stage.

[0014] Optionally, the new function search link includes the same stages as the old function search link, and the new function search link includes an intent recognition stage, a recall detail stage, a filter detail stage, a coarse ranking algorithm stage, a fine ranking stage, and a rearrangement strategy stage.

[0015] Optionally, the method further includes:

[0016] Determine the input and output parameters of the target module of the target commodity in the new function search link and the input and output parameters of the target module in the old function search link, the target module including a plurality of stages having an upstream and downstream relationship;

[0017] For each input and output parameter of the target module in the new function search link, the input and output parameter is deserialized from the data sequence of the ProtocolBuffers protocol to obtain a deserialization result of the input and output parameter;

[0018] For each input and output parameter of the target module in the old function search link, the input and output parameter is deserialized from the data sequence of the ProtocolBuffers protocol to obtain a deserialization result of the input and output parameter;

[0019] The deserialization results of all input and output parameters of the target module of the new function search link are compared with the deserialization results of all input and output parameters of the target module of the old function search link to obtain a new-old function parameter difference result of the target module.

[0020] Optionally, the method further includes:

[0021] The deserialization results of the input and output parameters of each stage in the old function search link and the deserialization results of the input and output parameters of the stage in the new function search link are stored in Redis.

[0022] A commodity based on search link parameter comparison device, comprising:

[0023] id calling unit, for responding to the link comparison request of the target commodity based on the new function search link, calling the id of the old function search link compared with the new function search link;

[0024] The first input and output parameter determination unit is configured to determine the input and output parameters of each stage of the target commodity in the new function search link according to the id of the new function search link.

[0025] The second input and output parameter determination unit is configured to determine the input and output parameters of each stage of the target commodity in the old function search link according to the id of the old function search link.

[0026] The first deserialization processing unit is configured to deserialize the input and output parameters of each stage of the new function search link from the data sequence of the Protocol Buffers protocol to obtain the deserialization result of the input and output parameters of the stage.

[0027] The second deserialization processing unit is configured to deserialize the input and output parameters of each stage of the old function search link from the data sequence of the Protocol Buffers protocol to obtain the deserialization result of the input and output parameters of the stage.

[0028] The deserialization result comparison unit is configured to compare the deserialization result of the input and output parameters of each stage of the new function search link with the deserialization result of the input and output parameters of the stage of the old function search link to obtain the difference result of the new and old function parameters of the stage.

[0029] Optionally, the new function search link includes the same stages as the old function search link, and the new function search link includes an intent recognition stage, a recall detail stage, a filter detail stage, a coarse ranking algorithm stage, a fine ranking stage and a rearrangement strategy stage.

[0030] Optionally, the device further comprises:

[0031] The module input and output parameter determination unit is configured to determine the input and output parameters of the target module in the new function search link and the input and output parameters of the target module in the old function search link, wherein the target module includes multiple stages with upstream and downstream relationships.

[0032] The third deserialization processing unit is configured to deserialize each input and output parameter of the target module in the new function search link from the data sequence of the Protocol Buffers protocol to obtain the deserialization result of the input and output parameter.

[0033] The fourth deserialization processing unit is used to deserialize each input and output parameter of the target module in the old function search link from the data sequence of the Protocol Buffers protocol to obtain the deserialization result of the input and output parameters.

[0034] The module parameter comparison unit is used to compare the deserialization results of all input and output parameters of the target module of the new function search link with the deserialization results of all input and output parameters of the target module of the old function search link to obtain the difference results of the new and old function parameters of the target module.

[0035] Optionally, the device may also include:

[0036] The Redis storage unit is used to store the deserialization results of the input and output parameters of each stage in the old function search chain, as well as the deserialization results of the input and output parameters of the same stage in the new function search chain.

[0037] A parameter comparison device for a product based on a search link, including a memory and a processor;

[0038] The memory is used to store programs;

[0039] The processor is used to execute the program to implement the various steps of the product-based search link parameter comparison method as described above.

[0040] A storage medium storing a computer program, which, when executed by a processor, implements the steps of the product-based search link parameter comparison method as described above.

[0041] By the technical scheme, the application responds to the link comparison request of the target commodity based on the new function search link, calls the id of the old function search link compared with the new function search link, determines the input and output parameters of each stage of the target commodity in the new function search link according to the id of the new function search link, determines the input and output parameters of each stage of the target commodity in the old function search link according to the id of the old function search link, deserializes the input and output parameters of each stage of the new function search link from the data sequence of the Protocol Buffers protocol to obtain the deserialization result of the input and output parameters of the stage, deserializes the input and output parameters of each stage of the old function search link from the data sequence of the Protocol Buffers protocol to obtain the deserialization result of the input and output parameters of the stage, compares the deserialization result of the input and output parameters of each stage of the new function search link with the deserialization result of the input and output parameters of the stage of the old function search link, and obtains the difference result of the new and old function parameters of the stage. As can be seen, the input and output parameters of each stage in the search link can be deserialized from the data sequence of the Protocol Buffers protocol, and converted into more intuitive input and output parameter deserialization results, so that it is more convenient and easier to troubleshoot or compare the problems existing in the new function of the search link. BRIEF DESCRIPTION OF DRAWINGS

[0042] Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The detailed description is made with reference to the accompanying drawings.

[0043] Figure 1 A flowchart of a process for realizing parameter comparison of a commodity based on a search link is provided for an embodiment of the application.

[0044] Figure 2 A flowchart of a process for realizing parameter comparison of a target module of a commodity based on a search link is provided for an embodiment of the application.

[0045] Figure 3 A device structure diagram for realizing parameter comparison of a commodity based on a search link is provided for an embodiment of the application.

[0046] Figure 4 A device structure diagram for realizing parameter comparison of a commodity based on a search link is provided for an embodiment of the application. DETAILED DESCRIPTION

[0047] With reference to the drawings, the technical solutions in the embodiments of the present application will be clearly and completely described below. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts are within the scope of the present application.

[0048] The scheme of the present application can be implemented based on a terminal with data processing capability, which can be a computer, a server, a cloud, etc.

[0049] Next, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings. Figure 1 The parameter comparison method for the search link of the commodity of the present application can include the following steps:

[0050] Step S110, in response to a link comparison request of a target commodity based on a new function search link, calling an id of an old function search link for comparison with the new function search link.

[0051] Specifically, the id of each search link is unique, and the new function search link also has its search link id, so the id of the new function search link is different from the id of the old function search link.

[0052] Step S120, determining the input and output parameters of the target commodity at each stage in the new function search link according to the id of the new function search link.

[0053] Specifically, the new function search link can include an intent recognition stage, a recall detail stage, a filter detail stage, a coarse ranking algorithm stage, a fine ranking stage and a rearrangement strategy stage in the upstream and downstream order.

[0054] Step S130, determining the input and output parameters of the target commodity at each stage in the old function search link according to the id of the old function search link.

[0055] Specifically, the stages contained in the old function search link are the same as the stages contained in the new function search link, and the upstream and downstream order of each stage of the old function search link is also the same as the upstream and downstream order of each stage contained in the new function search link.

[0056] Step S140, for the input and output parameters of each stage in the new function search link, performing deserialization processing on the input and output parameters of the stage from the data sequence of the PB protocol to obtain a deserialization result of the input and output parameters of the stage.

[0057] The PB protocol is the Protocol Buffers protocol.

[0058] It can be understood that the Protocol Buffers protocol uses a binary format for data serialization, which has higher efficiency and smaller data volume compared with text-based formats such as XML and JSON. The data structure generated by the PB protocol can be converted between different programming languages and different platforms, making data exchange and communication more flexible and convenient. The PB protocol supports adding new fields to existing message types without breaking compatibility with old version data, making it easier to evolve and upgrade data structures. The PB protocol uses simple IDL (Interface Definition Language) to describe data structures, and can generate corresponding data structure classes through a specific compiler, so that developers do not need to manually write tedious serialization and deserialization code. The PB protocol uses a binary format for data serialization, so Protocol Buffers has high efficiency and performance in network transmission and storage.

[0059] Since the PB protocol of each service is customized, special deserialization processing is required to convert the input and output parameter data sequence into a more intuitive input and output parameter deserialization result.

[0060] Step S150, for the input and output parameters of each stage in the old function search link, the input and output parameters of the stage are deserialized from the data sequence of the PB protocol to obtain the input and output parameter deserialization result of the stage.

[0061] Step S160, compare the input and output parameter deserialization result of each stage of the new function search link with the input and output parameter deserialization result of the stage of the old function search link to obtain the new and old function parameter difference result of the stage.

[0062] It can be understood that the input and output parameter deserialization result is an intuitive result, so the input and output parameter deserialization result of each stage of the new function search link can be directly compared with the input and output parameter deserialization result of the stage of the old function search link to obtain the difference between the new and old function input and output parameters in each stage, so as to ensure whether the calling condition of the entire search link meets the expectation.

[0063] The commodity based on a search link parameter comparison method provided by the embodiment compares the parameters of a target commodity based on a new function search link. A link comparison request is responded to, an id of an old function search link compared with the new function search link is called, the id of the new function search link is used to determine the in-out parameters of each stage of the target commodity in the new function search link, the id of the old function search link is used to determine the in-out parameters of each stage of the target commodity in the old function search link, the in-out parameters of each stage of the new function search link are deserialized from a data sequence of a Protocol Buffers protocol to obtain in-out parameter deserialization results of the stage, the in-out parameters of each stage of the old function search link are deserialized from a data sequence of a Protocol Buffers protocol to obtain in-out parameter deserialization results of the stage, the in-out parameter deserialization results of each stage of the new function search link are compared with the in-out parameter deserialization results of the stage of the old function search link to obtain new-old function parameter difference results of the stage. As can be seen, the in-out parameters of each stage of the search link can be deserialized from the data sequence of the Protocol Buffers protocol to be converted into more intuitive in-out parameter deserialization results, so that it is more convenient and easier to troubleshoot or compare the problems existing in the new function of the search link.

[0064] When analyzing the in-out parameter differences between the new and old function search links, it is possible to analyze not only a single stage but also a module composed of upstream and downstream stages to more efficiently and intuitively analyze the differences between the new and old function search links. Based on this, the commodity based on a search link parameter comparison method provided by the application can further include the following processes. Figure 2

[0065] Step S210, the in-out parameters of the target module of the target commodity in the new function search link and the in-out parameters of the target module in the old function search link are determined.

[0066] The target module can include multiple stages with upstream and downstream relationships.

[0067] Step S220, the in-out parameters of each stage of the target module in the new function search link are deserialized from a data sequence of a PB protocol to obtain in-out parameter deserialization results.

[0068] Step S230, the in-out parameters of each stage of the target module in the old function search link are deserialized from a data sequence of a PB protocol to obtain in-out parameter deserialization results.

[0069] ​Step S240, compare the deserialization results of all the in-out parameters of the target module of the new function search link with the deserialization results of all the in-out parameters of the target module of the old function search link, to obtain the difference result of the new and old function parameters of the target module.

[0070] The merchandise parameter comparison method based on search links provided by the embodiment compares the in-out parameters of the target module in the new function search link with the in-out parameters of the target module in the old function search link, deserializes the in-out parameters of the target module in the new and old function search links from the data sequence of the Protocol Buffers protocol, to obtain the deserialization results of the in-out parameters, and finally compares the deserialization results of all the in-out parameters of the target module in the new and old function search links, so that the difference between the new and old function search links can be analyzed more efficiently and more intuitively.

[0071] In some embodiments of the application, the in-out parameter deserialization result storage process mentioned in the foregoing embodiments is introduced. Specifically, the in-out parameter deserialization results of each stage in the old function search link and the in-out parameter deserialization results of the stage in the new function search link can be stored in Redis.

[0072] The device for realizing merchandise parameter comparison based on search links provided by the embodiments of the application is described below. The device for realizing merchandise parameter comparison based on search links described below can be correspondingly referred to the merchandise parameter comparison method based on search links described above.

[0073] Referring to Figure 3 , Figure 3 The device for realizing merchandise parameter comparison based on search links disclosed by the embodiments of the application is shown in a structural schematic diagram.

[0074] As Figure 3 shown, the device can include:

[0075] An id calling unit 11 is configured to call the id of the old function search link for comparison with the new function search link in response to a link comparison request of a target merchandise based on the new function search link.

[0076] A first in-out parameter determining unit 12 is configured to determine the in-out parameters of each stage of the target merchandise in the new function search link according to the id of the new function search link.

[0077] A second in-out parameter determining unit 13 is configured to determine the in-out parameters of each stage of the target merchandise in the old function search link according to the id of the old function search link.

[0078] The first deserialization processing unit 14 is configured to deserialize the input and output parameters of each stage in the new function search link from the data sequence of the Protocol Buffers protocol, to obtain the deserialization result of the input and output parameters of the stage.

[0079] The second deserialization processing unit 15 is configured to deserialize the input and output parameters of each stage in the old function search link from the data sequence of the Protocol Buffers protocol, to obtain the deserialization result of the input and output parameters of the stage.

[0080] The deserialization result comparison unit 16 is configured to compare the deserialization result of the input and output parameters of each stage in the new function search link with the deserialization result of the input and output parameters of the stage in the old function search link, to obtain the difference result of the input and output parameters of the stage between the new function and the old function.

[0081] Optionally, the new function search link comprises the same stages as the old function search link, and the new function search link comprises an intent recognition stage, a recall detail stage, a filter detail stage, a coarse ranking algorithm stage, a fine ranking stage, and a re-ranking strategy stage.

[0082] Optionally, the apparatus further comprises:

[0083] The module input and output parameter determination unit is configured to determine the input and output parameters of a target module of the target commodity in the new function search link and the input and output parameters of the target module in the old function search link, the target module comprising a plurality of stages having an upstream and downstream relationship.

[0084] The third deserialization processing unit is configured to deserialize each input and output parameter of the target module in the new function search link from the data sequence of the Protocol Buffers protocol, to obtain the deserialization result of the input and output parameter.

[0085] The fourth deserialization processing unit is configured to deserialize each input and output parameter of the target module in the old function search link from the data sequence of the Protocol Buffers protocol, to obtain the deserialization result of the input and output parameter.

[0086] The module parameter comparison unit is configured to compare the deserialization result of all input and output parameters of the target module in the new function search link with the deserialization result of all input and output parameters of the target module in the old function search link, to obtain the difference result of the input and output parameters of the target module between the new function and the old function.

[0087] Optionally, the apparatus further comprises:

[0088] A Redis storage unit is configured to store the deserialization results of the input and output parameters of each stage in the old function search link and the deserialization results of the input and output parameters of each stage in the new function search link.

[0089] The device for comparing parameters of goods based on a search link provided by the embodiments of the application can be applied to xx devices, such as terminals, such as mobile phones, computers, and the like. Optionally, Figure 4 A hardware structure block diagram of the device for comparing parameters of goods based on a search link is shown with reference to Figure 4 The hardware structure of the device for comparing parameters of goods based on a search link can include at least one processor 1, at least one communication interface 2, at least one memory 3, and at least one communication bus 4.

[0090] In the embodiments of the application, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 complete communication with each other through the communication bus 4.

[0091] The processor 1 can be a central processing unit CPU, or an application specific integrated circuit ASIC, or one or more integrated circuits configured to implement the embodiments of the application, etc.

[0092] The memory 3 can include a high-speed RAM memory, and can also include a non-volatile memory, such as at least one disk memory.

[0093] The memory stores a program, and the processor can call the program stored in the memory, and the program is configured to:

[0094] In response to a link comparison request of a target good based on a new function search link, an id of an old function search link compared with the new function search link is called.

[0095] According to the id of the new function search link, input and output parameters of the target good at each stage in the new function search link are determined.

[0096] According to the id of the old function search link, input and output parameters of the target good at each stage in the old function search link are determined.

[0097] For the input and output parameters at each stage in the new function search link, the input and output parameters at the stage are deserialized from data sequences of a ProtocolBuffers protocol to obtain deserialization results of the input and output parameters at the stage.

[0098] According to the out and in parameters of each stage of the old function search link, the out and in parameters of the stage are deserialized from a data sequence of a ProtocolBuffers protocol to obtain a deserialization result of the out and in parameters of the stage;

[0099] The deserialization result of the out and in parameters of each stage of the new function search link is compared with the deserialization result of the out and in parameters of the stage of the old function search link to obtain a new and old function parameter difference result of the stage.

[0100] Optionally, the refinement function and the extension function of the program can refer to the description above.

[0101] The embodiment of the application further provides a storage medium which can store a program suitable for processor execution, and the program is used for:

[0102] In response to a link comparison request of a target commodity based on a new function search link, an id of an old function search link compared with the new function search link is called;

[0103] According to the id of the new function search link, out and in parameters of each stage of the target commodity in the new function search link are determined;

[0104] According to the id of the old function search link, out and in parameters of each stage of the target commodity in the old function search link are determined;

[0105] According to the out and in parameters of each stage of the new function search link, the out and in parameters of the stage are deserialized from a data sequence of a ProtocolBuffers protocol to obtain a deserialization result of the out and in parameters of the stage;

[0106] According to the out and in parameters of each stage of the old function search link, the out and in parameters of the stage are deserialized from a data sequence of a ProtocolBuffers protocol to obtain a deserialization result of the out and in parameters of the stage;

[0107] The deserialization result of the out and in parameters of each stage of the new function search link is compared with the deserialization result of the out and in parameters of the stage of the old function search link to obtain a new and old function parameter difference result of the stage.

[0108] Optionally, the refinement function and the extension function of the program can refer to the description above.

[0109] Finally, it should be noted that the terms "first", "second", and the like, herein do not denote any order, quantity, combination, or importance, but rather are used to distinguish one element from another, and are not intended to denote the presence of any such actual relationship or order. Moreover, the terms "include", "have", or any other variant thereof are intended to encompass non-exclusive inclusions, such that processes, methods, articles, or apparatuses that comprise a list of elements are not required to comprise only those elements in the list, but can include other elements not expressly listed, or also include elements inherent in such processes, methods, articles, or apparatuses. Without additional restrictions, an element preceded by "comprises... a" does not exclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the stated element.

[0110] The various embodiments in the specification are described in progressive order with each embodiment building on one or more of the previous embodiments, however the order of the embodiments presented is not intended to be construed as a requirement or limitation for these embodiments. Any one or more of the embodiments described herein are possible embodiments, which can be combined with each other in any way. The same reference numerals in different drawings represent the same or similar elements.

[0111] The above description of disclosed embodiments provides enabling teaching for a person skilled in the art to realize or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein can be applied to other embodiments without departing from the spirit or scope of the application. Therefore, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for comparing parameters of a product based on a search chain, characterized in that, include: In response to a link comparison request for the target product based on the new function search link, the ID of the old function search link to be compared with the new function search link is called. Based on the ID of the new function search link, determine the input and output parameters of the target product at each stage of the new function search link; Based on the ID of the old function search link, determine the input and output parameters of the target product at each stage of the old function search link; For the input and output parameters of each stage in the new function search chain, the input and output parameters of the stage are deserialized from the data sequence of the Protocol Buffers protocol to obtain the deserialization result of the input and output parameters of the stage. For the input and output parameters of each stage in the old function search link, the input and output parameters of the stage are deserialized from the data sequence of the Protocol Buffers protocol to obtain the deserialization result of the input and output parameters of the stage. The input and output parameter deserialization results of each stage of the new function search link are compared with the input and output parameter deserialization results of the same stage of the old function search link to obtain the difference results of the new and old function parameters at that stage. The new feature search chain includes the same stages as the old feature search chain, and includes an intent recognition stage, a recall details stage, a filter details stage, a coarse ranking algorithm stage, a fine ranking stage, and a re-ranking strategy stage. The method also includes: Determine the input and output parameters of the target module in the new function search chain and the input and output parameters of the target module in the old function search chain. The target module includes multiple stages with upstream and downstream relationships. For each input / output parameter of the target module in the new function search link, the input / output parameter is deserialized from the data sequence of the Protocol Buffers protocol to obtain the deserialization result of the input / output parameter; For each input / output parameter of the target module in the old function search link, the input / output parameter is deserialized from the data sequence of the Protocol Buffers protocol to obtain the deserialization result of the input / output parameter; The deserialization results of all input and output parameters of the target module of the new function search link are compared with the deserialization results of all input and output parameters of the target module of the old function search link to obtain the difference results of the new and old function parameters of the target module.

2. The method according to claim 1, characterized in that, Also includes: The input and output parameter deserialization results of each stage in the old function search chain, as well as the input and output parameter deserialization results of the same stage in the new function search chain, are stored in Redis.

3. A parameter comparison device for products based on search links, characterized in that, include: The id calling unit is used to respond to the link comparison request of the target product based on the new function search link and call the id of the old function search link to be compared with the new function search link; The first input / output parameter determination unit is used to determine the input / output parameters of the target product at each stage of the new function search link based on the ID of the new function search link. The second input / output parameter determination unit is used to determine the input / output parameters of the target product at each stage of the old function search link based on the ID of the old function search link. The first deserialization processing unit is used to deserialize the input and output parameters of each stage in the new function search link from the data sequence of the Protocol Buffers protocol to obtain the deserialization result of the input and output parameters of the stage. The second deserialization processing unit is used to deserialize the input and output parameters of each stage in the legacy function search link from the data sequence of the Protocol Buffers protocol to obtain the deserialization result of the input and output parameters of the stage. The deserialization result comparison unit is used to compare the input and output parameter deserialization results of each stage of the new function search link with the input and output parameter deserialization results of the same stage of the old function search link to obtain the difference results of the new and old function parameters at that stage. The new feature search chain includes the same stages as the old feature search chain, and includes an intent recognition stage, a recall details stage, a filter details stage, a coarse ranking algorithm stage, a fine ranking stage, and a re-ranking strategy stage. The device also includes: The module input / output parameter determination unit is used to determine the input / output parameters of the target module in the new function search link and the input / output parameters of the target module in the old function search link. The target module includes multiple stages with upstream and downstream relationships. The third deserialization processing unit is used to deserialize each input and output parameter of the target module in the new function search link from the data sequence of the Protocol Buffers protocol to obtain the deserialization result of the input and output parameters. The fourth deserialization processing unit is used to deserialize each input and output parameter of the target module in the old function search link from the data sequence of the Protocol Buffers protocol to obtain the deserialization result of the input and output parameters. The module parameter comparison unit is used to compare the deserialization results of all input and output parameters of the target module of the new function search link with the deserialization results of all input and output parameters of the target module of the old function search link to obtain the difference results of the new and old function parameters of the target module.

4. The apparatus according to claim 3, characterized in that, Also includes: The Redis storage unit is used to store the deserialization results of the input and output parameters of each stage in the old function search chain, as well as the deserialization results of the input and output parameters of the same stage in the new function search chain.

5. A parameter comparison device for products based on a search link, characterized in that, Including memory and processor; The memory is used to store programs; The processor is configured to execute the program to implement each step of the parameter comparison method for goods based on search links as described in any one of claims 1-2.

6. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements each step of the parameter comparison method for goods based on the search link as described in any one of claims 1-2.

Citation Information

Patent Citations

  • Flow playback test method and device, computer equipment and storage medium

    CN112491659A

  • Commodity recall index evaluation method and system, electronic equipment and storage medium

    CN116304291A