Method and terminal for improving RAG retrieval generation efficiency and accuracy

By dynamically adjusting the retrieval algorithm and adopting a hybrid retrieval mode, combined with multi-level caching and document quality adjustment model parameters, the problems of low retrieval efficiency and insufficient accuracy in RAG retrieval technology are solved, and a balance between efficiency and accuracy in RAG retrieval is achieved. and high quality of query results.

CN118626513AInactive Publication Date: 2024-09-10FUJIAN FUNO MOBILE COMM TECH CO LTD

Patent Information

Application Number
CN202411117031.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing RAG retrieval technology has low retrieval efficiency and insufficient accuracy when processing large amounts of data. It cannot achieve a balance between efficiency and accuracy. Moreover, the retrieval algorithm for query statements is single and cannot adapt to different types of query needs.

Method used

Dynamically adjust the retrieval algorithm by judging the complexity of the query statement and the data volume of the target data set, select the optimal retrieval strategy, and use a hybrid retrieval mode to integrate multiple retrieval algorithms, and adjust the pre-training model parameters based on multi-level caching and document quality. Improve retrieval efficiency and accuracy.

Benefits of technology

It improves retrieval efficiency while ensuring retrieval accuracy, adapts to different types of query needs, reduces unnecessary computing overhead, and improves the accuracy and relevance of query results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626513A
    Figure CN118626513A
Patent Text Reader

Abstract

The invention relates to a method and terminal for improving RAG retrieval generation efficiency and accuracy. The method comprises the steps that a query statement is input; judging the complexity of the query statement and the data volume of the target data set based on the query statement; if the complexity of the query statement and the data volume of the target data set are both lower than preset values, selecting a first retrieval algorithm; otherwise, a second retrieval algorithm is selected, the retrieval efficiency of the second retrieval algorithm is lower than that of the first retrieval algorithm, and the precision of the second retrieval algorithm is higher than that of the first retrieval algorithm; the pre-training model outputs a query result matched with the query statement based on a mixed retrieval mode and the determined retrieval algorithm, and the mixed retrieval mode integrates multiple different retrieval algorithms; and adjusting parameters of the pre-training model according to the document quality of the query result. According to the method, the retrieval algorithm can be dynamically adjusted according to the complexity of the query statement and the data volume of the target data set, the advantages of various retrieval algorithms are integrated, and the retrieval effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of pre-training models, and in particular to a method and a terminal for improving RAG retrieval generation efficiency and accuracy. Background Art

[0002] With the rapid development of artificial intelligence (AI) technology, especially the widespread application of large-scale pre-trained models (such as GPT-3, BERT, etc.), the field of natural language processing (NLP) has made significant progress. These large models are able to generate highly realistic natural language text by training on massive amounts of data. However, the knowledge scope of these models is limited by the time and content of the training data and cannot be dynamically updated and expanded. This limitation leads to the fact that the performance of large models may not be satisfactory when processing the latest information and specific domain knowledge.

[0003] To solve the above problems, the Retrieval-Augmented Generation (RAG) technology came into being. RAG technology combines information retrieval and text generation, combining the latest retrieved information with the output of the generation model, improving the accuracy and real-time performance of text generation. However, in practical applications, RAG technology still faces some challenges in retrieval efficiency and accuracy: ① Low retrieval efficiency: As the amount of data increases, the traditional retrieval method may not be able to meet the actual application requirements in terms of response time. When the amount of data is very large, the retrieval process may take a long time, affecting the real-time performance of the system.

[0004] ② Insufficient retrieval accuracy: The generation model depends on the quality of the retrieved documents. Inaccurate retrieval will directly affect the final generated results. If the retrieved documents are less relevant to the query, the generated response will also lack accuracy and practicality.

[0005] In view of the above problems, the existing technical solutions mainly focus on the following aspects: ① Data cleaning: Clean and preprocess the data to remove noise data and improve the accuracy of retrieval and generation. Data cleaning can significantly improve the effect of the model, but the processing process is time-consuming and requires a lot of manual intervention.

[0006] ② Prompt word optimization: By optimizing the query and prompt words, the relevance and accuracy of the retrieval and generation results can be improved. Prompt word optimization can help the generation model better understand and process user queries, but it relies on a deep understanding of the specific application scenario. Therefore, its effect of improving accuracy is not stable.

[0007] It can be seen that the RAG search in the prior art still has the problems of low generation efficiency and low accuracy. Moreover, the current RAG search has a relatively simple search algorithm for query statements. Regardless of the query statement, the same complex or simple search algorithm is used, which cannot achieve a balance between search efficiency and search accuracy. Summary of the invention

[0008] 1. Technical issues to be resolved In order to solve the above problems in the prior art, the present invention provides a method and a terminal for improving the generation efficiency and accuracy of RAG retrieval, which can enhance the generation efficiency and accuracy of RAG retrieval.

[0009] (II) Technical solution In order to achieve the above object, the technical solution adopted by the present invention is: In one aspect, the present invention provides a method for improving the efficiency and accuracy of RAG search generation, comprising: S1. Input query statement; S2. determining the complexity of the query statement and the amount of data in the target data set based on the query statement; If the complexity of the query statement and the amount of data in the target data set are both lower than the preset values, the first retrieval algorithm is selected; Otherwise, a second search algorithm is selected, wherein the search efficiency of the second search algorithm is lower than that of the first search algorithm, but the accuracy is higher than that of the first search algorithm; S3, the pre-trained model outputs a query result adapted to the query statement based on a hybrid retrieval mode and a determined retrieval algorithm, wherein the hybrid retrieval mode integrates a plurality of different retrieval algorithms; S4. Adjust the parameters of the pre-trained model according to the document quality of the query result.

[0010] The beneficial effects of the present invention are: ① The present invention can judge the complexity of the query statement and the data volume of the target data set according to the query statement, dynamically adjust the retrieval algorithm, and select the optimal retrieval strategy, thereby improving the retrieval efficiency while ensuring the retrieval accuracy and avoiding unnecessary computing overhead.

[0011] ② The hybrid search mode of the present invention can integrate a variety of different search algorithms, integrate the advantages of a variety of search algorithms, and improve the search effect. The hybrid search mode can improve the search accuracy while ensuring the search efficiency and adapt to different types of query requirements.

[0012] ③ The present invention can intelligently adjust the parameters of the pre-trained model in combination with the document quality of the retrieval results, so that the pre-trained model can better understand and process user queries and improve the accuracy and relevance of the query results.

[0013] Preferably, the S1 includes: Input a query statement and determine whether there is a query result corresponding to the query statement in the multi-level cache; If yes, directly output the query result from the multi-level cache, and end the query operation; If not, execute S2.

[0014] From the above description, it can be seen that by introducing a multi-level cache mechanism, when there are query results corresponding to the query statement in the multi-level cache, they can be directly called, which reduces repeated calculations and improves the query response speed.

[0015] Preferably, after S3, the step further includes: The multi-level cache is updated based on the query result output by the pre-trained model.

[0016] From the above description, it can be seen that the multi-level cache can be updated based on the query results output by the pre-trained model, which can reduce repeated calculations for repeated query statements.

[0017] Preferably, after S3, the step further includes: The cache strategy of the multi-level cache is dynamically adjusted according to the query frequency and data update frequency of the multi-level cache.

[0018] From the above description, it can be seen that the cache strategy of the multi-level cache can be dynamically adjusted according to the query frequency and data update frequency of the multi-level cache, thereby improving the query response speed and resource utilization.

[0019] Preferably, the algorithm integrated by the hybrid retrieval mode includes a Boolean logic retrieval algorithm and a vector retrieval algorithm.

[0020] From the above description, we can see that the integration of Boolean logic retrieval algorithm and vector retrieval algorithm can improve retrieval accuracy, enhance retrieval flexibility, optimize retrieval efficiency, enhance interpretability, and adapt to different information retrieval scenarios. This combination can give full play to the advantages of the two algorithms and improve the overall performance and effect of the information retrieval system.

[0021] On the other hand, the technical solution adopted by the present invention is: a terminal for improving the efficiency and accuracy of RAG retrieval generation, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: S1. Input query statement; S2. determining the complexity of the query statement and the amount of data in the target data set based on the query statement; If the complexity of the query statement and the amount of data in the target data set are both lower than the preset values, the first retrieval algorithm is selected; Otherwise, a second search algorithm is selected, wherein the search efficiency of the second search algorithm is lower than that of the first search algorithm, but the accuracy is higher than that of the first search algorithm; S3, the pre-trained model outputs a query result adapted to the query statement based on a hybrid retrieval mode and a determined retrieval algorithm, wherein the hybrid retrieval mode integrates a plurality of different retrieval algorithms; S4. Adjust the parameters of the pre-trained model according to the document quality of the query result.

[0022] The beneficial effects of the present invention are: ① The present invention can judge the complexity of the query statement and the data volume of the target data set according to the query statement, dynamically adjust the retrieval algorithm, and select the optimal retrieval strategy, thereby improving the retrieval efficiency while ensuring the retrieval accuracy and avoiding unnecessary computing overhead.

[0023] ② The hybrid search mode of the present invention can integrate a variety of different search algorithms, integrate the advantages of a variety of search algorithms, and improve the search effect. The hybrid search mode can improve the search accuracy while ensuring the search efficiency and adapt to different types of query requirements.

[0024] ③ The present invention can intelligently adjust the parameters of the pre-trained model in combination with the document quality of the retrieval results, so that the pre-trained model can better understand and process user queries and improve the accuracy and relevance of the query results.

[0025] Preferably, the S1 includes: Input a query statement and determine whether there is a query result corresponding to the query statement in the multi-level cache; If yes, directly output the query result from the multi-level cache, and end the query operation; If not, execute S2.

[0026] From the above description, it can be seen that by introducing a multi-level cache mechanism, when there are query results corresponding to the query statement in the multi-level cache, they can be directly called, which reduces repeated calculations and improves the query response speed.

[0027] Preferably, after S3, the step further includes: The multi-level cache is updated based on the query result output by the pre-trained model.

[0028] From the above description, it can be seen that the multi-level cache can be updated based on the query results output by the pre-trained model, which can reduce repeated calculations for repeated query statements.

[0029] Preferably, after S3, the step further includes: The cache strategy of the multi-level cache is dynamically adjusted according to the query frequency and data update frequency of the multi-level cache.

[0030] From the above description, it can be seen that the cache strategy of the multi-level cache can be dynamically adjusted according to the query frequency and data update frequency of the multi-level cache, thereby improving the query response speed and resource utilization.

[0031] Preferably, the algorithm integrated by the hybrid retrieval mode includes a Boolean logic retrieval algorithm and a vector retrieval algorithm.

[0032] From the above description, we can see that the integration of Boolean logic retrieval algorithm and vector retrieval algorithm can improve retrieval accuracy, enhance retrieval flexibility, optimize retrieval efficiency, enhance interpretability, and adapt to different information retrieval scenarios. This combination can give full play to the advantages of the two algorithms and improve the overall performance and effect of the information retrieval system. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A flow chart of a method for improving RAG retrieval generation efficiency and accuracy of the present invention; Figure 2 A schematic diagram of the structure of a terminal for improving RAG retrieval generation efficiency and accuracy according to the present invention; Description of Reference Numerals 1. A terminal for improving the efficiency and accuracy of RAG retrieval generation; 2. A memory; 3. A processor. DETAILED DESCRIPTION

[0034] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation modes in conjunction with the accompanying drawings.

[0035] Embodiment 1 Please refer to Figure 1 As shown, a method for improving the efficiency and accuracy of RAG retrieval generation includes: S1. Input a query statement and determine whether there is a query result corresponding to the query statement in the multi-level cache; If yes, directly output the query result from the multi-level cache, and end the query operation; If not, execute S2; That is, in this embodiment, the system is set up with multiple levels of cache, such as a first-level cache and a second-level cache. The query results of this query statement may have been stored in different levels of cache. At this time, you can directly take it out from the multi-level cache. If the query results are not cached, subsequent retrieval steps must be performed.

[0036] S2. determining the complexity of the query statement and the amount of data in the target data set based on the query statement; If the complexity of the query statement and the amount of data in the target data set are both lower than the preset values, the first search algorithm is selected, such as TF-IDF (term frequency-inverse document frequency search algorithm) or BM25 (Best Matching 25). Otherwise, select a second retrieval algorithm such as DPR-Dense Passage Retrieval or ColBERT (Contextualized Late Interaction over BERT), which has a lower retrieval efficiency than the first retrieval algorithm but a higher accuracy than the first retrieval algorithm; The principle explanation code of the above S2 algorithm is briefly as follows (for brief explanation only, the source code is different, and the content following "#" in the code below indicates a comment): #Dynamically adjust the retrieval algorithm according to the complexity of the query statement and the amount of data in the target data set to select the optimal retrieval strategy #query (str): user's query string, data_size (int): the data size of the target data set; def dynamic_adjust_retrieval(query, data_size): if is_simple_query(query) and data_size <THRESHOLD: return fast_but_less_accurate_retrieval(query) else: return precise_but_more_complex_retrieval(query) #Auxiliary function to determine whether the query statement complexity is simple def is_simple_query(query): return len(query) <SIMPLE_QUERY_LENGTH #Fast but less accurate retrieval algorithm (#such as TF-IDF or BM25) def fast_but_less_accurate_retrieval(query): results = basic_retrieval_algorithm(query) return results #Precise but computationally complex retrieval algorithms (#such as DPR or ColBERT) def precise_but_more_complex_retrieval(query): results = advanced_retrieval_algorithm(query) return results It can be seen from the above brief code that the def is_simple_query method is used to determine whether the complexity of the query statement query(str) is simple (i.e., it is determined by the length of the query statement), and the data volume of the target data set is determined by obtaining the size of data_size (int). Therefore, the adaptive retrieval algorithm can be adjusted according to the complexity of the query statement and the data volume of the target data set. For example, when the query statement is relatively simple and the data volume is small, a fast but low-precision retrieval algorithm is selected. For the current retrieval, its accuracy is sufficient to meet the requirements and meet its efficiency requirements. On the contrary, when the query statement is relatively complex or the data volume is large, an accurate but computationally complex retrieval algorithm is selected to meet its accuracy requirements. In the prior art, the retrieval algorithms are fixed and unchanged. If a fast but low-precision retrieval algorithm is uniformly used, the accuracy requirements cannot be met when facing complex queries. If an accurate but computationally complex retrieval algorithm is uniformly used, when facing simple queries, although the accuracy is guaranteed, the retrieval efficiency is reduced.

[0037] S3. The pre-trained model outputs query results that are adapted to the query statement based on a hybrid retrieval mode and a determined retrieval algorithm. The hybrid retrieval mode is to combine the advantages of multiple algorithms to avoid limitations. For example, after integrating the Boolean retrieval algorithm and the vector retrieval algorithm, it can be suitable for both exact matching and structured queries, and can also handle semantic similarity and fuzzy matching well. The retrieval algorithm determined in step S2 selects an adapted retrieval algorithm based on the complexity of the query statement and the amount of data in the target data set. The three algorithms have different functions, so they can work together to achieve a good coordination effect.

[0038] The hybrid search mode integrates a variety of different search algorithms, including Boolean logic search algorithm and vector search algorithm; The multi-level cache is updated based on the query results output by the pre-trained model, and the cache strategy of the multi-level cache is dynamically adjusted according to the query frequency and data update frequency of the multi-level cache, such as cache lazy loading and preloading strategy, cache replacement strategy and cache synchronization strategy.

[0039] The principle explanation code of the above hybrid retrieval mode is briefly as follows: #Hybrid search method, combining the results of Boolean search and vector search def hybrid_retrieval(query): boolean_results = boolean_retrieval(query) vector_results = vector_retrieval(query) combined_results = combine_results(boolean_results, vector_results) return combined_results # Boolean search method def boolean_retrieval(query): results = perform_boolean_search(query) return results #Vector retrieval method def vector_retrieval(query): results = perform_vector_search(query) return results #Method for combining Boolean search and vector search results def combine_results(boolean_results, vector_results): combined = boolean_results + vector_results combined = remove_duplicates(combined) return combined Boolean retrieval and vector retrieval are both retrieval algorithms, but they represent two different types of retrieval algorithms in the field of information retrieval.

[0040] Boolean search: Boolean search is a search algorithm based on Boolean logic. It uses Boolean logic operators (such as AND, OR, NOT) to combine keywords and generate a query expression. This query expression is used to match documents in a document collection. If a document meets the logical conditions in the query expression, it will be considered a relevant result and returned to the user. Boolean search is usually used in scenarios of exact matching and structured queries.

[0041] Vector search: Vector retrieval is a retrieval algorithm based on the vector space model. In vector retrieval, both documents and queries are represented as vectors in a high-dimensional space. These vectors are usually obtained through some form of representation learning (such as word embedding, sentence embedding, or document embedding). Then, the most relevant documents to the query are retrieved by calculating the similarity between the query vector and the document vector (such as cosine similarity, Euclidean distance, etc.). Vector retrieval is suitable for scenarios where semantic similarity and fuzzy matching need to be captured.

[0042] Both retrieval algorithms have their advantages and limitations. Boolean retrieval is usually more suitable for exact matching and structured queries because it allows users to explicitly specify logical conditions in the query. However, it may not handle semantic similarity and fuzzy matching well. In contrast, vector retrieval can handle these situations better because it is able to capture the semantic relationship between documents and queries. However, vector retrieval may also be affected by issues such as embedding quality, computational complexity, and the curse of dimensionality. Therefore, this scheme integrates the two retrieval algorithms to give full play to the advantages of the two algorithms and improve the overall performance and effect of the information retrieval system.

[0043] The principle explanation code of the above cache mechanism is briefly as follows: class MultiLevelCache: def __init__(self): self.primary_cache = {}# Level 1 cache self.secondary_cache = {} # Secondary cache #Get query results from cache def get_from_cache(self, query): if query in self.primary_cache: return self.primary_cache[query] elif query in self.secondary_cache: return self.secondary_cache[query] else: return None # Update the query results in the cache def update_cache(self, query, results): if len(self.primary_cache) <PRIMARY_CACHE_LIMIT: self.primary_cache[query] = results else: evicted_query, evicted_results = self.primary_cache.popitem() self.secondary_cache[evicted_query] = evicted_results self.primary_cache[query] = results #Use cache to query def retrieve_with_cache(query, cache): results = cache.get_from_cache(query) if results is None: results = dynamic_adjust_retrieval(query, data_size) cache.update_cache(query, results) return results S4. Adjust the parameters of the pre-trained model according to the document quality of the query result.

[0044] The brief code of the above S4 algorithm is as follows: #According to the quality of the retrieved documents, intelligently adjust the parameters of the pre-trained model to improve the accuracy of the generated results def optimize_generation_model(retrieved_docs): quality_score = evaluate_quality(retrieved_docs) adjust_model_parameters(quality_score) generated_response = generation_model.generate(retrieved_docs) return generated_response #Evaluate the quality of the retrieved documents def evaluate_quality(docs): score = 0 for doc in docs: score += assess_document_quality(doc) return score / len (docs) #Adjust the parameters of the generated model based on the quality score def adjust_model_parameters(quality_score): if quality_score <QUALITY_THRESHOLD: generation_model.set_parameters(high_quality_parameters) else: generation_model.set_parameters(default_parameters) Embodiment 2 Please refer to Figure 2 A terminal 1 for improving the efficiency and accuracy of RAG retrieval generation includes a memory 2, a processor 3, and a computer program stored in the memory 2 and executable on the processor 3. When the processor 3 executes the computer program, the steps in the first embodiment are implemented.

[0045] In summary, the method and terminal for improving RAG search generation efficiency and accuracy provided by the present invention have the following advantages: 1. Dynamically adjust the retrieval algorithm: According to the complexity of the query statement and the amount of data in the target data set, dynamically adjust the retrieval algorithm and select the optimal retrieval strategy. For example, for simple queries, you can use a fast but less accurate retrieval algorithm; for complex queries, use a more accurate but more computationally demanding retrieval algorithm, thereby ensuring retrieval accuracy while improving retrieval efficiency.

[0046] 2. Intelligent optimization of model parameters: Combined with the document quality of the retrieval results, the parameters of the pre-trained model are intelligently adjusted to improve the accuracy of the query results. By evaluating the quality of the retrieved documents and adjusting the parameters of the generated model, the generated response is more in line with user needs.

[0047] 3. Multi-level caching mechanism: Introduce a multi-level caching mechanism to dynamically adjust the caching strategy according to the query frequency and data update situation to reduce repeated calculations. The multi-level caching mechanism can flexibly adjust the cache level and content according to the query usage frequency and data update frequency, thereby improving the system's response speed and resource utilization.

[0048] 4. Hybrid search mode: Combining Boolean search and vector search, the hybrid search mode combines the advantages of both to improve the search effect. The hybrid search mode can improve the search accuracy while ensuring the search efficiency and adapt to different types of query requirements.

[0049] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for improving the efficiency and accuracy of RAG retrieval generation, characterized in that: include: S1. Input query statement; S2. determining the complexity of the query statement and the amount of data in the target data set based on the query statement; If the complexity of the query statement and the amount of data in the target data set are both lower than the preset values, the first retrieval algorithm is selected; Otherwise, a second search algorithm is selected, wherein the search efficiency of the second search algorithm is lower than that of the first search algorithm, but the accuracy is higher than that of the first search algorithm; S3, the pre-trained model outputs a query result adapted to the query statement based on a hybrid retrieval mode and a determined retrieval algorithm, wherein the hybrid retrieval mode integrates a plurality of different retrieval algorithms; S4. Adjust the parameters of the pre-trained model according to the document quality of the query result.

2. The method for improving RAG search generation efficiency and accuracy according to claim 1, characterized in that: The S1 includes: Input a query statement and determine whether there is a query result corresponding to the query statement in the multi-level cache; If yes, directly output the query result from the multi-level cache, and end the query operation; If not, execute S2.

3. The method for improving RAG search generation efficiency and accuracy according to claim 2, characterized in that: The S3 also includes: The multi-level cache is updated based on the query result output by the pre-trained model.

4. The method for improving RAG search generation efficiency and accuracy according to claim 3, characterized in that: The S3 also includes: The cache strategy of the multi-level cache is dynamically adjusted according to the query frequency and data update frequency of the multi-level cache.

5. The method for improving RAG search generation efficiency and accuracy according to claim 1, characterized in that: The algorithm integrated by the hybrid search mode includes a Boolean logic search algorithm and a vector search algorithm.

6. A terminal for improving the efficiency and accuracy of RAG retrieval generation, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the following steps are implemented: S1. Input query statement; S2. determining the complexity of the query statement and the amount of data in the target data set based on the query statement; If the complexity of the query statement and the amount of data in the target data set are both lower than the preset values, the first retrieval algorithm is selected; Otherwise, a second search algorithm is selected, wherein the search efficiency of the second search algorithm is lower than that of the first search algorithm, but the accuracy is higher than that of the first search algorithm; S3, the pre-trained model outputs a query result adapted to the query statement based on a hybrid retrieval mode and a determined retrieval algorithm, wherein the hybrid retrieval mode integrates a plurality of different retrieval algorithms; S4. Adjust the parameters of the pre-trained model according to the document quality of the query result.

7. The terminal for improving RAG search generation efficiency and accuracy according to claim 6, characterized in that: The S1 includes: Input a query statement and determine whether there is a query result corresponding to the query statement in the multi-level cache; If yes, directly output the query result from the multi-level cache, and end the query operation; If not, execute S2.

8. The terminal for improving RAG search generation efficiency and accuracy according to claim 7, characterized in that: The S3 also includes: The multi-level cache is updated based on the query result output by the pre-trained model.

9. The terminal for improving RAG search generation efficiency and accuracy according to claim 8, characterized in that: The S3 also includes: The cache strategy of the multi-level cache is dynamically adjusted according to the query frequency and data update frequency of the multi-level cache.

10. The terminal for improving RAG retrieval generation efficiency and accuracy according to claim 6, characterized in that: The algorithm integrated by the hybrid search mode includes a Boolean logic search algorithm and a vector search algorithm.

Citation Information

Patent Citations

  • Multi-level distributed cache system and method

    CN113420052A

  • Method and system for retrieving context of objective questions of law test

    CN116805148A

  • Dynamic adaptation question answering system and method based on hierarchical structure and retrieval enhancement

    CN118193714A

  • Unsupervised semantic retrieval method and apparatus, and computer-readable storage medium

    WO2023246337A1

Cited By

  • Retrieval method and device

    CN119226581A

  • Retrieval enhancement generation method based on theme enhancement and related products

    CN121166749A

  • Information processing method and apparatus, computer-readable storage medium, and computer program product

    WO2026090997A1