A multi-stage funnel-shaped hybrid retrieval method and system for resource-constrained environments
By employing a multi-level funnel-style hybrid retrieval method and utilizing a metadata-driven funnel architecture, the problems of retrieval efficiency and accuracy in resource-constrained environments are solved, achieving efficient and low-cost data retrieval while ensuring the accuracy and interpretability of the results.
Patent Information
- Application Number
- CN202611366275.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-04
- Publication Date
- 2026-11-27
AI Technical Summary
In resource-constrained environments, existing technologies suffer from contradictions between computational resource consumption and hardware costs, uncontrolled nonlinear retrieval delays, and contradictions between semantic relevance and precise constraint matching, resulting in low retrieval efficiency and inaccurate results.
A multi-level funnel-style hybrid retrieval method is adopted. Through a metadata-driven funnel architecture, multi-level funnel-style hybrid retrieval is performed, including offline data preprocessing and online funnel retrieval. A lightweight NLP model is used to extract multi-dimensional key feature metadata. Combined with database query and vector calculation, hard constraint filtering and soft semantic matching are achieved first.
This enables efficient retrieval in resource-constrained environments, reduces CPU load and hardware costs, improves retrieval speed and accuracy, ensures results meet explicit constraints, and enhances interpretability.
Smart Images

Figure CN123178653A_ABST
Abstract
Description
Technical Field
[0001] This invention discloses a multi-level funnel-style hybrid retrieval method and system for resource-constrained environments, relating to the fields of data processing and information retrieval technology. Background Technology
[0002] With the continuous evolution of large language model technology, semantic retrieval based on vector embedding has become the mainstream solution in the field of information retrieval. However, there is still a contradiction between computational resource consumption and hardware cost: when the data scale reaches hundreds of thousands to millions, full vector retrieval requires huge amounts of memory and CPU computing power. In a pure CPU environment, high-concurrency queries can easily lead to instantaneous saturation of CPU utilization, causing service response timeouts or even system crashes. There is also the problem of non-linear loss of retrieval latency: the time complexity of pure vector retrieval increases non-linearly with the amount of data, making it difficult to meet the core requirements of real-time interactive scenarios such as intelligent customer service, instant retrieval tools, or massive document comparison. There is also a contradiction between semantic relevance and precise constraint matching: pure vector retrieval focuses on semantic similarity and often ignores explicit hard constraints in user queries, such as precise time, specific entities, and file types. This can lead to the return results being "semantically relevant" but potentially missing documents that meet key constraints, resulting in "semantic drift" or "keyword loss". Summary of the Invention
[0003] This invention addresses the problems of existing technologies by providing a multi-level funnel-style hybrid retrieval method and system for resource-constrained environments. It enables efficient retrieval of massive amounts of unstructured data in environments with limited computing resources, such as those without GPU acceleration or in pure CPU environments. It is particularly suitable for hardware cost-sensitive application scenarios such as intelligent customer service, enterprise knowledge bases, and unstructured data content comparison.
[0004] The specific solution proposed in this invention is as follows: This invention provides a multi-level funnel-like hybrid retrieval method for resource-constrained environments. Based on a metadata-driven funnel-like hybrid retrieval architecture, it performs multi-level funnel-like hybrid retrieval. In the offline data preprocessing layer: Intelligent metadata extraction: Parsing unstructured text, extracting and storing multi-dimensional key feature metadata, and constructing a searchable inverted index and filtering index based on the metadata. Storage Vector: Synchronously generate embedding vectors for document content and store them in a lightweight manner; Online funnel-shaped retrieval layer: Intent parsing and coarse screening: Natural language parsing is performed on the user query to extract explicit hard constraints. Based on these constraints, candidate documents that meet the conditions are queried to form a candidate document set. Perform vector ranking: Load the corresponding vector data for the candidate document set as needed, perform cosine similarity calculation and complete the ranking.
[0005] Furthermore, the multi-level funnel-style hybrid retrieval method for resource-constrained environments utilizes lightweight NLP models, rule templates, or keyword matching to parse unstructured text, extracting multi-dimensional key feature metadata including entity tags, industry classifications, timestamps, topic summaries, and file types; the multi-dimensional key feature metadata and the corresponding document content embedding vectors are stored in a relational database.
[0006] Furthermore, the multi-level funnel-style hybrid retrieval method for resource-constrained environments is based on explicit hard constraints, including time, text name, and the type of domain involved in the text, and executes SQL queries or Boolean queries in a relational database.
[0007] Furthermore, in the multi-level funnel-style hybrid retrieval method for resource-constrained environments, an adaptive routing strategy for query cost is created: the size of the candidate set output by the coarse screening is monitored in real time, and a dynamic decision is made on whether to enable quantization calculation. When the candidate document set is small, full-precision calculation is used to ensure accuracy, and quantization is enabled to accelerate when the candidate document set is large, so as to achieve the optimal balance between retrieval accuracy and response speed.
[0008] This invention also provides a multi-level funnel-like hybrid retrieval system for resource-constrained environments. Based on a metadata-driven funnel-like hybrid retrieval architecture, it includes an extraction module, a storage module, a query intent parser, a metadata coarse-screening module, and a local vector retrieval module. The system performs multi-level funnel-like hybrid retrieval. In the offline data preprocessing layer: The extraction module performs intelligent metadata extraction: it parses unstructured text, extracts and stores multi-dimensional key feature metadata, and constructs a searchable inverted index and filtering index based on the metadata. Storage module stores vectors: synchronously generates embedding vectors of document content and stores them in a lightweight manner; Online funnel-shaped retrieval layer: Intent parsing and coarse screening: The query intent parser performs natural language parsing on the user's query, extracting explicit hard constraints. The metadata coarse screening module then queries candidate documents that meet these constraints, forming a candidate document set. The local vector retrieval module performs vector fine-tuning: it loads the corresponding vector data for the candidate document set as needed, performs cosine similarity calculation, and completes the sorting.
[0009] Furthermore, the extraction module of the multi-level funnel-shaped hybrid retrieval system for resource-constrained environments uses a lightweight NLP model, rule templates, or keyword matching to parse unstructured text and extract multi-dimensional key feature metadata, including entity tags, industry classification, timestamps, topic summaries, and file types; the storage module stores the multi-dimensional key feature metadata and the corresponding document content embedding vectors into a relational database.
[0010] Furthermore, in the aforementioned multi-level funnel-style hybrid retrieval system for resource-constrained environments, the metadata coarse screening module executes SQL or Boolean queries in a relational database based on explicit hard constraints, including time, text name, and the domain type involved in the text.
[0011] Furthermore, the multi-level funnel-shaped hybrid retrieval system for resource-constrained environments also includes an optimization module. The optimization module creates an adaptive routing strategy for query cost: it monitors the size of the candidate set output by the coarse screening in real time and dynamically decides whether to enable quantization calculation. When the candidate document set is small, it uses full-precision calculation to ensure accuracy, and when the candidate document set is large, it enables quantization acceleration to achieve the optimal balance between retrieval accuracy and response speed.
[0012] The advantages of this invention are: 1. Breakthrough Performance Improvement: Through an innovative combination of "database coarse screening + small-range vector fine calculation," the originally computationally intensive global vector search is transformed into I / O-efficient database precision filtering. Experimental data verifies that in a pure CPU deployment environment with over 300,000 documents, retrieval latency is reduced by 90% compared to traditional solutions, and peak CPU load is reduced by more than 80%, significantly reducing computing power consumption and resource costs.
[0013] 2. Significantly reduced deployment threshold: No need to purchase expensive GPU graphics cards or high-memory servers. Low-configuration servers can stably support the retrieval needs of massive knowledge bases, significantly reducing the hardware threshold and deployment cost for technology implementation, allowing small and medium-sized teams and individual developers to easily apply it.
[0014] 3. Enhanced Search Accuracy and Interpretability: The progressive logic of "hard constraint filtering followed by soft semantic matching" ensures that search results 100% match the user's explicit constraints such as year, file type, and entity identifier, while also guaranteeing high semantic relevance of the content. This completely solves the pain points of "keyword loss" and "semantic drift" in pure vector search. At the same time, the metadata constraints for selecting search results are clear and traceable, greatly improving the interpretability and credibility of the search. Attached Figure Description
[0015] Figure 1 This is a schematic diagram of the application process of the system of the present invention.
[0016] Figure 2 This is a schematic diagram illustrating the application scenario of the present invention.
[0017] Figure 3 This is a schematic diagram of the query parsing and SQL generation process. Detailed Implementation
[0018] The present invention will be further described below with reference to the accompanying drawings and specific embodiments, so that those skilled in the art can better understand and implement the present invention. However, the embodiments described are not intended to limit the present invention. Example
[0019] This invention provides a multi-level funnel-like hybrid retrieval method for resource-constrained environments. Based on a metadata-driven funnel-like hybrid retrieval architecture, it performs multi-level funnel-like hybrid retrieval. In the offline data preprocessing layer: Intelligent metadata extraction: Parse unstructured text, extract and store multi-dimensional key feature metadata. The unstructured text is parsed using a lightweight NLP model, rule templates or keyword matching. The extracted multi-dimensional key feature metadata includes entity labels, industry classification, timestamps, topic summaries and file types. Build searchable inverted indexes and filtering indexes based on metadata. Vector storage: Synchronously generate embedding vectors for document content and store them in a lightweight manner; store multi-dimensional key feature metadata and the corresponding document content embedding vectors in a relational database.
[0020] Online funnel-shaped retrieval layer: Intent parsing and coarse screening: Natural language parsing is performed on the user query to extract explicit hard constraints. Explicit hard constraints include time, text name, and the domain type involved in the text. Based on these constraints, SQL or Boolean queries are executed in the relational database to retrieve candidate documents that meet the conditions, forming a candidate document set. Perform vector ranking: Load the corresponding vector data for the candidate document set as needed, perform cosine similarity calculation and complete the ranking; It also creates an adaptive routing strategy for query costs: it monitors the size of the candidate set output by the coarse screening in real time and dynamically decides whether to enable quantization calculation. When the candidate document set is small, it uses full-precision calculation to ensure accuracy, and enables quantization acceleration when the candidate document set is large, in order to achieve the optimal balance between retrieval accuracy and response speed. Example
[0021] This invention also provides a multi-level funnel-like hybrid retrieval system for resource-constrained environments. Based on a metadata-driven funnel-like hybrid retrieval architecture, it includes an extraction module, a storage module, a query intent parser, a metadata coarse-screening module, and a local vector retrieval module. The system performs multi-level funnel-like hybrid retrieval. In the offline data preprocessing layer: The extraction module performs intelligent metadata extraction: it parses unstructured text, extracts and stores multi-dimensional key feature metadata, and constructs a searchable inverted index and filtering index based on the metadata. Storage module stores vectors: synchronously generates embedding vectors of document content and stores them in a lightweight manner; Online funnel-shaped retrieval layer: Intent parsing and coarse screening: The query intent parser performs natural language parsing on the user's query, extracting explicit hard constraints. The metadata coarse screening module then queries candidate documents that meet these constraints, forming a candidate document set. The local vector retrieval module performs vector fine-tuning: it loads the corresponding vector data for the candidate document set as needed, performs cosine similarity calculation, and completes the sorting.
[0022] The information interaction and execution of readable programs between the modules in the above system are based on the same concept as the method embodiments of the present invention, and the specific details can be found in the descriptions in the method embodiments of the present invention, and will not be repeated here.
[0023] Similarly, the advantages of the system of the present invention are: 1. Breakthrough Performance Improvement: Through an innovative combination of "database coarse screening + small-range vector fine calculation," the originally computationally intensive global vector search is transformed into I / O-efficient database precision filtering. Experimental data verifies that in a pure CPU deployment environment with over 300,000 documents, retrieval latency is reduced by 90% compared to traditional solutions, and peak CPU load is reduced by more than 80%, significantly reducing computing power consumption and resource costs.
[0024] 2. Significantly reduced deployment threshold: No need to purchase expensive GPU graphics cards or high-memory servers. Low-configuration servers can stably support the retrieval needs of massive knowledge bases, significantly reducing the hardware threshold and deployment cost for technology implementation, allowing small and medium-sized teams and individual developers to easily apply it.
[0025] 3. Enhanced Search Accuracy and Interpretability: The progressive logic of "hard constraint filtering followed by soft semantic matching" ensures that search results 100% match the user's explicit constraints such as year, file type, and entity identifier, while also guaranteeing high semantic relevance of the content. This completely solves the pain points of "keyword loss" and "semantic drift" in pure vector search. At the same time, the metadata constraints for selecting search results are clear and traceable, greatly improving the interpretability and credibility of the search.
[0026] It should be noted that not all steps and modules in the above processes and system structures are mandatory; some steps or modules may be omitted as needed. The execution order of the steps is not fixed and can be adjusted as required. The device structures described in the above embodiments can be physical structures or logical structures. That is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or they may be jointly implemented by certain components in multiple independent devices.
[0027] The above-described embodiments are merely preferred embodiments provided to fully illustrate the present invention, and the scope of protection of the present invention is not limited thereto. Equivalent substitutions or modifications made by those skilled in the art based on the present invention are all within the scope of protection of the present invention. The scope of protection of the present invention is defined by the claims.
Claims
1. A multi-level funnel-shaped hybrid retrieval method for resource-constrained environments, characterized by: A metadata-driven, funnel-like hybrid retrieval architecture is used for multi-level funnel-like hybrid retrieval. In the offline data preprocessing layer: Intelligent metadata extraction: Parsing unstructured text, extracting and storing multi-dimensional key feature metadata, and constructing a searchable inverted index and filtering index based on the metadata. Storage Vector: Synchronously generate embedding vectors for document content and store them in a lightweight manner; Online funnel-shaped retrieval layer: Intent parsing and coarse screening: Natural language parsing is performed on the user query to extract explicit hard constraints. Based on these constraints, candidate documents that meet the conditions are queried to form a candidate document set. Perform vector ranking: Load the corresponding vector data for the candidate document set as needed, perform cosine similarity calculation and complete the ranking.
2. The multi-level funnel-shaped hybrid retrieval method for resource-constrained environments according to claim 1, characterized in that: Lightweight NLP models, rule templates, or keyword matching are used to parse unstructured text and extract multi-dimensional key feature metadata, including entity labels, industry classifications, timestamps, topic summaries, and file types. The multi-dimensional key feature metadata and the corresponding document content embedding vectors are stored in a relational database.
3. A multi-level funnel-shaped hybrid retrieval method for resource-constrained environments according to claim 1 or 2, characterized in that: Based on explicit hard constraints, including time, text name, and the type of domain the text relates to, execute SQL queries or Boolean queries in a relational database.
4. The multi-level funnel-shaped hybrid retrieval method for resource-constrained environments according to claim 1, characterized in that: Create an adaptive routing strategy for query cost: monitor the size of the candidate set output by the coarse screening in real time, and dynamically decide whether to enable quantization calculation. When the candidate document set is small, full-precision calculation is used to ensure accuracy, and quantization is enabled to accelerate when the candidate document set is large, so as to achieve the optimal balance between retrieval accuracy and response speed.
5. A multi-level funnel-shaped hybrid retrieval system for resource-constrained environments, characterized by: The system employs a metadata-driven, funnel-like hybrid retrieval architecture, comprising an extraction module, a storage module, a query intent parser, a metadata coarse-screening module, and a local vector retrieval module. The system performs multi-level funnel-like hybrid retrieval. In the offline data preprocessing layer: The extraction module performs intelligent metadata extraction: it parses unstructured text, extracts and stores multi-dimensional key feature metadata, and constructs a searchable inverted index and filtering index based on the metadata. Storage module stores vectors: synchronously generates embedding vectors of document content and stores them in a lightweight manner; Online funnel-shaped retrieval layer: Intent parsing and coarse screening: The query intent parser performs natural language parsing on the user's query, extracting explicit hard constraints. The metadata coarse screening module then queries candidate documents that meet these constraints, forming a candidate document set. The local vector retrieval module performs vector fine-tuning: it loads the corresponding vector data for the candidate document set as needed, performs cosine similarity calculation, and completes the sorting.
6. A multi-level funnel-shaped hybrid retrieval system for resource-constrained environments according to claim 5, characterized in that: The extraction module uses a lightweight NLP model, rule templates, or keyword matching to parse unstructured text. The extracted multi-dimensional key feature metadata includes entity labels, industry classifications, timestamps, topic summaries, and file types. The storage module stores the multi-dimensional key feature metadata and the corresponding document content embedding vectors into a relational database.
7. A multi-level funnel-shaped hybrid retrieval system for resource-constrained environments according to claim 5 or 6, characterized in that: The metadata coarse screening module executes SQL or Boolean queries in a relational database based on explicit hard constraints, including time, text name, and the domain type involved in the text.
8. A multi-level funnel-shaped hybrid retrieval system for resource-constrained environments according to claim 5, characterized in that: It also includes an optimization module, which creates an adaptive routing strategy for query cost: it monitors the size of the candidate set output by the coarse screening in real time and dynamically decides whether to enable quantization calculation. When the candidate document set is small, it uses full-precision calculation to ensure accuracy, and enables quantization acceleration when the candidate document set is large, in order to achieve the optimal balance between retrieval accuracy and response speed.
