Retrieval method and device, equipment and storage medium
Determining the target database for information retrieval through semantic retrieval and matching solves the problem of low reliability and accuracy of information retrieval in the existing technology, and achieves more realistic and accurate retrieval results.
Patent Information
- Application Number
- CN202310190938.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2024-08-23
AI Technical Summary
Existing information retrieval solutions have problems with low reliability and accuracy in self-learning, and cannot accurately perceive the user's retrieval intention.
By obtaining the data to be retrieved, perform semantic retrieval and matching, determine the target retrieval library that the data to be retrieved matches, including the learned and to-be-learned libraries, and conduct result retrieval based on the matching results, using different retrieval methods to improve the authenticity of the retrieval results. sex and accuracy.
It improves the reliability and accuracy of information retrieval, determines the target database through semantic retrieval, and obtains more realistic retrieval results.
Smart Images

Figure CN118535675A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of information technology, and relate to but are not limited to a retrieval method and apparatus, equipment, and storage medium. Background Art
[0002] The development of information retrieval has gone through two generations. The first generation of information retrieval mainly relied on division of labor and directory retrieval, while the second generation of information retrieval was automatic information retrieval realized by computers based on algorithms and mainly performed by keyword retrieval.
[0003] At present, there are a small number of end-to-end self-learning solutions in the existing information retrieval solutions. These self-learning solutions are applied to the most upstream query rewriting layer. The system cannot clearly perceive the learnability of the retrieval and cannot accurately and truly obtain the user's retrieval intention. As a result, the reliability and accuracy of information retrieval are low. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a retrieval method, device, equipment, and storage medium that can solve the problems of low reliability and accuracy of information retrieval in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a search method, comprising:
[0006] Get the data to be retrieved;
[0007] Performing semantic retrieval and matching on the data to be retrieved to obtain a matching retrieval result, wherein the matching retrieval result is used to indicate a target retrieval library matched by the data to be retrieved, wherein the target retrieval library includes a learned retrieval library and a retrieval library to be learned;
[0008] Based on the matching search results, a result search is performed on the data to be searched to obtain a final search result of the data to be searched.
[0009] In a second aspect, an embodiment of the present application provides a retrieval device, including:
[0010] An acquisition module, used to acquire data to be retrieved;
[0011] A processing module, used for performing semantic retrieval and matching on the data to be retrieved to obtain a matching retrieval result, wherein the matching retrieval result is used to indicate a target retrieval library matched by the data to be retrieved, wherein the target retrieval library includes a learned retrieval library and a retrieval library to be learned;
[0012] The retrieval module is used to perform result retrieval on the data to be retrieved based on the matching retrieval results to obtain the final retrieval results of the data to be retrieved.
[0013] In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the program, the method described in the embodiment of the present application is implemented.
[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method provided in the embodiment of the present application.
[0015] Compared with the prior art, this application has at least the following beneficial effects:
[0016] In an embodiment of the present application, a computer device obtains data to be retrieved; performs semantic retrieval and matching on the data to be retrieved to obtain matching retrieval results, wherein the matching retrieval results are used to indicate a target retrieval library to which the data to be retrieved matches, and the target retrieval library includes a learned retrieval library and a retrieval library to be learned; based on the matching retrieval results, a result retrieval is performed on the data to be retrieved to obtain a final retrieval result of the data to be retrieved. It can be seen that the computer device can determine the target database that matches the data to be retrieved based on the semantic retrieval of the data to be retrieved, and then use different retrieval methods to retrieve and obtain the final retrieval result of the data to be retrieved, so as to obtain a more real and accurate retrieval result, thereby helping to improve the reliability and accuracy of information retrieval. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0018] Figure 1 It is a schematic diagram of a system framework provided in an embodiment of the present application.
[0019] Figure 2 It is a structural diagram of a semantic retrieval module provided in an embodiment of the present application.
[0020] Figure 3 This is a schematic diagram of a feedback interface based on user perception provided in an embodiment of the present application.
[0021] Figure 4 It is a learning process diagram based on a learning module provided in an embodiment of the present application.
[0022] Figure 5 It is a flowchart of a retrieval method provided in an embodiment of the present application.
[0023] Figure 6 It is a structural schematic diagram of a retrieval device provided in an embodiment of the present application.
[0024] Figure 7 It is a structural diagram of a computer device provided in an embodiment of the present application.
[0025] Figure 8 It is a schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.
[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0028] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0029] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0030] See also Figure 1 Schematic diagram of a system framework provided by an embodiment of the present application. Figure 1 The system shown is applied to a computer device, and the system may include: a semantic retrieval module 100, a scene triggering module 200, a user perception module 300, a user feedback module 400, and a learning module based on user feedback 500. Optionally, the system may also include a learning promotion module (not shown), the functions of which may be integrated into the learning module 500 or implemented separately, which is not limited in this application. Among them:
[0031] The semantic retrieval module 100 is mainly responsible for the retrieval of the query based on offline mining. 标准 , Q 兜底) performs semantic retrieval and matching on the data to be retrieved to determine the standard retrieval data that best matches the data to be retrieved, thereby obtaining the executable retrieval query or intention that the user really wants to express. The data to be retrieved can be the query data (query) input by the user.
[0032] It is understandable that the present application can perform offline mining on some online data in the system in an offline state to obtain multiple retrieval pairs, and write these retrieval pairs into the database for storage for subsequent use. Among them, when the retrieval pairs are stored in the warehouse, the present application can perform data verification on these retrieval pairs, and only write them into the database for storage after the verification is successful. This application does not limit the implementation method of data verification. For example, the bottom-up retrieval data is analyzed for intent. The obtained intent must be consistent with the intent of the standard retrieval data in the retrieval pair, and then the verification can be determined to be successful.
[0033] Please also see Figure 2 FIG. 1 is a schematic diagram of a possible structure of a semantic search module 100 provided in an embodiment of the present application. Figure 2 The semantic retrieval module 100 shown may include: a preprocessing unit 101 (also referred to as a data conversion unit), an understanding unit 102 (also referred to as a semantic understanding unit), a semantic representation unit 103, a recall unit 104, an indexing unit 105, and a random unit 106. Among them:
[0034] The preprocessing unit 101 supports preprocessing of the data to be retrieved, and the preprocessing includes but is not limited to, for example, length truncation, case conversion, or other data conversion processing with custom settings.
[0035] The understanding unit 102 is responsible for performing configuration and / or normalization processing on the search data. The configuration processing includes but is not limited to any one or more of the following combinations: for example, prefix and suffix filtering, word segmentation extraction, slot extraction, stop word removal, data filtering, or other custom data processing. The normalization processing may include but is not limited to slot replacement, synonym normalization, or other custom normalization processing, which is not limited in this application.
[0036] The semantic representation unit 103 may be responsible for semantically representing the retrieval data. For example, the present application may use a pre-trained model and some retrieval pairs to semantically represent the retrieval data to obtain corresponding processed retrieval data. Among them, the pre-trained model may be a model customized by the system, which is used to perform semantic representation processing on the retrieval data. The model may include but is not limited to, for example, a twin network representation model, a neural network model, or other custom models. The above-mentioned retrieval pairs may be open source retrieval pairs, or they may be retrieval pairs stored in the system database, and this application does not limit them.
[0037] The recall unit 104 is responsible for recalling the data outputted by the semantic representation unit 103 and the understanding unit 102 to obtain processed retrieval data corresponding to the data to be retrieved. The recall processing here includes, but is not limited to, for example, text (term) recall and semantic (embedding) recall.
[0038] The indexing unit 105 includes text indexing and semantic indexing. Specifically, the indexing module can construct text and semantic indexes for some acquired training data to obtain some text indexes and semantic indexes contained in the training data. The training data can be sample data customized by the system.
[0039] The random unit 106 is responsible for performing random similarity matching on the processed retrieval data output by the recall unit 104 and each index in the index unit 105 to obtain the annotated retrieval data that best matches the processed retrieval data, that is, to obtain the annotated retrieval data that best expresses the user's true intention. The randomization here includes but is not limited to system-configured or customized randomization methods. Furthermore, the present application can perform result retrieval based on the annotated retrieval data to obtain the final retrieval result (answer), etc.
[0040] The scene trigger module 200 is responsible for controlling whether it is necessary to trigger the self-learning of the data to be retrieved. Specifically, for example, in an unaware scene, it is not necessary to trigger the self-learning of the data to be retrieved; or, when the data to be retrieved matches the learned database, it is not necessary to trigger the self-learning of the data to be retrieved. Among them, the scene trigger module 200 may include a database to be learned and a learned database, and the learned database may include the retrieval pair (Q 标准 , Q 兜底 ), the to-be-learned database includes the to-be-learned data, that is, the annotated retrieval data or the bottom-line retrieval data waiting to be matched. These learning databases can be data obtained by learning based on the user's historical interaction data, which is not limited in this application.
[0041] The user perception module 300 can be used to collect user perception, which is used to reflect / indicate the similarity between the data to be retrieved and the annotated retrieval data in the database to be learned. Among them, user perception can include strong perception, weak perception and no perception, which are divided according to the size of the above similarity. The strong perception here is mainly used to divide the data to be retrieved with higher similarity, which can be clearly perceived by the user and can be called strong perception. Weak perception is to recommend similar queries for data to be retrieved with low similarity, which does not affect the experience of the interaction itself, and supports recommending similar queries in the recommended position. This method is called weak perception.
[0042] The user perception module 300 can display a corresponding feedback interface based on the above user perception, and the user provides corresponding feedback data based on the feedback interface.
[0043] The user feedback module 400 is mainly responsible for collecting user feedback data. Specifically, after obtaining the above-mentioned user perception, a corresponding feedback interface can be displayed based on the user perception, and the user can give a series of feedback data based on the feedback interface. The feedback data may include but is not limited to the user's affirmative reply data, negative reply data, and click data. The system can perform point capture on the user's interface operation behavior to effectively obtain the user's feedback data. This application does not limit the feedback implementation method of the above-mentioned users, which may include but is not limited to, for example, card point click feedback, secondary round interaction feedback, and recommendation click feedback.
[0044] For example, see Figure 3 is a possible user perception-based feedback interface schematic diagram provided by an embodiment of the present application. Figure 3 In the figure, feedback interfaces in three cases of strong perception, weak perception and no perception are shown respectively. Among them, strong perception means that the similarity between the data to be retrieved and the annotated retrieval data in the database to be learned is very large, and the feedback interface can be used to directly confirm with the user whether the data to be retrieved is similar to the standard retrieval data, or is similar to the annotated retrieval data, etc. Weak perception may mean that the similarity between the data to be retrieved and the annotated retrieval data in the database to be learned is small, and the feedback interface may display the data to be retrieved or the backup retrieval data in the database to be learned that matches the data to be retrieved, etc., which is not limited in this application. The user can input corresponding feedback data based on the above feedback interface.
[0045] The non-perception degree indicates that the similarity between the data to be retrieved and the data to be learned in the database to be learned is particularly small, and the feedback interface can display the data to be retrieved or any backup search data in the database to be learned that can match the data to be retrieved, etc. The user can still input the corresponding feedback data based on the above feedback interface.
[0046] The learning module 500 based on user feedback is responsible for self-learning based on the user's feedback data, and the feedback data includes positive data and negative data of user feedback. Specifically, for example, the present application can perform positive data flow on positive data and negative data flow on negative data, thereby completing the self-learning of the data to be retrieved online, and at this time, the matching information of the data to be retrieved is also obtained. The matching information may include the annotated retrieval data and the bottom-up retrieval data that match the data to be retrieved in the database to be learned. After the learning is completed, the present application can promote the learning content to realize the user's imperceptible application. Specifically, the positive data with positive flow can be retrieved for results to obtain the final retrieval results of the data to be retrieved, and the negative data with negative flow can be directly filtered and discarded. Optionally, the present application can write the matching information of the above-mentioned data to be retrieved into the learned database for storage, waiting for the retrieval of the next query of the data to be retrieved, which is not limited by the present application.
[0047] Please also see Figure 4 Schematic diagram of a learning process based on a learning module provided in an embodiment of the present application. Figure 4 In the learning module 500, the feedback data of the user can be collected, and the feedback data can be stored in the form of logs, etc. Further, the present application can perform data processing and statistics on the feedback data to obtain positive data for characterizing the positive feedback of the user and negative data for characterizing the negative feedback of the user, etc. For positive data, the present application can perform data flow on the positive data to update and write these positive data into the learned database for storage. Conversely, for negative data, the present application can perform data flow on the negative data, for example, these negative data can be deleted, etc., which is not limited by the present application.
[0048] It can be understood that the present application can utilize user feedback data to reversely optimize retrieval, realize a closed-loop process of the entire retrieval learning, and help the system better understand the user's real query / retrieval intention, thereby facilitating improving the reliability and accuracy of retrieval.
[0049] Based on the above examples, see Figure 5 Schematic diagram of a retrieval method provided in an embodiment of the present application. Figure 5 The method shown is applied to a computer device, and the method comprises:
[0050] S501: Obtain data to be retrieved.
[0051] This application does not limit the implementation method of obtaining the data to be retrieved. For example, in one example, after detecting a search operation input by a user, the application can obtain the corresponding data to be retrieved, and the search operation includes but is not limited to information input by the user in the search bar, etc. In another example, the application can receive the data to be retrieved sent by other devices (such as a server or a terminal device), etc., which is not limited by this application.
[0052] S502: semantically search and match the data to be searched to obtain a matching search result, wherein the matching search result is used to indicate a target search library to which the data to be searched matches, wherein the target search library includes a learned search library and a search library to be learned.
[0053] The present application can use a semantic retrieval module to perform semantic retrieval on the data to be retrieved to determine whether the data to be retrieved matches the annotated retrieval data in the learned database. If it matches, the present application can determine that the target database that matches the data to be retrieved is the learned retrieval library; otherwise, it can be determined that the target database that matches the data to be retrieved is the retrieval library to be learned. The present application does not limit the implementation method of the above-mentioned semantic retrieval and matching. For example, in a specific embodiment, the present application can pre-process the data to be retrieved to obtain corresponding processed retrieval data. The pre-processing includes any one or more of the following combinations: data conversion, semantic understanding and semantic representation, etc. The semantic understanding includes but is not limited to operations such as normalization processing, word segmentation processing, slot extraction and data filtering. Further, the present application can perform index matching on the processed retrieval data to obtain matching retrieval results for the data to be retrieved. Specifically, the present application can perform text indexing and semantic index retrieval and matching on the processed retrieval data to determine whether the data to be retrieved matches the learned database, thereby obtaining corresponding matching retrieval results.
[0054] S503: Based on the matching search results, perform result search on the data to be searched to obtain a final search result of the data to be searched.
[0055] In one embodiment, when the data to be retrieved matches the learned database, the present application can perform result retrieval on the data to be retrieved based on the learned database. Specifically, the present application can find the standard retrieval data with the greatest similarity to the data to be retrieved from the learned database, and then perform result retrieval based on the standard retrieval data to obtain the final retrieval result that can better meet the user's true intention.
[0056] In another embodiment, when the data to be retrieved matches the database to be learned, the present application can learn the data to be retrieved based on the feedback data of the user perception to obtain the matching information corresponding to the data to be retrieved, and the matching information at least includes the annotated retrieval data and the bottom-up retrieval data that the data to be retrieved matches in the database to be learned. In a specific implementation, when the data to be retrieved matches the database to be learned, the self-learning of the data to be retrieved can be triggered, and the perception calculation is further performed based on the above-mentioned data to be retrieved and the data to be learned in the database to be learned to obtain the corresponding user perception. Based on the user perception, the corresponding feedback interface is displayed to obtain the feedback data submitted by the user on the feedback interface. Further, the present application performs data flow on the feedback data to obtain the matching information corresponding to the data to be retrieved. Specifically, the present application can perform positive flow on the positive data in the feedback data, and write the above-mentioned matching information into the learned database for storage; negative flow on the negative data in the feedback data, and delete the above-mentioned negative data, thereby completing the learning of the data to be retrieved.
[0057] Furthermore, the present application may perform result retrieval on the data to be retrieved based on the above matching information, specifically based on the annotated retrieval data that matches the data to be retrieved in the database to be learned, thereby obtaining the final retrieval result of the data to be retrieved.
[0058] By implementing the embodiments of the present application, a computer device obtains data to be retrieved; performs semantic retrieval and matching on the data to be retrieved to obtain matching retrieval results, wherein the matching retrieval results are used to indicate the target retrieval library matched by the data to be retrieved, and the target retrieval library includes a learned retrieval library and a retrieval library to be learned; based on the matching retrieval results, a result retrieval is performed on the data to be retrieved to obtain the final retrieval results of the data to be retrieved. It can be seen that the computer device can determine the target database that matches the data to be retrieved based on the semantic retrieval of the data to be retrieved, and then use different retrieval methods to retrieve and obtain the final retrieval results of the data to be retrieved, so as to obtain more real and accurate retrieval results, thereby helping to improve the reliability and accuracy of information retrieval.
[0059] The computer devices of the present application include but are not limited to smart phones (such as Android phones, IOS phones, etc.), personal computers, tablet computers, PDAs, e-readers, mobile Internet devices (MID, Mobile Internet Devices), wearable smart devices or other devices with communication functions, etc.
[0060] It should be understood that although Figure 5The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 5 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0061] Based on the foregoing embodiments, an embodiment of the present application provides a retrieval device, which includes the modules included and the units included in the modules, and can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0062] See also Figure 6 , is a schematic diagram of the structure of a search device provided in an embodiment of the present application. Figure 6 The device shown includes an acquisition module 601, a processing module 602 and a retrieval module 603; wherein:
[0063] The acquisition module 601 is used to acquire the data to be retrieved;
[0064] The processing module 602 is used to perform semantic retrieval and matching on the data to be retrieved to obtain matching retrieval results, wherein the matching retrieval results are used to indicate the target retrieval library matched by the data to be retrieved, and the target retrieval library includes the learned retrieval library and the retrieval library to be learned;
[0065] The retrieval module 603 is used to perform result retrieval on the data to be retrieved based on the matching retrieval result to obtain a final retrieval result of the data to be retrieved.
[0066] In some embodiments, the processing module 602 is specifically used to:
[0067] When the data to be retrieved matches the retrieval library to be learned, the data to be retrieved is learned based on the feedback data of the user perception to obtain matching information corresponding to the data to be retrieved;
[0068] Performing result retrieval on the data to be retrieved based on the matching information to obtain a final retrieval result of the data to be retrieved;
[0069] The matching information at least includes standard search data and backup search data that match the data to be retrieved in the database to be learned, and the user perception is used to indicate the similarity between the data to be retrieved and the standard search data in the database to be learned.
[0070] In some embodiments, the processing module 602 is specifically used to:
[0071] Performing perception calculation based on the data to be retrieved and the data to be learned in the database to be learned to obtain user perception of the data to be retrieved, wherein the user perception includes strong perception and weak perception;
[0072] Acquire feedback data based on the user perception, the feedback data including positive data and negative data;
[0073] The feedback data is circulated to complete the learning of the data to be retrieved and obtain matching information corresponding to the data to be retrieved.
[0074] In some embodiments, after obtaining the matching information corresponding to the data to be retrieved, the processing module 602 is further used to: update the matching information into the learned database.
[0075] In some embodiments, the processing module 602 is specifically used to:
[0076] When the data to be retrieved matches the learned search library, a result search is performed on the data to be retrieved based on the learned search library to obtain a final search result of the data to be retrieved.
[0077] In some embodiments, the processing module 602 is specifically used to:
[0078] Preprocessing the data to be retrieved to obtain processed retrieval data, wherein the preprocessing includes at least one of the following: data conversion, semantic understanding, and semantic representation;
[0079] Index matching is performed on the processed search data to obtain the matching search result.
[0080] In some embodiments, the semantic understanding includes at least one of the following: normalization processing, word segmentation processing, slot extraction and data filtering.
[0081] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0082] It should be noted that in the embodiments of this application Figure 6The division of modules in the device shown is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.
[0083] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0084] The embodiment of the present application provides a computer device, which may be a smart phone, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a retrieval method is implemented.
[0085] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.
[0086] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.
[0087] Those skilled in the art will understand that Figure 7The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0088] In one embodiment, the apparatus provided by the present application can be implemented in the form of a computer program, which can be used in Figure 7 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the sampling device, for example, Figure 6 The acquisition module, processing module and retrieval module shown in the figure. The computer program composed of each program module enables the processor to execute the steps of the retrieval method of each embodiment of the present application described in this specification.
[0089] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0090] Get the data to be retrieved;
[0091] Performing semantic retrieval and matching on the data to be retrieved to obtain a matching retrieval result, wherein the matching retrieval result is used to indicate a target retrieval library matched by the data to be retrieved, wherein the target retrieval library includes a learned retrieval library and a retrieval library to be learned;
[0092] Based on the matching search results, a result search is performed on the data to be searched to obtain a final search result of the data to be searched.
[0093] In one embodiment, based on the matching search result, performing result search on the data to be searched to obtain the final search result of the data to be searched includes:
[0094] When the data to be retrieved matches the retrieval library to be learned, the data to be retrieved is learned based on the feedback data of the user perception to obtain matching information corresponding to the data to be retrieved;
[0095] Performing result retrieval on the data to be retrieved based on the matching information to obtain a final retrieval result of the data to be retrieved;
[0096] The matching information at least includes standard search data and backup search data that match the data to be retrieved in the database to be learned, and the user perception is used to indicate the similarity between the data to be retrieved and the standard search data in the database to be learned.
[0097] In one embodiment, the learning of the data to be retrieved based on the feedback data of the user perception to obtain the matching information corresponding to the data to be retrieved includes:
[0098] Performing perception calculation based on the data to be retrieved and the data to be learned in the database to be learned to obtain user perception of the data to be retrieved, wherein the user perception includes strong perception and weak perception;
[0099] Acquire feedback data based on the user perception, the feedback data including positive data and negative data;
[0100] The feedback data is circulated to complete the learning of the data to be retrieved and obtain matching information corresponding to the data to be retrieved.
[0101] In one embodiment, after obtaining the matching information corresponding to the data to be retrieved, the processor further implements the following steps when executing the computer program:
[0102] The matching information is updated into the learned database.
[0103] In one embodiment, based on the matching search result, performing result search on the data to be searched to obtain the final search result of the data to be searched includes:
[0104] When the data to be retrieved matches the learned search library, a result search is performed on the data to be retrieved based on the learned search library to obtain a final search result of the data to be retrieved.
[0105] In one embodiment, performing semantic retrieval and matching on the data to be retrieved to obtain matching retrieval results includes:
[0106] Preprocessing the data to be retrieved to obtain processed retrieval data, wherein the preprocessing includes at least one of the following: data conversion, semantic understanding, and semantic representation;
[0107] Index matching is performed on the processed search data to obtain the matching search result.
[0108] In one embodiment, the semantic understanding includes at least one of the following: normalization processing, word segmentation processing, slot extraction and data filtering.
[0109] See also Figure 8 , is a schematic diagram of the structure of a chip system provided in an embodiment of the present application. Figure 8 The chip system 80 shown may include a processor 801 and an interface 802. Optionally, it may also include a memory 803. The number of the processor 801 may be one or more, and the number of the interface 802 may be multiple.
[0110] In one embodiment, for a chip used to implement the method embodiment described in this application:
[0111] The interface 802 is used to receive or output signals;
[0112] The processor 801 is used to execute part or all of the content in the above-mentioned retrieval method embodiment.
[0113] Understandably, the processor 801 in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, a digital signal processor (DigitalSignal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0114] It is understandable that the memory in the embodiment of the present application (which may be the memory 9013 or the memory 9023 described above) may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0115] It should be noted here that the description of the above storage medium, device and chip embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0116] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.
[0117] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0118] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0119] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0120] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0121] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0122] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0123] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0124] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0125] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0126] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0127] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A search method, It is characterized in that The method comprises: Get the data to be retrieved; Performing semantic retrieval and matching on the data to be retrieved to obtain a matching retrieval result, wherein the matching retrieval result is used to indicate a target retrieval library matched by the data to be retrieved, wherein the target retrieval library includes a learned retrieval library and a retrieval library to be learned; Based on the matching search results, a result search is performed on the data to be searched to obtain a final search result of the data to be searched.
2. The method according to claim 1, It is characterized in that The performing result search on the data to be searched based on the matching search result to obtain the final search result of the data to be searched includes: When the data to be retrieved matches the retrieval library to be learned, the data to be retrieved is learned based on the feedback data of the user perception to obtain matching information corresponding to the data to be retrieved; Performing result retrieval on the data to be retrieved based on the matching information to obtain a final retrieval result of the data to be retrieved; The matching information at least includes standard search data and fallback search data that match the data to be retrieved in the database to be learned, and the user perception is used to indicate the similarity between the data to be retrieved and the standard search data in the database to be learned.
3. The method according to claim 2, It is characterized in that The learning of the data to be retrieved based on the feedback data of the user perception to obtain the matching information corresponding to the data to be retrieved includes: Performing perception calculation based on the data to be retrieved and the data to be learned in the database to be learned to obtain user perception of the data to be retrieved, wherein the user perception includes strong perception and weak perception; Acquire feedback data based on the user perception, the feedback data including positive data and negative data; The feedback data is circulated to complete the learning of the data to be retrieved and obtain matching information corresponding to the data to be retrieved.
4. The method according to claim 2, It is characterized in that After obtaining the matching information corresponding to the data to be retrieved, the method further includes: The matching information is updated into the learned database.
5. The method according to claim 1, It is characterized in that The performing result search on the data to be searched based on the matching search result to obtain the final search result of the data to be searched includes: When the data to be retrieved matches the learned search library, a result search is performed on the data to be retrieved based on the learned search library to obtain a final search result of the data to be retrieved.
6. The method according to any one of claims 1 to 5, It is characterized in that The semantic search and matching of the data to be searched to obtain the matching search results includes: Preprocessing the data to be retrieved to obtain processed retrieval data, wherein the preprocessing includes at least one of the following: data conversion, semantic understanding, and semantic representation; Index matching is performed on the processed search data to obtain the matching search result.
7. The method according to claim 6, It is characterized in that The semantic understanding includes at least one of the following: normalization processing, word segmentation processing, slot extraction and data filtering.
8. A retrieval device, It is characterized in that The device comprises: An acquisition module is used to acquire data to be retrieved; A processing module, used for performing semantic retrieval and matching on the data to be retrieved to obtain a matching retrieval result, wherein the matching retrieval result is used to indicate a target retrieval library matched by the data to be retrieved, wherein the target retrieval library includes a learned retrieval library and a retrieval library to be learned; The retrieval module is used to perform result retrieval on the data to be retrieved based on the matching retrieval results to obtain the final retrieval results of the data to be retrieved.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, It is characterized in that When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
