Method, device, equipment, storage medium and product for data retrieval

By combining dense models, vector models, extended models, rearrangement models, and retrieval models, the problem of information loss caused by vector transformation in banking operations is solved, achieving more accurate data retrieval and more efficient business processing, and improving user experience.

CN118349666BActive Publication Date: 2026-11-27INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410450582.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-15
Publication Date
2026-11-27
Estimated Expiration
2044-04-15

AI Technical Summary

Technical Problem

Existing technologies in banking operations suffer from information loss due to reliance on vector transformation, which reduces the accuracy of data retrieval and the efficiency of business processing, thus impacting user experience.

Method used

Dense similarity is determined by dense model and vector model, extended question data is generated by combining extended model, reordering model is used to calculate relevance value, and recall data is generated by retrieval model and fine ranking model. Finally, the target retrieval results are determined, avoiding information loss and improving retrieval accuracy.

Benefits of technology

It has improved the accuracy and comprehensiveness of data retrieval, and enhanced the efficiency of banking services and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118349666B_ABST
    Figure CN118349666B_ABST
Patent Text Reader

Abstract

The application provides a data retrieval method, device, equipment, storage medium and product, and relates to the field of financial technology or other related fields. The method comprises the following steps: determining a target document set corresponding to a business scenario according to problem data, determining a dense similarity of the target document set through a dense model, determining a dense retrieval answer based on the dense similarity through a vector model, generating extended problem data through an extension model and determining corresponding relevant documents, calculating a relevance value of the relevant documents through a rearrangement model and determining target documents, calculating a frequency of occurrence of a feature word in the target documents through a retrieval model, determining a sparse retrieval answer according to the frequency, generating recall data from the dense retrieval answer and the sparse retrieval answer, calculating a target similarity of the recall data and sorting, and determining a target retrieval result according to a sorting result. The method of the application improves the accuracy of the recall data, further improves the accuracy of the retrieval result, and improves the efficiency of bank business handling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of financial technology or other related fields, and in particular to a method, apparatus, device, storage medium and product for data retrieval. Background Technology

[0002] When conducting banking business, users often have questions about business regulations. Existing technology converts the user's questions into question vectors, queries a database containing multiple vectors for vectors with semantically similar questions, identifies the documents corresponding to the semantically similar vectors, and presents the documents to the user.

[0003] However, when existing technologies query vectors with semantic similarity to the question vector in databases containing a large number of vectors, they rely on converting the data into vectors of the same dimension. Therefore, the documents corresponding to the semantically similar vectors may suffer from information loss, reducing the accuracy of data retrieval. Furthermore, if the user's question cannot be effectively resolved, a new search is required, which reduces business processing efficiency and further degrades the user experience. Summary of the Invention

[0004] This application provides a data retrieval method, apparatus, device, storage medium, and product to improve retrieval accuracy and business processing efficiency, and enhance user experience.

[0005] Firstly, this application provides a data retrieval method, including:

[0006] Obtain problem data and determine the keywords of the problem data, determine the business scenario based on the keywords, and determine the target document set based on the business scenario. The target document set includes documents related to the business scenario.

[0007] The dense similarity between each document in the target document set and the question data is determined by a dense model; documents with a dense similarity exceeding the dense similarity threshold are identified by a vector model, thus obtaining the dense retrieval answer.

[0008] The initial answer to the question data is determined by an extended model. Extended question data is generated based on the initial answer. Relevant documents corresponding to the extended question data are queried based on the target document set. The relevance value of each relevant document is determined by a reordering model and the relevant documents are sorted according to the relevance value. The target document is determined based on the relevance value sorting result. The data is retrieved based on the target document by a retrieval model to obtain a sparse retrieval answer, which includes documents.

[0009] Recall data is generated based on dense and sparse search answers; the target similarity between each document in the recall data and the extended question data is determined by a fine-ranking model, and the documents in the recall data are ranked based on the target similarity. The target search results are then determined based on the ranking results.

[0010] Secondly, this application provides a data retrieval apparatus, comprising:

[0011] The acquisition module is used to acquire problem data and determine the keywords of the problem data, determine the business scenario based on the keywords, and determine the target document set based on the business scenario. The target document set includes documents related to the business scenario.

[0012] The processing module is used to determine the density similarity between each document in the target document set and the question data using a density model; and to determine the documents whose density similarity exceeds the density similarity threshold using a vector model, thereby obtaining the density retrieval answer.

[0013] The processing module is used to determine the initial answer to the question data through an extended model, generate extended question data based on the initial answer, query relevant documents corresponding to the extended question data based on the target document set; determine the relevance value of each relevant document through a reordering model and sort the relevant documents according to the relevance value, determine the target document based on the relevance value sorting result; and perform data retrieval based on the target document through a retrieval model to obtain sparse retrieval answers, which include documents.

[0014] The processing module is used to generate recall data based on dense and sparse search answers; determine the target similarity between each document in the recall data and the extended question data through a fine ranking model; rank each document in the recall data based on the target similarity; and determine the target retrieval result based on the ranking result.

[0015] Thirdly, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0016] The memory stores instructions that the computer executes;

[0017] The processor executes computer execution instructions stored in memory to implement the method involved in the first aspect.

[0018] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method described in the first aspect above.

[0019] Fifthly, this application provides a computer program product including computer instructions that, when executed by a processor, implement the method described in the first aspect above.

[0020] The data retrieval method, apparatus, equipment, storage medium, and product provided in this application determine the business scenario based on the problem data and the corresponding target document set. Based on the target document set, a dense model is used to determine the dense similarity of each document in the target document set. A vector model is used to determine documents exceeding a dense similarity threshold as dense retrieval answers. Simultaneously, an expansion model determines the initial answer to the problem data, and the initial answer and problem data are combined to generate expanded problem data, thus obtaining relevant documents corresponding to the expanded problem data. A reordering model calculates the correlation value between relevant documents and the expanded problem data, sorts the correlation values, and selects target documents. A retrieval model calculates the frequency of feature words in the target documents, and documents containing the feature words are selected as sparse retrieval answers based on the frequency. Dense and sparse retrieval answers are combined to generate recall data. The target similarity of each document in the recall data is calculated again, and the target retrieval result is determined based on the document ranking result of the target similarity. This improves the accuracy and comprehensiveness of the recall data, further enhancing the accuracy of the retrieval results, thereby improving the efficiency of banking operations and the user experience. Attached Figure Description

[0021] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0022] Figure 1 This is a schematic diagram illustrating an application scenario for data retrieval provided in an embodiment of this application;

[0023] Figure 2 A flowchart illustrating a data retrieval method provided in this application embodiment;

[0024] Figure 3 A flowchart illustrating a data retrieval method provided in this application embodiment;

[0025] Figure 4 A flowchart illustrating a data retrieval method provided in this application embodiment;

[0026] Figure 5 A schematic diagram of the structure of a data retrieval device provided in an embodiment of this application;

[0027] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0028] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0029] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0030] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use, processing, transmission, provision, disclosure, and application of the relevant data all comply with the relevant laws, regulations, and standards of the relevant regions, have taken necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation portals for users to choose to authorize or refuse.

[0031] Furthermore, the technical solution involved in this application, which involves big data analysis of user information (including but not limited to personal biometrics, identity data, consumption data, asset data, electronic terminal operation data, etc.) and the use of artificial intelligence technology for automated decision-making, and makes decisions that have a significant impact on personal rights based on the results of automated decision-making, provides users with corresponding operation entry points for users to choose to agree to or reject the results of automated decision-making; if the user chooses to reject, the process will proceed to the expert decision-making process.

[0032] It should be noted that the data retrieval method and apparatus of this application can be used in the field of fintech or other related fields, or in any field other than fintech or other related fields. The application field of the data retrieval method and apparatus of this application is not limited.

[0033] The banking system includes a search enhancement generation system, which retrieves various data stored in the bank's database and outputs answers corresponding to the questions asked.

[0034] Optionally, the retrieval enhancement generation system retrieves data using vector retrieval. For example, the system splits documents in a bank database into semantically complete paragraphs and / or sentences, then converts these paragraphs and / or sentences into multi-dimensional vectors. Upon receiving questions from users and / or business personnel, the system splits the questions into semantically complete paragraphs and / or sentences, and then converts the relevant paragraphs and / or sentences into question vectors. Since semantically similar words have similar positions in the vector space, the system compares the obtained question vectors with the multi-dimensional vectors in the bank database, identifies similar multi-dimensional vectors from the database, and outputs the answer to the question. Here, the multi-dimensional vectors are numbers that computers can understand. However, existing technologies using vector retrieval rely on complex semantic text searching. Poor semantic search performance directly affects the efficiency and accuracy of the retrieval results. Furthermore, splitting documents and converting them into fixed-dimensional vectors can lead to information loss, thus reducing retrieval accuracy.

[0035] Optionally, the retrieval enhancement generation system retrieves data by expanding queries. For example, after receiving the original question from a user and / or business personnel, the system first determines the keywords of the original question and searches the bank's database for initial results related to the keywords. These initial results include multiple relevant documents. Then, the system identifies the top k relevant documents (e.g., k is an integer between 10 and 50). Next, a weighted retrieval method is used to find the top r most frequent words from these k relevant documents (e.g., r is an integer between 20 and 30). Finally, these r most frequent words are added to the keywords of the original question, and the system queries again to output relevant documents as the answer to the original question. However, in existing technologies, if the accuracy of the relevant documents retrieved based on the keywords of the original question is low, the accuracy of the final output answer will be further reduced, resulting in low retrieval reliability.

[0036] Therefore, this application improves the accuracy and reliability of question data by reviewing keywords in user-submitted questions and updating question data with keywords that fail the review, thereby further enhancing retrieval precision and reliability. A dense model is used to extract feature vectors from the updated question data. The extracted feature vectors are then compared with the feature vectors of documents in the database to calculate dense similarity. A vector model is used to compare the dense similarity of each document to determine documents exceeding a similarity threshold as dense retrieval answers. Simultaneously, an extended model is used to determine initial answers based on the updated question data. These initial answers are then concatenated with the updated question data to generate extended question data. This extended question data is then compared with the feature vectors of documents in the database to determine relevant documents containing relevant feature vectors. Finally, a re-analysis is performed. The ranking model calculates the relevance values ​​of relevant documents, thereby determining the target document based on the magnitude of the relevance values. A retrieval model then searches for the target document to obtain sparse search answers. Dense and sparse search answers are combined to generate recall data. A fine-ranking model determines the target similarity of each document in the recall data. Based on the target similarity, the final target retrieval result is determined. The sparse search answers in the recall data address the problem of reduced retrieval accuracy due to information loss caused by vector transformation in complex semantic retrieval. The dense search answers in the recall data improve the retrieval accuracy when searching for keywords. Furthermore, by combining documents retrieved through different methods and rearranging their relevance values, the comprehensiveness of data retrieval and the accuracy of search results are further improved, presenting users with more accurate results and enhancing the user experience.

[0037] The data retrieval method provided in this application aims to solve the above-mentioned technical problems of the prior art.

[0038] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0039] like Figure 1As shown, the data retrieval method provided in this application is applied to the retrieval system 10 in a banking system. When a user 30 conducts business at the counter, if they raise a regulatory question related to that business, the counter service terminal 20 retrieves various data stored in the bank database 50 through the retrieval system and outputs the answer corresponding to the question, displaying it on the counter service terminal. When a user conducts business through an online call with bank customer service via user terminal 40, the retrieval system retrieves relevant answers from the bank database based on the questions asked during the call and displays them on the counter service terminal interface of the bank customer service representative, facilitating timely answers to the user's questions. When a user logs into the bank's APP through user terminal 40, the retrieval system retrieves relevant regulations from the bank database based on the user's clicked business and displays them on the recommendation page of the bank's APP for the user to view promptly, thereby meeting the user's personalized needs and improving the overall retrieval effect. The retrieval system includes a dense model, a vector model, an expanded model, a rearrangement model, a retrieval model, and a fine-ranking model. The vector model is used to generate dense retrieval answers and output them to the fine-ranking model, while the retrieval model is used to generate sparse retrieval answers and output them to the fine-ranking model.

[0040] Figure 2 A flowchart of a data retrieval method provided in this application embodiment is included, the data retrieval method comprising the following steps:

[0041] S201. Obtain problem data and determine the business scenario, and determine the target document set based on the business scenario.

[0042] More specifically, the retrieval system retrieves user-submitted question data, identifies keywords within the question data, and determines the business scenario based on these keywords. Then, based on the business scenario, it retrieves the corresponding target document set from the bank's database. This target document set includes documents related to the business scenario.

[0043] Optionally, each document can be associated with relevant business scenarios and stored in the bank's database.

[0044] Optionally, after determining the keywords of the problem data, the relevant business scenarios are determined based on each keyword, and the documents corresponding to each relevant business scenario are determined from the bank database to obtain the target document set.

[0045] Optionally, the target document set can be input into the dense model and the extended model, respectively.

[0046] S202. Determine the density similarity between each document in the target document set and the question data using a density model, and determine the documents whose density similarity exceeds the density similarity threshold using a vector model to obtain the density retrieval answer.

[0047] More specifically, the feature vectors of each document in the target document set are determined, as well as the feature vector of the question data. The feature vector of the question data is then multiplied by the feature vectors of each document to calculate the similarity between the feature vectors of the question data and those of each document. When the number of documents with similarity exceeding a threshold is not less than a preset number, documents exceeding the dense similarity threshold are identified based on the similarity of each document, and these documents are designated as dense search answers. For cases where all dense similarities are high, documents with dense similarities exceeding the threshold are directly selected to determine the dense search answer. This ensures document relevance while avoiding complex document processing steps, further improving search efficiency.

[0048] In one possible embodiment, when the user's question data is "conditions for banks to process credit loans," the retrieval system preprocesses the question data and determines that the business scenario is a credit business scenario. It then retrieves documents corresponding to the credit business scenario from the bank's database, obtaining a target document set. If the target document set contains 200 documents, the system loads the information from these 200 documents using a dense model, converting each document into a corresponding feature vector, which is then input into the vector model. Simultaneously, the question data regarding the conditions for banks to process credit loans is also loaded, and these conditions are converted into corresponding feature vectors and input into the vector model. The vector model calculates the inner product between the feature vectors of the conditions for banks to process credit loans and the feature vectors of the 200 documents. Based on the inner product calculation results, the dense similarity of each document is determined. The dense similarity of each document is compared with a dense similarity threshold to determine the number of documents whose dense similarity exceeds the threshold. If this number is not less than a preset number, the documents with dense similarity exceeding the threshold are identified as dense retrieval answers.

[0049] Optionally, when the number of documents with similarity exceeding a threshold is less than a preset number, the dense similarity of each document in the target document set is sorted to obtain a dense similarity ranking result. The dense similarity ranking result is the target document set arranged from high to low dense similarity. From the dense similarity ranking result, a preset number of documents with similarity are determined from high to low, and these documents are identified as dense search answers. For cases where the dense similarity is generally low, sorting by dense similarity ensures that a preset number of documents capable of solving the user's problem are selected and identified as dense search answers, increasing the probability of fully resolving the user's problem, avoiding the omission of important data, and thus further improving search quality. Different methods are adopted for different situations to improve data retrieval efficiency and further improve business processing efficiency.

[0050] In one possible embodiment, in a credit business scenario, if the number of documents in the target document set corresponding to the credit business scenario with a dense similarity exceeding the dense similarity threshold is less than a preset number, it is determined that the relevance of the target document set is low. At this time, the 200 documents in the target document set are sorted from high to low according to their dense similarity, and the dense similarity ranking result is obtained after the sorting is completed. When the preset similarity number is determined to be 100, the top 100 documents in the dense similarity ranking result are selected as the dense search answer.

[0051] Optionally, the density similarity of each document can be obtained by calculating the cosine similarity between the feature vector of the problem data and the feature vector of each document. The specific calculation process is a conventional technique for those skilled in the art, and will not be described in detail in the embodiments of this application.

[0052] S203. Generate extended question data through an extended model, and query relevant documents corresponding to the extended question data based on the target document set; determine the target document through a rearrangement model; and perform data retrieval based on the target document through a retrieval model to obtain sparse retrieval answers.

[0053] More specifically, the initial answer to the question data is determined by extending the model, extended question data is generated based on the initial answer, and relevant documents corresponding to the extended question data are queried based on the target document set.

[0054] Optionally, by extending the model, feature vectors with a similarity greater than the extended similarity threshold are determined from the feature vectors corresponding to each document in the target document set, based on the feature vectors of the question data. This yields the target feature vector, and the relevant data of the target feature vector is used as the initial answer. The extended similarity threshold is less than the dense similarity threshold. The initial answer includes answer content, paragraphs, and titles, where paragraphs are those containing the answer content, and titles are the corresponding titles. Reducing the similarity threshold increases the number of relevant documents in the initial answer, preventing the omission of important documents that could affect search accuracy and reduce user experience.

[0055] Optionally, an extended model can be used to generate extended question data based on answer content, paragraphs, titles, and question data, and keywords for the extended question data can be determined. Data related to the keywords corresponding to the extended question data can be identified in each document of the target document set. Documents containing this related data are then designated as relevant documents. By adding relevant terms to the question data, the search scope is expanded, avoiding the omission of important documents and preventing information loss caused by converting documents in the target document set into fixed-dimensional vectors, thus further improving search performance.

[0056] In one possible embodiment, based on a credit business scenario, the extended model loads the problem data and each document of the target document set, and converts the problem data and each document of the target document set into corresponding feature vectors. The extended similarity of each document is obtained by calculating the inner product of the feature vector of the problem data with the feature vector of each document in the target document set. Feature vectors with extended similarity greater than the extended similarity threshold are selected as target feature vectors. The relevant documents and / or data of the target feature vectors are used as the initial answer. This initial answer includes the answer content "Credit rating of A+ (inclusive) or above, continuous profitability for the past three years, good credit standing, no major adverse records, and other conditions required by the lending bank," the paragraph "the entire paragraph containing the above answer content," and the title "ICBC Regulation No. 1 Notice on Issuing the 'Administrative Measures for Credit Loans to Corporate Customers (2023 Edition),' Chapter II—Application Conditions." In this embodiment, the paragraph portion of the initial answer is not described in detail.

[0057] In one possible implementation, the answer content "Credit rating of A+ or above, continuous profitability for the past three years, good credit standing, no major adverse records, and other conditions required by the lending bank," the paragraph "the entire paragraph containing the above answer content," the title "ICBC Regulation No. 1 Notice on Issuing the 'Administrative Measures for Corporate Customer Credit Loans (2023 Edition),' Chapter II—Processing Conditions" is concatenated with the question data "Conditions for Banks to Process Credit Loans," and extended question data is generated. Relevant documents are then determined based on the extended question data.

[0058] Optionally, after generating relevant documents, the extended model inputs these documents into the reordering model. The reordering model determines the relevance value of each relevant document and sorts them according to their relevance values. Based on the relevance value sorting results, the target document is determined. Then, the retrieval model performs data retrieval based on the target document to obtain a sparse retrieval answer, which includes the document.

[0059] S204. Generate recall data based on dense and sparse search answers; determine the target search results corresponding to the recall data through a fine-ranking model.

[0060] More specifically, recall data is generated based on dense and sparse search answers; the target similarity between each document in the recall data and the question data is determined through a fine ranking model, and the documents in the recall data are ranked based on the target similarity. The target search results are then determined based on the ranking results.

[0061] Optionally, after the dense and sparse search answers are generated, the retrieval system concatenates the dense and sparse search answers to generate recall data. The recall data is then input into the fine ranking model, which determines the feature vector of the extended question data and converts the recall data into feature vectors. Based on the feature vectors of the extended question data and the feature vectors of each document in the recall data, the target similarity of each document in the recall data is calculated. Finally, the documents in the recall data are sorted in descending order of target similarity.

[0062] In one possible embodiment, the top three documents in the sorting results are selected as the target search results and the corresponding text content is displayed to the teller's business terminal.

[0063] Optionally, after the retrieval system inputs the recall data into the fine ranking model, it determines the keywords of the recall data through the fine ranking model, searches for words in the document information of the recall data that are consistent with or match the keywords of the extended question data, and determines the document containing the consistent or matching words as the target retrieval result.

[0064] In the data retrieval method provided in this application embodiment, a business scenario is determined based on the problem data, thereby determining the target document set corresponding to the business scenario. Then, based on vector features, the dense similarity of each document is determined using a dense model and a vector model, and documents with high dense similarity are selected as dense retrieval answers. At the same time, the problem data is expanded using an extended model to obtain extended problem data, and then the relevant documents corresponding to the extended problem data are determined again. After sorting the relevant documents by relevance value, the target document is determined, thereby determining the content and / or paragraphs related to the target document. Finally, the two retrieval answers are merged and the documents are retrieved again. After sorting the target similarity of each, the target retrieval result is determined, thereby improving the reliability and accuracy of the retrieval results, further improving business processing efficiency and user experience.

[0065] Optionally, the problem data includes voice information, which is retrieved by the retrieval system in step S201. Figure 3 A flowchart of a data retrieval method provided in this application embodiment is included, the data retrieval method comprising the following steps:

[0066] S301. Establish data maps.

[0067] More specifically, the retrieval system establishes a data graph before processing the problem data. The data graph includes various business scenarios and the words associated with each business scenario.

[0068] For example, terms related to loan business scenarios include, but are not limited to, loan, credit rating, credit status, bad records, repayment, interest, early settlement, and penalty.

[0069] S302. Obtain keywords from voice information.

[0070] More specifically, the retrieval system obtains the user's voice information, converts the voice information into text information, and identifies keywords in the text information.

[0071] Optionally, the retrieval system obtains question data from the user's voice information, converts the voice information into corresponding text information using speech-to-text technology, and identifies the keywords involved in the text information. The speech-to-text technology used in this embodiment is a well-known conversion technology and will not be described in detail here.

[0072] In one possible embodiment, when a user conducts credit business at a counter and asks the teller, "Will I be charged a penalty for early repayment of my loan?", the teller's terminal receives the user's verbal question and sends it to a retrieval system. This retrieval system loads the user's voice information, converts it into text, and identifies keywords in the text including "loan, early repayment, penalty".

[0073] S303. Review the keywords based on the data graph to determine if there are any invalid keywords.

[0074] More specifically, the system queries the established data graph for words that match the identified keywords, and determines whether there are invalid keywords in the speech information based on the query results.

[0075] In one possible implementation, when a user asks the teller, "If I want to settle my account early, will I need to pay any extra fees?", since the user's voice information is conversational question data, the retrieval system loads the voice information and converts it into text information. The keywords identified from the text information are "early settlement, extra, money". The system then searches for words that match the above keywords in the data graph and determines that "early settlement" is a word associated with the loan business scenario, while "extra, money" has no business scenario associated with it. Therefore, it is determined that there are invalid keywords in the voice information.

[0076] S304. Update invalid keywords and update the problem data based on the updated keywords.

[0077] More specifically, when invalid keywords are identified, the review process is deemed unsuccessful. Based on the unsuccessful review, valid keywords are identified, and the corresponding business scenarios for these valid keywords are determined using data visualization. The invalid keywords are then updated based on these business scenarios, and the issue data is updated accordingly.

[0078] Optionally, when the review fails, the business scenario is determined based on the valid keywords, and words similar to the invalid keywords are determined based on the words associated with the business scenario in the data graph. The invalid keywords are then updated, and the text information is updated based on the updated invalid keywords.

[0079] In one possible embodiment, the retrieval system determines that "early settlement" is a valid keyword associated with the loan business scenario, while "extra money" has no business scenario associated with it and is therefore an invalid keyword. The system then identifies the words associated with the loan business scenario in the data image, determining that "extra money" is similar to "interest" and "penalty" in the data graph. The system then feeds back the words "interest" and "penalty" to the teller's terminal, allowing the teller to determine the actual keyword as "penalty" and return it to the retrieval system. Upon receiving the actual keyword, the retrieval system updates the invalid keyword "extra money" to "penalty," thus updating the text information to "Does early settlement of a loan require a penalty?" based on the valid keyword "early settlement" and the updated "penalty".

[0080] Optionally, if the review fails and all keywords in the text information are determined to be invalid, then similar words in the graph data are identified and sent to the teller's terminal for confirmation. Based on the confirmation results, the invalid keywords and text information are updated, and the business scenario is determined based on the updated keywords. By updating the conversational question data, the accuracy of the questions is improved, further enhancing the accuracy of the subsequently determined feature vectors, thereby improving the search query effect.

[0081] S305. Determine the business scenario based on keywords.

[0082] More specifically, the review is approved when it is determined that there are no invalid keywords, and the corresponding business scenario is determined based on the keywords according to the approved result.

[0083] In the data retrieval method provided in this application embodiment, the keywords in the text information of the problem data are reviewed based on the data graphs under various business scenarios to avoid directly conducting subsequent retrieval steps based on invalid keywords, which would lead to a decrease in retrieval accuracy. Furthermore, by updating the text information of invalid keywords and problem data, the accuracy of the text information is improved, thereby enhancing the subsequent retrieval effect.

[0084] Optionally, after generating the relevant documents through the extended model in step S203, Figure 4 A flowchart of a data retrieval method provided in this application embodiment is included, the data retrieval method comprising the following steps:

[0085] S401. Determine the feature vectors corresponding to each relevant document and the extended question data through the rearrangement model, and calculate the correlation value between the feature vector corresponding to each relevant document and the feature vector of the extended question data.

[0086] For example, the feature vector of the extended question data is determined, and the feature vector corresponding to each relevant document is determined. The correlation coefficient between each relevant document and the feature vector corresponding to the extended question data is calculated, and the calculated correlation coefficient of each relevant document is used as the corresponding correlation value.

[0087] S402. Sort the relevant values ​​corresponding to each relevant document to obtain the sorted results of the relevant values.

[0088] More specifically, the relevance values ​​of each relevant document are sorted to obtain the relevance value sorting result, which is the list of relevant documents arranged from high to low relevance value;

[0089] For example, the relevant documents are sorted in descending order of their respective relevance values ​​to obtain the relevance value sorting results for each document.

[0090] S403. Determine a preset number of documents from the correlation value sorting results, and identify the preset number of documents as target documents.

[0091] More specifically, a preset number of documents are determined from the relevance value sorting results in descending order, and these documents are selected as the target documents.

[0092] For example, the document with the highest relevance value is determined, that is, the document ranked first in the relevance value sorting results is selected as the target document.

[0093] S404. Obtain the target document through the retrieval model, determine the characteristic words of the target document, determine the target words based on the characteristic words of the target document, and determine that the document containing the target words is the sparse retrieval answer.

[0094] More specifically, the retrieval model is used to obtain target documents and determine the feature words of the target documents. Based on the feature words of the target documents, target words are determined, the documents containing the target words are identified, and the documents containing the target words are determined to be sparse retrieval answers. Among them, target words are feature words in the target documents that appear more frequently than a frequency threshold, and these feature words are words related to the business scenario.

[0095] Optionally, keywords in this application are words that describe the subject and / or content of the document.

[0096] For example, the retrieval model identifies 200 feature words in the target document, calculates the frequency of each feature word across all target documents, and sorts each feature word by frequency. If 50 feature words exceed a frequency threshold, the document containing these 50 feature words is identified as the sparse retrieval answer. Further frequency filtering based on the target document yields sparse recall data, reducing the possibility of missing high-frequency content and further improving retrieval performance.

[0097] For example, after sorting each feature word according to the frequency of occurrence by the retrieval model, the feature words with the frequency ranking above the rank threshold are determined based on the number of results obtained. When the rank threshold is 100, the top 100 feature words are determined, and the document containing these 100 feature words is determined as the sparse retrieval answer.

[0098] In the data retrieval method provided in this application embodiment, the relevance value of each relevant document to the extended question data is calculated by a rearrangement model, and the relevant documents are sorted according to the relevance value. The frequency of occurrence of feature words in the target document is determined by a retrieval model, and the target words and the document containing the target words are selected based on the frequency of occurrence to determine the sparse retrieval answer, thereby improving the retrieval comprehensiveness of the sparse retrieval answer and further improving the retrieval accuracy.

[0099] Figure 5 This is a schematic diagram of the structure of a data retrieval device provided in an embodiment of this application, as shown below. Figure 5 As shown, the data retrieval device 500 includes:

[0100] The acquisition module is used to acquire problem data and determine the keywords of the problem data, determine the business scenario based on the keywords, and determine the target document set based on the business scenario. The target document set includes documents related to the business scenario.

[0101] The processing module is used to determine the density similarity between each document in the target document set and the question data using a density model; and to determine the documents whose density similarity exceeds the density similarity threshold using a vector model, thereby obtaining the density retrieval answer.

[0102] The processing module is used to determine the initial answer to the question data through an extended model, generate extended question data based on the initial answer, query relevant documents corresponding to the extended question data based on the target document set; determine the relevance value of each relevant document through a reordering model and sort the relevant documents according to the relevance value, determine the target document based on the relevance value sorting result; and perform data retrieval based on the target document through a retrieval model to obtain sparse retrieval answers, which include documents.

[0103] The processing module is used to generate recall data based on dense and sparse search answers; determine the target similarity between each document in the recall data and the extended question data through a fine ranking model; rank each document in the recall data based on the target similarity; and determine the target retrieval result based on the ranking result.

[0104] The processing module is used to determine the density similarity between each document in the target document set and the question data using a density model; it identifies documents with density similarity exceeding a density similarity threshold and obtains the density search answer, including:

[0105] Determine the feature vectors of each document in the target document set, and determine the feature vectors of the problem data;

[0106] The inner product of the feature vector of the problem data with the feature vector of each document is calculated to obtain the similarity between the feature vector of the problem data and the feature vector of each document.

[0107] When the number of documents with a density similarity exceeding the density similarity threshold is not less than a preset number, documents exceeding the density similarity threshold are determined based on the similarity of each document, and these documents are identified as dense search answers.

[0108] When the number of documents with a density similarity exceeding the density similarity threshold is less than a preset number, the processing module sorts the density similarity of each document in the target document set to obtain a density similarity sorting result. The density sorting result is the target document set arranged from high to low density similarity.

[0109] From the dense similarity ranking results, determine a preset number of documents with high similarity from low, and select these documents as the dense search answers.

[0110] The processing module, used to determine the initial answer to the question data through an extended model, includes:

[0111] By extending the model, feature vectors with greater than the extended similarity threshold are determined from the feature vectors corresponding to each document in the target document set based on the feature vectors of the problem data, and the target feature vector is obtained; the extended similarity threshold is less than the dense similarity threshold.

[0112] The relevant data of the target feature vector are determined as the initial answer; the initial answer includes the answer content, paragraphs, and titles, where the paragraphs are the paragraphs containing the answer content, and the titles are the titles corresponding to the paragraphs.

[0113] The processing module is used to generate extended question data based on the initial answer, and to query related documents corresponding to the extended question data based on the target document set, including:

[0114] The model generates extended question data based on answer content, paragraphs, titles, and question data, and identifies keywords for the extended question data.

[0115] In each document of the target document set, identify data related to the keywords corresponding to the extended question data; determine the documents containing the related data as relevant documents.

[0116] The processing module is used to determine the relevance values ​​of each relevant document through a reordering model, sort the relevant documents according to their relevance values, and determine the target document based on the relevance value sorting results, including:

[0117] The feature vectors corresponding to each relevant document and extended question data are determined by the rearrangement model;

[0118] Calculate the correlation value between the feature vector corresponding to each relevant document and the feature vector of the extended question data, and sort the correlation values ​​of each relevant document to obtain the correlation value sorting result. The correlation value sorting result is the relevant documents arranged from high to low correlation value.

[0119] From the relevance value sorting results, determine a preset number of documents in descending order of relevance value, and select these preset number of documents as target documents.

[0120] The processing module is used to perform data retrieval based on the target document using a retrieval model to obtain sparse search results, including:

[0121] The target document is obtained through a retrieval model, and the characteristic words of the target document are determined.

[0122] Target words are determined based on the feature words of the target document. Target words are feature words in the target document whose frequency exceeds a frequency threshold.

[0123] Identify the document containing the target term and determine that the document containing the target term is the sparse search answer.

[0124] The problem data includes voice information. The acquisition module is used to acquire the problem data and determine its keywords. Based on these keywords, the business scenario is determined, including:

[0125] Establish data graphs;

[0126] Acquire voice information, convert the voice information into text information, and identify keywords in the text information;

[0127] Keywords are reviewed based on data graphs, and approval is granted when no invalid keywords are found. Business scenarios are then determined based on the keywords.

[0128] When invalid keywords are identified and the review is deemed unsuccessful, the module is used to identify valid keywords and determine the corresponding business scenario based on the data graph.

[0129] Based on the business scenario, invalid keywords are updated, and the problem data is updated according to the updated keywords.

[0130] like Figure 6 As shown, this application embodiment provides an electronic device 600, which includes a processor 601 and a memory 602 communicatively connected to the processor.

[0131] The memory 602 is used to store computer instructions that can be executed by the processor;

[0132] The processor 601 implements the various steps of the method in the above embodiments when executing computer instructions. For details, please refer to the relevant descriptions in the foregoing method embodiments.

[0133] Optionally, the processor 601 can be either standalone or integrated with the memory 602. When the processor 601 is set up independently, the electronic device also includes a bus for connecting the processor 601 and the memory 602.

[0134] This application also provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the steps of the methods described above.

[0135] This application also provides a computer program product, including computer instructions that, when executed by a processor, implement the various steps in the methods described above.

[0136] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this application.

[0137] It should be further noted that although the steps in the flowchart are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed 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 performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0138] It should be understood that the above-described device embodiments are merely illustrative, and the device of this application can also be implemented in other ways. For example, the division of units / modules in the above embodiments is only a logical functional division, and there may be other division methods in actual implementation. For example, multiple units, modules, or components may be combined, or integrated into another system, or some features may be ignored or not executed.

[0139] Furthermore, unless otherwise specified, the functional units / modules in the various embodiments of this application can be integrated into one unit / module, or each unit / module can exist physically separately, or two or more units / modules can be integrated together. The integrated units / modules described above can be implemented in hardware or as software program modules.

[0140] When integrated units / modules are implemented in hardware, the hardware can be digital circuits, analog circuits, etc. The physical implementation of the hardware structure includes, but is not limited to, transistors, memristors, etc. Unless otherwise specified, the processor can be any suitable hardware processor, such as a CPU, GPU, FPGA, DSP, and ASIC, etc. Unless otherwise specified, the storage unit can be any suitable magnetic or magneto-optical storage medium, such as Resistive Random Access Memory (RRAM), Dynamic Random Access Memory (DRAM), Static Random Access Memory (SRAM), Enhanced Dynamic Random Access Memory (EDRAM), High-Bandwidth Memory (HBM), Hybrid Memory Cube (HMC), etc.

[0141] If the integrated unit / module is implemented as a software program module and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0142] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification.

[0143] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0144] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A data retrieval method, characterized in that, The method includes: Obtain problem data and determine the keywords of the problem data, determine the business scenario based on the keywords, and determine the target document set based on the business scenario, wherein the target document set includes documents related to the business scenario; The density similarity between each document in the target document set and the question data is determined using a density model; documents with density similarity exceeding the density similarity threshold are identified using a vector model to obtain the density retrieval answer. An initial answer to the question data is determined by an extended model; extended question data is generated based on the initial answer; relevant documents corresponding to the extended question data are queried based on the target document set; the relevance value of each relevant document is determined by a rearrangement model and the relevant documents are sorted by relevance value; the target document is determined based on the relevance value sorting result; and a retrieval model is used to perform data retrieval based on the target document to obtain a sparse retrieval answer, which includes documents. Recall data is generated based on the dense search answers and the sparse search answers; the target similarity between each document in the recall data and the extended question data is determined by a fine ranking model, and the documents in the recall data are ranked based on the target similarity; the target retrieval result is determined based on the ranking result. The process of determining the initial answer to the question data through an extended model includes: The target feature vector is obtained by determining the feature vector with a greater than the extended similarity threshold in each feature vector corresponding to each document in the target document set based on the feature vector of the problem data by extending the model; the extended similarity threshold is less than the dense similarity threshold. The relevant data of the target feature vector are determined as the initial answer; the initial answer includes answer content, paragraph, and title, wherein the paragraph is the paragraph that includes the answer content, and the title is the title corresponding to the paragraph.

2. The method according to claim 1, characterized in that, The density similarity between each document in the target document set and the question data is determined using a density model; documents with density similarity exceeding a density similarity threshold are identified to obtain dense search answers, including: Determine the feature vectors of each document in the target document set, and determine the feature vectors of the problem data; The similarity between the feature vector of the problem data and the feature vector of each document is calculated by performing the inner product of the feature vectors of the problem data and the feature vectors of each document. When the number of documents with a density similarity exceeding the density similarity threshold is not less than a preset number, the documents exceeding the density similarity threshold are determined based on the similarity corresponding to each document, and the documents exceeding the density similarity threshold are determined as the density search answer.

3. The method according to claim 2, characterized in that, When the number of documents with a density similarity exceeding the density similarity threshold is less than a preset number, including: The dense similarity of each document in the target document set is sorted to obtain a dense similarity sorting result, which is the target document set arranged from high to low dense similarity. From the dense similarity ranking results, a preset number of documents with similarity are determined from high to low, and these preset number of documents are determined as the dense search answer.

4. The method according to claim 1, characterized in that, Based on the initial answer, extended question data is generated. Then, based on the target document set, relevant documents corresponding to the extended question data are queried, including: The extended model generates extended question data based on the answer content, paragraphs, titles, and question data, and determines the keywords of the extended question data; In each document of the target document set, identify data related to the keywords corresponding to the extended question data; determine the document containing the related data as the relevant document.

5. The method according to claim 4, characterized in that, The relevance values ​​of each relevant document are determined using a reordering model, and these documents are then sorted by relevance value. Based on this sorting, the target documents are identified, including: The feature vectors corresponding to each relevant document and extended question data are determined by the rearrangement model; Calculate the correlation value between the feature vector corresponding to each relevant document and the feature vector of the extended question data, and sort the correlation values ​​corresponding to each relevant document to obtain the correlation value sorting result, which is the relevant documents arranged from high to low correlation value; From the sorting results of the relevance values, a preset number of documents are determined in descending order of relevance value, and these preset number of documents are identified as the target documents.

6. The method according to claim 1 or 5, characterized in that, By performing data retrieval based on the target document using a retrieval model, sparse retrieval answers are obtained, including: The target document is obtained through a retrieval model, and the characteristic words of the target document are determined. Target words are determined based on the feature words of the target document, wherein the target words are feature words in the target document whose frequency exceeds a frequency threshold; The document containing the target word is identified, and the document containing the target word is determined as the sparse search answer.

7. The method according to claim 1, characterized in that, The problem data includes voice information. The process involves acquiring the problem data, identifying keywords from the problem data, and determining the business scenario based on the keywords, including: Establish data graphs; Acquire voice information, convert the voice information into text information, and identify keywords in the text information; The keywords are reviewed based on the data graph, and the review is approved when no invalid keywords are found. The business scenario is then determined based on the keywords.

8. The method according to claim 7, characterized in that, When invalid keywords are identified and the review is deemed unsuccessful, the following applies: Identify effective keywords and, based on the data graph, determine the business scenarios corresponding to the effective keywords; Based on the aforementioned business scenario, invalid keywords are updated, and the problem data is updated accordingly.

9. A data retrieval device, characterized in that, include: The acquisition module is used to acquire problem data and determine the keywords of the problem data, determine the business scenario based on the keywords, and determine the target document set based on the business scenario. The target document set includes documents related to the business scenario. The processing module is used to determine the density similarity between each document in the target document set and the question data using a density model; and to determine the documents whose density similarity exceeds the density similarity threshold using a vector model, thereby obtaining the density retrieval answer. The processing module is used to determine the initial answer to the question data through an extended model, generate extended question data based on the initial answer, and query relevant documents corresponding to the extended question data based on the target document set; The relevance values ​​of each relevant document are determined by a reordering model, and the relevant documents are sorted according to their relevance values. The target document is determined based on the relevance value sorting results. The retrieval model performs data retrieval based on the target document to obtain a sparse retrieval answer, which includes the document. The processing module is used to generate recall data based on the dense search answers and the sparse search answers; determine the target similarity between each document in the recall data and the extended question data through a fine ranking model; sort each document in the recall data based on the target similarity; and determine the target retrieval result based on the sorting result. The process of determining the initial answer to the question data through an extended model includes: The target feature vector is obtained by determining the feature vector with a greater than the extended similarity threshold in each feature vector corresponding to each document in the target document set based on the feature vector of the problem data by extending the model; the extended similarity threshold is less than the dense similarity threshold. The relevant data of the target feature vector are determined as the initial answer; the initial answer includes answer content, paragraph, and title, wherein the paragraph is the paragraph that includes the answer content, and the title is the title corresponding to the paragraph.

10. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1 to 8.

12. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1 to 8.

Citation Information

Patent Citations

  • Multi-path recall model training method, multi-path recall method, multi-path recall device and electronic equipment

    CN115374362A

  • Document question and answer method, device and system, electronic equipment and storage medium

    CN115934905A