Multi-engine dynamic route retrieval method and system

By extracting multidimensional intent feature tensors and controlling retrieval channels with sparse activation probabilities, and combining temperature coefficients and graph convolutional rearrangement, the routing computation overhead and heterogeneous score comparison problems in multi-engine retrieval systems are solved, thereby improving the efficiency and accuracy of cross-domain retrieval.

CN123178554APending Publication Date: 2026-11-27BEIJING EASY TIMES DIGITAL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611343003.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-01
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing multi-engine retrieval systems suffer from problems such as high routing computation overhead, physical I/O load caused by indiscriminate parallel retrieval, inability to directly compare heterogeneous scores, and insufficient correlation of cross-domain candidate results.

Method used

By extracting multidimensional intent feature tensors from natural language queries, calculating radial scale isotropy and directional projection anisotropy, generating sparse continuous activation probabilities, blocking invalid retrieval channels, and using temperature coefficients to fuse heterogeneous candidate results and propagate graph convolutional messages, a local semantic heterogeneous graph is constructed for rearrangement.

Benefits of technology

It reduces invalid search requests and physical I/O overhead, and improves the coherence of cross-domain evidence chains and the overall recall accuracy of the search system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178554A_ABST
    Figure CN123178554A_ABST
Patent Text Reader

Abstract

The application discloses a multi-engine dynamic routing retrieval method and system. The method extracts multi-dimensional intention features from a natural language query sentence, and calculates radial scale isotropy and directional projection anisotropy according to a hidden state feature matrix of a query coding model; generates sparse continuous activation probability of each retrieval channel based on the intention features and the measures, and only calls activated retrieval channels; converts original retrieval scores returned by each channel into channel internal empirical cumulative distribution percentile probability, dynamically generates a temperature coefficient according to a query intention, and combines the activation probability for fusion; constructs a local semantic heterogeneous graph based on heterogeneous candidate results, performs graph convolution message propagation, and outputs rearranged cross-domain knowledge fragments. Thus, additional generative model calls and invalid retrieval requests can be reduced, physical I / O overhead can be reduced, and the relevance of cross-domain evidence chains can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of retrieval enhancement and generation technology in artificial intelligence and natural language processing, specifically to a multi-engine dynamic routing retrieval method and system. Background Technology

[0002] With the development of retrieval enhancement generation technology, industrial-grade knowledge retrieval systems are typically configured with vector databases, knowledge graph databases, and multimodal retrieval engines to obtain query-related candidate knowledge from unstructured text, structured entity relationships, and graph objects.

[0003] Existing multi-engine retrieval systems typically complete routing decisions through additional large language model inference or by launching queries in parallel across all retrieval engines. The former increases routing latency and computational resource consumption, while the latter increases physical I / O overhead. Furthermore, the score distributions of different retrieval engines are difficult to compare directly, and there is a lack of a unified association and rearrangement mechanism among their recall results. Summary of the Invention

[0004] In view of this, the present invention aims to solve the problems of large routing computation overhead, physical I / O load caused by indiscriminate parallel retrieval, inability to directly compare heterogeneous scores, and insufficient correlation of cross-domain candidate results in existing multi-engine retrieval systems.

[0005] This invention provides a multi-engine dynamic route retrieval method, comprising: Step S1: Extract a multidimensional intent feature tensor from the natural language query statement, calculate the radial scale isotropic degree and the directional projection anisotropic degree from the hidden state feature matrix of the Transformer pre-trained model used for query encoding, and generate the sparse continuous activation probability of each retrieval channel based on the multidimensional intent feature tensor, radial scale isotropic degree and directional projection anisotropic degree. Step S2: Send a query to the retrieval channel with an activation probability greater than 0, receive the heterogeneous candidate results and their original retrieval scores returned by each activated retrieval channel, and block the retrieval channel with an activation probability of 0. Step S3: Based on the recall score distribution of each activated retrieval channel, convert the corresponding original retrieval score into the percentile probability of the empirical cumulative distribution within the channel. Step S4: Generate a temperature coefficient based on the multidimensional intent feature tensor, use the sparse continuous activation probability as the channel weight, and perform temperature adjustment and weighted fusion on the empirical cumulative distribution percentile probability of each channel to obtain the fusion score of each heterogeneous candidate result. Step S5: Construct a local semantic heterogeneous graph based on the heterogeneous candidate results, using structured entities, unstructured text blocks, and multimodal objects as nodes, and establish structured explicit edges and implicit semantic edges based on embedding similarity between nodes. Step S6: Perform graph convolutional message propagation on the local semantic heterogeneous graph, calculate the final reordering score of each node based on the node features after propagation and the fusion score, and output cross-domain knowledge fragments sorted according to the final reordering score.

[0006] Furthermore, preferably, in the multi-engine dynamic route retrieval method according to the present invention, step S1 further includes: Extract the hidden state feature matrix from the first L layers or preset layers of the Transformer pre-trained model used for query encoding; Calculate the radial scale isotropic degree and the directional projection anisotropic degree based on the hidden state feature matrix; The multidimensional intent feature tensor, radial scale isotropy, and directional projection anisotropy are concatenated into gated input features, and the sparse continuous activation probability vector is calculated using the following formula: Here, Softmax is a function used to find the maximum probability in each dimension. For the direction projection anisotropy degree, q For the intent feature dimension, g is a learnable parameter matrix. For the concatenated gated input features, KeepTopK is a sparse filtering operator used to retain the K largest gate values ​​and normalize the remaining gate values ​​after setting them to negative infinity. K is a natural number set according to the number of retrieval channels, query complexity, or resource budget.

[0007] Furthermore, preferably, in the multi-engine dynamic route retrieval method according to the present invention, step S2 includes: When the activation probability of the vector retrieval channel is greater than 0, a similarity retrieval is performed in the vector database to recall unstructured text blocks. When the activation probability of the graph database retrieval channel is greater than 0, graph diffusion retrieval is performed in the graph database based on the entities in the query to recall the structured entity subgraphs; When the activation probability of the multimodal retrieval channel is greater than 0, images, charts or their parsed objects are recalled based on the text features or multimodal features in the query. Among them, the retrieval channel with an activation probability of 0 will not receive query requests.

[0008] Furthermore, preferably, in the multi-engine dynamic route retrieval method according to the present invention, step S4 includes: Step S41: Based on the recall score distribution of each activated retrieval channel, convert the corresponding original retrieval score into the percentile probability of the empirical cumulative distribution within the channel. Step S42: Generate Boltzmann temperature coefficients based on the multidimensional intent feature tensor. Use the sparse continuous activation probabilities of each channel as channel weights to fuse the empirical cumulative distribution percentile probabilities adjusted by temperature. The fusion formula is as follows: in, , , These correspond to the vector retrieval channel, graph database retrieval channel, and multimodal retrieval channel, respectively. Quantity; and The percentile fraction after applying the Boltzmann temperature function; As a factor that enhances entity consensus, The value range is [0.5, 1.5]. If the same text block or entity n is recalled simultaneously in multiple channels, the indicator function is triggered. When n is recalled by at least two different retrieval channels, =1, otherwise, .

[0009] Furthermore, preferably, in the multi-engine dynamic routing retrieval method according to the present invention, step S5 includes: mapping the text blocks recalled by vector retrieval, the entities recalled by graph database retrieval, and the graph objects recalled by multimodal retrieval to nodes in a local semantic heterogeneous graph; inheriting entity relationships in the original knowledge graph as explicit edges; using a cross-modal alignment encoder to calculate the embedding similarity between different types of nodes, and when the similarity exceeds a preset threshold, inserting implicit semantic edges between the corresponding nodes, and using the similarity or its normalized value as edge weights.

[0010] Furthermore, preferably, in the multi-engine dynamic route retrieval method according to the present invention, L-layer graph convolutional message propagation is performed on the local semantic heterogeneous graph, the hidden state features of each node are updated based on the semantic features of adjacent nodes, the relationship type between nodes, and the edge weights, and the hidden state features of each node are updated according to the candidate nodes. The hidden state feature vector of the Lth layer and the candidate node The fusion score is used to calculate the final rearrangement score according to the following formula: in, The prior fusion score is used to determine the candidate node. The fusion coefficient is... For nodes after L-layer graph convolution and nonlinear information propagation i The hidden state feature vector; and The weights and biases for the linear output projection.

[0011] The present invention also provides a multi-engine dynamic routing retrieval system for implementing the above method, comprising: an intent feature decoupling and routing determination module, a multi-path dynamic concurrent retrieval engine cluster, a heterogeneous score calibration and dynamic fusion module, and a local semantic heterogeneous graph rearrangement module; each module sequentially performs query feature measurement, retrieval channel selection, candidate result calibration and fusion, and graph convolution rearrangement.

[0012] Furthermore, preferably, in the multi-engine dynamic routing retrieval method according to the present invention, the intent feature decoupling and routing determination module includes a query feature extractor, a hidden state metric calculator, and a sparse hybrid expert gating network; the query feature extractor is used to generate a multidimensional intent feature tensor, the hidden state metric calculator is used to generate radial scale isotropy and directional projection anisotropy, and the sparse hybrid expert gating network is used to output the sparse continuous activation probability of each retrieval channel.

[0013] Furthermore, preferably, in the multi-engine dynamic routing retrieval method according to the present invention, the heterogeneous score calibration and dynamic fusion module is used to convert the original retrieval score into the empirical cumulative distribution percentile probability within the channel according to the recall score distribution of each channel; generate a temperature coefficient according to the multidimensional intent feature tensor, and fuse the empirical percentile probabilities of each channel using the sparse continuous activation probability as the channel weight.

[0014] Furthermore, preferably, in the multi-engine dynamic routing retrieval method according to the present invention, the local semantic heterogeneous graph reordering module is used to: construct structured entities, unstructured text blocks and multimodal objects as nodes; inherit entity relationships in the knowledge graph as explicit edges, and establish implicit semantic edges between nodes with embedding similarity exceeding a preset threshold; perform graph convolutional message propagation, calculate the final reordering score based on the node features and fusion score after propagation, and output the sorted cross-domain knowledge fragments.

[0015] This invention selects retrieval channels and fuses candidate results among structured knowledge graphs, unstructured text vector libraries, and multimodal data sources by continuously passing parameters between query intent features, hidden state measures, sparse routing probabilities, heterogeneous score calibration, dynamic temperature fusion, and local semantic heterogeneous graph rearrangement. This reduces invalid retrieval requests and physical I / O overhead, and improves the coherence of cross-domain evidence chains. Attached Figure Description

[0016] Figure 1 This is a schematic diagram illustrating a multi-engine dynamic routing retrieval system architecture according to a preferred embodiment of the present invention.

[0017] Figure 2 This is a schematic diagram illustrating the implementation process of a multi-engine dynamic routing retrieval technology according to a preferred embodiment of the present invention. Detailed Implementation

[0018] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Other embodiments or modifications obtained by those skilled in the art based on the embodiments of this application without creative effort are all within the scope of protection of this application.

[0019] This invention primarily addresses the dual bottlenecks in performance and accuracy faced by industrial-grade large-scale retrieval enhancement generation and multimodal knowledge retrieval systems when traversing heterogeneous data sources such as vector libraries, knowledge graphs, and multimodal graphs. It aims to solve the following five technical problems: (1) Solving the problem of high computational overhead for pre-intent routing. Existing technologies typically perform routing decisions through generative reasoning of large language models or structured function calls. This invention reuses the hidden state of the Transformer in the query encoding stage to calculate the query complexity measure, reducing additional model calls.

[0020] (2) Solve the problem of cross-domain association evidence loss caused by a single exclusive route. This invention uses the continuous activation probability to represent the relevance of each retrieval channel to the query, allows multiple relevant channels to be activated at the same time, and only blocks channels that are below the filtering criteria.

[0021] (3) Solve the problems of physical I / O overhead and semantic interference caused by indiscriminate parallel retrieval. This invention uses sparse gating to select relevant channels, stops initiating retrieval requests for channels that do not meet the activation conditions, and performs concurrent retrieval for multiple relevant channels.

[0022] (4) Solving the problem that heterogeneous retrieval scores cannot be directly compared and static fusion has insufficient adaptability. Vector similarity, graph diffusion score and multimodal matching score have different dimensions and distributions. This invention obtains the empirical percentile within the channel through probability integral transformation, and dynamically generates the temperature coefficient using query intent, and completes the fusion by combining the route activation probability.

[0023] (5) Solving the problem of fragmentation of cross-modal and cross-domain heterogeneous retrieval results. Traditional two-stage retrieval enhancement generation methods lack a unified rearrangement mechanism for unstructured text, structured knowledge graph nodes, and multimodal graph objects, making it difficult to utilize the topological relationships between different types of candidates. This invention maps multi-source heterogeneous candidates to local semantic heterogeneous graphs and enhances associations through graph convolution message propagation.

[0024] In industrial-scale retrieval enhancement and multimodal knowledge systems, obtaining evidence chains across multiple heterogeneous data sources is typically necessary to provide accurate context for large language models. These heterogeneous data sources mainly include vector databases of unstructured text, structured knowledge graphs, and semi-structured multimodal data. Because different physical retrieval engines have drastically different data structures and retrieval mechanisms, the system requires a new operating mechanism to determine the direction of the query and effectively integrate the heterogeneous results returned by each engine.

[0025] In industry and academia, the mainstream technologies can be categorized into the following three types: Option 1: Retrieval method based on pre-intent classification and static physical traffic splitting Method steps: ① The system receives the natural language query statement input by the user; ② The query is sent to the large language model, and the intent is determined by using Prompt parsing or Pydantic JSON structured functions; ③ Based on the output of the large model, a single physical route decision is made; ④ The retrieval is performed in the selected single physical engine and the results are returned.

[0026] Option 2: Undifferentiated Parallel Retrieval and Inverted Index Fusion Method Method steps: ① After receiving the query, the system does not perform routing determination, but directly and indiscriminately distributes the query to all underlying retrieval engines, such as vector retrieval, BM25 term frequency retrieval, and knowledge graph retrieval; ② Each retrieval engine returns its own ranked list of candidate documents; ③ The fusion module uses the inverted index fusion algorithm or cross-encoder to merge and rearrange the results based only on the relative ranking of the documents in their respective lists, discarding specific score values; ④ The rearranged results are input into the large language model.

[0027] Option 3: Fusion method of map-enhanced retrieval and static probability integral transformation Method steps: ① Entity extraction is performed using a large language model, and a personalized webpage ranking graph diffusion algorithm is executed to recall graph nodes; ② Vector retrieval is performed in parallel to recall text nodes; ③ One-dimensional probability integral transformation is used to map the cosine score of the vector and the PPR score of the graph to uniform distributions respectively; ④ Subsequently, the Boltzmann probability formula is used to perform score fusion, but its fusion weight and temperature coefficient are set as pre-written static hard-coded hyperparameters, which cannot be dynamically adjusted according to the current query.

[0028] The above technical solution has at least the following shortcomings: First, relying on generative reasoning based on large language models or complex interface calls to complete routing decisions will increase the consumption of computing resources and routing latency in a high-concurrency environment. Secondly, a single exclusive route is prone to missing key evidence from other engines when the query intent is uncertain or cross-domain, while indiscriminately enabling all engines will increase physical I / O overhead and introduce irrelevant context. Third, different search engines have different score dimensions and distributions, making it difficult for static fusion parameters to adapt to changes in the complexity of real-time queries; Fourth, text blocks, entities, and chart objects retrieved from different data sources are isolated from each other and lack a unified topological space for relational propagation, which can easily lead to a break in the bridging context.

[0029] As a preferred embodiment of the present invention, a multi-engine dynamic routing retrieval method based on query intent feature decoupling and local semantic heterogeneous graph convolution is provided, which can achieve the following objectives: (1) Reduce the overhead of the front-end routing: By reusing the hidden state of the Transformer query encoding stage, the direction and scale measure are calculated without having to perform additional generative large language model inference for routing decision, thereby shortening the routing decision time and reducing the consumption of computing resources.

[0030] (2) Balancing cross-domain recall and invalid channel blocking: The sparse hybrid expert gating network outputs continuous activation probability and allows multiple related channels to be activated simultaneously; only channels below the screening criteria are set to zero, thereby reducing the risk of losing key cross-domain evidence caused by a single exclusive route and reducing invalid retrieval overhead.

[0031] (3) Achieve adaptive calibration and fusion of heterogeneous scores: The original scores of different search engines are mapped to empirical percentiles within the channel through probability integral transformation. The Boltzmann temperature coefficient is dynamically generated by query intent features and weighted fusion is performed in combination with route activation probability, so as to preserve the relative confidence order of candidate results within the channel on a unified scale.

[0032] (4) Constructing deep semantic alignment to solve knowledge fragmentation: Dynamically constructing a local semantic heterogeneous graph containing cross-modal objects and graph entities in memory, and performing non-linear information propagation and rearrangement through graph convolutional networks. This enables data sources from different engines to complete cross-alignment within a unified topological space, thereby repairing broken contextual evidence chains and comprehensively improving the overall recall accuracy of the cross-domain retrieval system.

[0033] In summary, this invention addresses the issues of routing latency, multi-path concurrent physical I / O overhead, incomparability of heterogeneous scores, and fragmentation of cross-domain evidence in large-scale heterogeneous knowledge base retrieval. It constructs a continuous processing chain of "query feature measurement - sparse routing - heterogeneous score calibration - dynamic temperature fusion - local heterogeneous graph rearrangement", enabling the front-end routing probability to simultaneously control the retrieval channel and participate in the back-end candidate fusion.

[0034] Figure 1This is a schematic diagram illustrating the architecture of a multi-engine dynamic routing retrieval system according to a preferred embodiment of the present invention.

[0035] Specifically, such as Figure 1 As shown, the architecture diagram contains three main top-down module levels: Top layer (Intent Decoupling and Routing Decision Module): This layer includes a natural language query input, a pre-filled feature extractor for the query encoding model, a lightweight intent dimension decoupling unit, and a sparse hybrid expert gating network. This layer reuses the hidden states from the query encoding process and outputs the activation states and continuous activation probabilities of the retrieval channels.

[0036] The middle layer (heterogeneous search engine cluster): Based on the gating instructions of the top layer, it contains multiple parallel channels that are dynamically activated or blocked, including dense vector search engine, graph diffusion search engine and multimodal search engine.

[0037] Bottom layer (cross-modal alignment and local semantic graph convolutional fusion and rearrangement module): This is the fusion hub of the entire architecture. Internally, it contains, in sequence, a probability integral transformation calibrator, an adaptive temperature Boltzmann fusion unit, a local semantic heterogeneous graph dynamic builder, and finally, a graph convolutional network rearrangement output unit.

[0038] Based on the architecture of the preferred embodiment described above, the technical process, from query input to final output rearrangement of the evidence chain, consists of four technical steps. These are detailed below with reference to the flowchart.

[0039] Figure 2 This is a schematic diagram illustrating the implementation process of a multi-engine dynamic routing retrieval technology according to a preferred embodiment of the present invention.

[0040] like Figure 2 As shown, the technical implementation process according to a preferred embodiment of the present invention includes: Step S1: Decoupling online query feature extraction from low-overhead intent After receiving the natural language query statement input by the user, the system performs feature encoding on the query and reuses the intermediate hidden states generated during the query encoding process to complete the intent complexity measurement, avoiding the need to call a large language model for generative reasoning for routing determination.

[0041] 1. Multidimensional feature extraction: Using a lightweight language model or query feature extractor, extract core industrial entities, action words, constraint quantifiers, and temporal and logical relationship features from natural language query statements, encode each feature and concatenate them into a multidimensional intent feature tensor Xintent.

[0042] 2. Transformer Hidden Feature Statistical Projection: During the pre-filling stage of the forward propagation of the Transformer pre-trained model used for query encoding, the hidden state feature matrix H of the first L layers or a preset number of layers is extracted. Based on H, the radial scale isotropic degree NormStat and the directional projection anisotropy degree VecStat are calculated. This step reuses intermediate features from the query encoding process, eliminating the need to separately call a large language model to perform generative intent classification.

[0043] 3. Sparse Hybrid Expert Gated Streaming: The multidimensional intent feature tensor, radial scale isotropy, and directional projection anisotropy are concatenated into gated input features and input into a sparse hybrid expert gating network to calculate the gating value for each retrieval channel. The core gating operation is as follows: Among them, the gated input features include multidimensional intent feature tensor, radial scale isotropy and directional projection anisotropy; Anisotropy of the directional projection; q Wg is the dimension of the intent feature; Wg is the learnable parameter matrix. is the concatenated gated input feature; TopK is a sparse filtering operator used to retain the K largest gate values ​​and normalize the remaining gate values ​​after setting them to negative infinity; K is set according to the number of retrieval channels, query complexity, or resource budget.

[0044] This step outputs a sparse, continuous activation probability vector g=[g vec ,g graph ,g multi The Top-K parameter K and activation threshold can be set according to the number of retrieval channels, query complexity, and resource budget; components with an activation probability greater than 0 are used as routing trigger conditions and subsequent fusion weights, while channels with an activation probability of 0 are blocked.

[0045] Step S2: Sparse Gated Concurrent Multi-Path Dynamic Search Dynamic retrieval is performed based on the activation vector g output in step S1, specifically including: If the channel weight in the vector database is greater than 0, then a dense similarity search is performed in the vector database to recall the top K most similar unstructured text blocks.

[0046] If the graph channel weight is greater than 0, then the personalized webpage ranking algorithm is run in the graph database using the entities in the query to perform local rapid diffusion and recall the associated structured entity subgraphs.

[0047] Channels with an activation probability of 0 do not execute queries; channels with an activation probability greater than 0 execute retrieval concurrently, thereby reducing physical I / O overhead and semantic interference caused by irrelevant channels.

[0048] Step S3: Two-stage probabilistic calibration and fusion of heterogeneous retrieval physical scores Different physics search engines have different score distributions. This step converts the heterogeneous scores to a comparable scale and fuses them through two stages: in-channel empirical percentile calibration and dynamic temperature weighting.

[0049] Phase 1: Using probability integral transformation, the original scores returned by each channel are transformed into percentile probabilities of the empirical cumulative distribution function relative to the recall distribution of this channel. This makes the scores with completely different physical dimensions uniformly mapped to the scale of the standard uniform distribution.

[0050] Phase Two: The system maps the calibrated percentile values ​​to a Boltzmann distribution, and the core preliminary fusion formula is calculated as follows: in, , , These correspond to the vector retrieval channel, graph database retrieval channel, and multimodal retrieval channel, respectively. Quantity; and The percentile fraction after applying the Boltzmann temperature function; As a factor that enhances entity consensus, The value range is [0.5, 1.5]. If the same text block or entity n is recalled simultaneously in multiple channels, the indicator function is triggered. When n is recalled by at least two different retrieval channels, =1, otherwise, .

[0051] The Boltzmann temperature coefficient Tk is dynamically generated by the multidimensional intent feature tensor. When the query intent is concentrated, Tk is reduced to highlight high-confidence candidates; when the query intent is cross-domain or has high uncertainty, Tk is increased to retain candidate redundancy in different channels.

[0052] When the same candidate object is recalled by at least two channels after being identified by entity identifier, source identifier, or semantic alignment, the indicator function is set to 1, and the entity consensus bonus factor is applied. A consensus reward will be given to the candidate.

[0053] Step S4: Dynamic Construction of Local Semantic Heterogeneous Graphs and Nonlinear Rearrangement of GCN After obtaining the initial fusion score, in order to solve the fragmentation problem, the system performs the final topology stitching and rearrangement in memory, as follows.

[0054] (1) Construction of graph nodes and edges: Node definition: Map all text blocks retrieved by vector retrieval, entities retrieved by graph retrieval, and graph objects retrieved by multimodal engine to nodes in the local memory graph.

[0055] Explicit edges: directly inherited from the entity relationships existing in the original knowledge graph.

[0056] Implicit edges: The similarity of embedded vectors between different types of nodes is calculated using a text-image alignment encoder or other cross-modal alignment encoders; when the similarity exceeds a preset threshold, implicit semantic edges are dynamically inserted between text blocks, entity nodes and chart object nodes, and the similarity or its normalized value is used as the edge weight.

[0057] (2) Message propagation and rearrangement based on local semantic heterogeneous graphs Perform L-layer relational graph convolutional message propagation on the constructed local semantic heterogeneous graph. In one implementation, L can be set to 2; it can also be set according to the size of the local semantic heterogeneous graph, the complexity of the retrieval task, or computational resources. The node update of the l-th layer is calculated according to the following formula: in, Represents a node In the Hidden state feature vectors of the layer; Represents a set of relation types, wherein the relation types include at least explicit relation types and implicit semantic relation types; Indicates by relation type With nodes The set of connected neighboring nodes; Indicates the first The transformation matrix of the node's own characteristics in the layer; Indicates the first Layer corresponds to relation type The neighbor feature transformation matrix; Representing relation type Next node To the node Normalized edge weights; This represents a non-linear activation function.

[0058] The normalized edge weights can be calculated using the following formula: in, Represents a node With nodes The relationship type between them is The original weights of the edges; for explicit edges, the original weights are preset relation weights or learnable relation weights; for implicit semantic edges, the original weights are the embedding vector similarity between corresponding nodes or their transformed values. This indicates a positive number that prevents the denominator from being zero.

[0059] After message propagation at layer L, according to the node The final rearranged score is calculated using the feature vector of the Lth hidden state and the fusion score generated during the heterogeneous score calibration and dynamic fusion stages, according to the following formula: in, The prior fusion score is used to determine the candidate node. The fusion coefficient is... Let be the hidden state feature vector of node i after the nonlinear information propagation through L layers of graph convolution; and The weights and biases for the linear output projection.

[0060] (3) The system sorts the data in descending order, extracts the Top-K best cross-domain knowledge fragments, and finally injects them into the large language model for answer synthesis.

[0061] Example 1: Industrial-grade 5G communication cross-domain technology and code hybrid retrieval system (1) Implementation configuration: This embodiment is applied to the intelligent R&D question-and-answer system of a certain communications enterprise. The target data source includes the macro-level 5G O-RAN standard specifications and the micro-level srsRAN underlying C++ implementation code. The main hardware and software components of the system include: a natural language processing front-end server, a vector database server, a graph database server, and fusion computing and rearrangement nodes.

[0062] (2) Implementation steps: Step S1: The engineer enters the query: "How to implement MAC layer resource allocation and scheduling in the O-RAN architecture diagram in the SRSRAN code?" The system's front-end lightweight small model (SLM) instantly extracts the core entities "srsRAN", "O-RAN", "MAC layer" and the multimodal quantifier "graph".

[0063] The Transformer pre-trained model used for query encoding extracts hidden states during the pre-filling stage. Since the query spans upper-level standards, lower-level code, and graph objects, the hidden state feature matrix exhibits cross-domain features in radial scale and directional projection. Based on this, the system calculates the isotropic degree NormStat and the anisotropic degree VecStat.

[0064] Sparse MoE gated networks dynamically output activation probability vectors based on feature inputs: This indicates that the current query is highly complex, requiring the simultaneous activation of three engine channels, without any physical blockage.

[0065] Step S2, concurrent dynamic retrieval: Vector engines based on g vec Recall the srsRAN underlying C++ code text block that is most similar to "MAC layer resource allocation".

[0066] The graph engine is based on g graph Run Personalized PageRank (PPR) diffusion in Neo4j to recall the entity logic subgraph of the MAC layer in the O-RAN specification.

[0067] Multimodal engine based on g multi Recall the relevant O-RAN architecture diagrams and their analytical data.

[0068] Step S3, Fractional Calibration and Fusion: The PIT calibrator maps vector cosine similarity and graph long-tail PPR scores to percentiles of a standard uniform distribution, respectively.

[0069] Because the query intent is intertwined across domains and exploratory, the system dynamically generates a high Boltzmann temperature coefficient T. k =0.85, which flattens the fusion probability curve and preserves the recall redundancy of each data source. Simultaneously, if a MAC entity contained in a code block comment is also recalled in the graph, the system provides an additional confidence bonus based on the consensus bonus factor.

[0070] Step S4, Local Semantic Heterogeneous Graph LSHG Convolutional Rearrangement: In memory, the system maps code text blocks, graph entities, and architecture graphs to LSHG graph nodes. Vector similarity is calculated using the CLIP multimodal model to dynamically establish implicit semantic edges between isolated code blocks and architecture graph nodes.

[0071] Perform nonlinear propagation on a graph convolutional network with L=2 layers.

[0072] The system sorts the final scores output by GCN in descending order and feeds the optimal evidence chain, which integrates the chart description, protocol specification entity, and corresponding C++ code, into LLM to generate the final answer.

[0073] By decoupling features and reordering local semantic heterogeneous graph convolutions, the association between upper-layer communication specifications, lower-layer code, and architecture graphs can be enhanced, reducing contextual fragmentation and semantic interference in hybrid retrieval.

[0074] Under the test hardware, data scale, and parameter configuration of this embodiment, the time taken for a single front-end routing is no more than 5 microseconds, and the overall system retrieval and reordering latency is approximately 14.2 milliseconds.

[0075] Example 2: Multi-hop logical reasoning retrieval system based on a large-scale encyclopedic knowledge base (1) Implementation Configuration: This implementation configuration is applied to a complex logic question-answering system, such as MuSiQue for multi-step reasoning academic and engineering scenarios. The target data source is an enterprise-level knowledge base containing hundreds of millions of entity associations and massive amounts of unstructured text of personal / company biographies. The main components of the system include: a HippoRAG2 graph retrieval module based on query-triple matching enhancement, a pgvector text retrieval module, and a PIT-Boltzmann rearrangement module with dynamic temperature control.

[0076] (2) Implementation steps: Step S1: The user inputs a complex hidden multi-hop query: "In which city was the current CEO of the parent company that acquired Company A born?" The system extracts strong "logical deduction" intent features, and the pre-filled interceptor finds that the hidden feature direction projection is single but strongly exhibits in chain structure.

[0077] The MoE gated network outputs an activation probability vector g=[0.25,0.75,0]T, where the activation probability of the graph engine is 0.75, the activation probability of the vector engine is 0.25, and the activation probability of the multimodal engine channel is 0 and is blocked to save physical I / O bandwidth.

[0078] Step S2: The graph engine performs deep PPR diffusion in the knowledge graph to find the entity association path of "Company A -> [acquired] -> Company B (parent company) -> [current CEO] -> Person C -> [birthplace] -> City D".

[0079] The vector engine retrieves background text blocks about "Person C" and "Company A's acquisition".

[0080] Step S3: After the PIT transformation, since the pre-constructed tensor clearly indicates a highly directional multi-step inference intent, the system adaptively reduces the Boltzmann temperature coefficient to T. k =0.35.

[0081] The lower temperature causes a steep polarization of the fusion fraction, which instantly amplifies the weak scores at the end of the diffusion chain in the spectrum on the confidence distribution.

[0082] Step S4: The entity reasoning chain in the graph and the biographical text blocks of the characters recalled by the vector library are combined into a local LSHG graph.

[0083] GCN utilizes information propagation from neighboring nodes to smoothly pass the high weight of the person node C to its corresponding text block and the destination city D. The final Top-K output accurately contains all the key context of this multi-hop inference chain.

[0084] (3) Effects: By preserving the relative confidence order within the channel and combining it with graph structure propagation, the risk of insufficient weighting of end evidence when fusion is based solely on ranking can be reduced, thereby increasing the recall probability of deep evidence.

[0085] In a set of test configurations similar to the MuSiQue multi-step inference task, the last-hop evidence chain recall rate LastHop@5 can be improved from 75.1% to 79.2%. This result is used to illustrate the effect of this embodiment under specific datasets, model versions, and parameter configurations, and does not constitute a limitation on all operating environments.

[0086] This invention integrates front-end routing with back-end to establish parameter association: the continuous activation probability generated by the front-end controls the retrieval channel and participates in heterogeneous score fusion; the fused candidate results are further rearranged through message propagation on the local semantic heterogeneous graph, thereby forming a continuous and executable technical processing chain.

[0087] In summary, the key innovations of this invention can be summarized as follows: 1. Low-overhead intent decoupling based on hidden features in the Transformer query encoding stage: This scheme extracts the hidden state feature matrix of a preset layer during the pre-filling stage of the forward propagation of the Transformer pre-trained model used for query encoding, and characterizes the query complexity by calculating radial scale isotropy and directional projection anisotropy. This mechanism reuses intermediate features in the query encoding process without requiring additional calls to a large language model to perform generative intent classification.

[0088] 2. Blocking Sparse MoE Gating and Continuous Probability Transmission: A sparse hybrid expert gating network with Top-K filtering operators is introduced. The probability of irrelevant physical engine channels is directly set to 0 to physically block them and save I / O bandwidth; while for activated channels, a continuous activation probability vector is output. These continuous probabilities not only serve as routing switches, but are also directly passed as weights to the post-score fusion module, preserving the strength confidence of the intent.

[0089] 3. PIT-Boltzmann Two-Order Heterogeneous Score Fusion Based on Intent Prior Dynamic Adjustment: Addressing the issue of vastly different physical dimensions of scores across various search engines, this paper first utilizes probability integral transformation to map unaligned scores such as cosine similarity and graph diffusion (PPR) scores to a standard uniform distribution. Subsequently, breaking away from traditional static fusion, it directly and dynamically predicts the Boltzmann temperature coefficient Tk using prior intent tensor features, adaptively polarizing or smoothing the fused scores. Simultaneously, an entity consensus bonus factor β is designed to provide nonlinear rewards for nodes appearing simultaneously in multiple paths.

[0090] 4. Multimodal Cross-Domain Local Semantic Heterogeneous Graph Construction and Graph Convolutional Rearrangement: In memory, text blocks retrieved by vectors, entities retrieved by the knowledge graph, and graphs retrieved by multimodal recall are dynamically mapped to unified topological graph nodes. The structured explicit edges inherent in the knowledge graph are preserved, and unstructured implicit semantic edges across nodes are dynamically inserted using a multimodal alignment encoder. Finally, a graph convolutional network is used to achieve non-linear propagation smoothing of neighbor node structure and semantic features, adaptively calculating the final fusion score.

[0091] This invention reuses the hidden state features generated during the query encoding stage to complete the route determination, and blocks low-relevance retrieval channels through sparse gating. Therefore, it can reduce additional generative model calls and invalid retrieval requests, and reduce the amount of routing computation, physical I / O overhead and overall retrieval latency.

[0092] Secondly, this invention improves the comparability of heterogeneous candidate results and the coherence of cross-domain evidence chains through continuous routing probability propagation, probability integral transformation based on query intent-Boltzmann two-stage calibration, and local semantic heterogeneous graph rearrangement. With appropriate training data, parameter configuration, and hardware environment, it can reduce the interference of irrelevant context on subsequent generative models and improve the recall stability of multi-hop evidence.

[0093] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0094] The various embodiments in this specification are described in a related manner. The same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on describing the differences from other embodiments.

[0095] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

[0096] The above embodiments of the present invention are merely examples for clearly illustrating the present invention and are not intended to limit the implementation of the present invention. Those skilled in the art will recognize that other variations or modifications can be made based on the above description. It is neither necessary nor possible to exhaustively describe all possible implementations here. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the claims of the present invention.

Claims

1. A multi-engine dynamic routing retrieval method, characterized in that, include: Step S1: Extract a multidimensional intent feature tensor from the natural language query statement, calculate the radial scale isotropic degree and the directional projection anisotropic degree from the hidden state feature matrix of the Transformer pre-trained model used for query encoding, and generate the sparse continuous activation probability of each retrieval channel based on the multidimensional intent feature tensor, radial scale isotropic degree and directional projection anisotropic degree. Step S2: Send a query to the retrieval channel with an activation probability greater than 0, receive the heterogeneous candidate results and their original retrieval scores returned by each activated retrieval channel, and block the retrieval channel with an activation probability of 0. Step S3: Based on the recall score distribution of each activated retrieval channel, convert the corresponding original retrieval score into the percentile probability of the empirical cumulative distribution within the channel. Step S4: Generate a temperature coefficient based on the multidimensional intent feature tensor, use the sparse continuous activation probability as the channel weight, and perform temperature adjustment and weighted fusion on the empirical cumulative distribution percentile probability of each channel to obtain the fusion score of each heterogeneous candidate result. Step S5: Construct a local semantic heterogeneous graph based on the heterogeneous candidate results, using structured entities, unstructured text blocks, and multimodal objects as nodes, and establish structured explicit edges and implicit semantic edges based on embedding similarity between nodes. Step S6: Perform graph convolutional message propagation on the local semantic heterogeneous graph, calculate the final reordering score of each node based on the node features after propagation and the fusion score, and output cross-domain knowledge fragments sorted according to the final reordering score.

2. The multi-engine dynamic routing retrieval method according to claim 1, characterized in that, Step S1 further includes: Extract the hidden state feature matrix from the first L layers or preset layers of the Transformer pre-trained model used for query encoding; Calculate the radial scale isotropic degree and the directional projection anisotropic degree based on the hidden state feature matrix; The multidimensional intent feature tensor, radial scale isotropy, and directional projection anisotropy are concatenated into gated input features, and the sparse continuous activation probability vector is calculated using the following formula: Where Softmax is the normalization function used to calculate the probabilities in each dimension. For the direction projection anisotropy degree, q For the intent feature dimension, g is a learnable parameter matrix. For the concatenated gated input features, KeepTopK is a sparse filtering operator used to retain the K largest gate values ​​and normalize the remaining gate values ​​after setting them to negative infinity. K is a natural number set according to the number of retrieval channels, query complexity, or resource budget.

3. The multi-engine dynamic routing retrieval method according to claim 1, characterized in that, Step S2 includes: When the activation probability of the vector retrieval channel is greater than 0, a similarity retrieval is performed in the vector database to recall unstructured text blocks. When the activation probability of the graph database retrieval channel is greater than 0, graph diffusion retrieval is performed in the graph database based on the entities in the query to recall the structured entity subgraphs; When the activation probability of the multimodal retrieval channel is greater than 0, images, charts or their parsed objects are recalled based on the text features or multimodal features in the query. Among them, the retrieval channel with an activation probability of 0 will not receive query requests.

4. The multi-engine dynamic routing retrieval method according to claim 1, characterized in that, Step S4 includes: Step S41: Based on the recall score distribution of each activated retrieval channel, convert the corresponding original retrieval score into the percentile probability of the empirical cumulative distribution within the channel. Step S42: Generate Boltzmann temperature coefficients based on the multidimensional intent feature tensor. Use the sparse continuous activation probabilities of each channel as channel weights to fuse the empirical cumulative distribution percentile probabilities adjusted by temperature. The fusion formula is as follows: in, , , These correspond to the vector retrieval channel, graph database retrieval channel, and multimodal retrieval channel, respectively. Quantity; and The percentile fraction after applying the Boltzmann temperature function; As a factor that enhances entity consensus, The value range is [0.5, 1.5]. If the same text block or entity n is recalled simultaneously in multiple channels, the indicator function is triggered. When n is recalled by at least two different retrieval channels, =1, otherwise, .

5. The multi-engine dynamic routing retrieval method according to claim 4, characterized in that, Step S5 includes: The text blocks retrieved by vector retrieval, the entities retrieved by graph database retrieval, and the graph objects retrieved by multimodal retrieval are mapped to nodes in a local semantic heterogeneous graph. The entity relationships in the original knowledge graph are inherited as explicit edges. The embedding similarity between different types of nodes is calculated using a cross-modal alignment encoder. When the similarity exceeds a preset threshold, implicit semantic edges are inserted between the corresponding nodes, and the similarity or its normalized value is used as the edge weight.

6. The multi-engine dynamic routing retrieval method according to claim 5, characterized in that, An L-layer graph convolutional message propagation is performed on the local semantic heterogeneous graph. The hidden state features of each node are updated based on the semantic features of neighboring nodes, the relationship type between nodes, and the edge weights. The hidden state features are then updated according to the candidate nodes. The hidden state feature vector of the Lth layer and the candidate node The fusion score is used to calculate the final rearrangement score according to the following formula: in, The prior fusion score is used to determine the candidate node. The fusion coefficient is... For nodes after L-layer graph convolution and nonlinear information propagation i The hidden state feature vector; and The weights and biases for the linear output projection.

7. A multi-engine dynamic routing retrieval system for implementing the method according to any one of claims 1 to 6, characterized in that, include: The intent feature decoupling and routing determination module is configured to extract a multidimensional intent feature tensor from the natural language query statement, calculate the radial scale isotropic degree and the directional projection anisotropic degree from the hidden state feature matrix of the Transformer pre-trained model used for query encoding, and output the sparse continuous activation probability of each retrieval channel according to the multidimensional intent feature tensor, radial scale isotropic degree and directional projection anisotropic degree. A multi-path dynamic concurrent retrieval engine cluster, including a vector retrieval channel, a graph database retrieval channel, and a multimodal retrieval channel, is configured to send queries to retrieval channels with an activation probability greater than 0 and block retrieval channels with an activation probability of 0. The heterogeneous score calibration and dynamic fusion module is configured to convert the original retrieval scores of each activated retrieval channel into the empirical cumulative distribution percentile probability within the channel, generate a temperature coefficient based on the multidimensional intent feature tensor, and fuse the channels using sparse continuous activation probabilities as channel weights; and The local semantic heterogeneous graph rearrangement module is configured to construct a local semantic heterogeneous graph based on the fused heterogeneous candidate results and perform graph convolutional message propagation.

8. The multi-engine dynamic routing retrieval system according to claim 7, characterized in that, The intent feature decoupling and routing determination module includes a query feature extractor, a hidden state metric calculator, and a sparse hybrid expert gating network. The query feature extractor is used to generate a multidimensional intent feature tensor, the hidden state metric calculator is used to generate radial scale isotropy and directional projection anisotropy, and the sparse hybrid expert gating network is used to output the sparse continuous activation probability of each retrieval channel.

9. The multi-engine dynamic routing retrieval system according to claim 7, characterized in that, The heterogeneous score calibration and dynamic fusion module is used to convert the original retrieval score into the empirical cumulative distribution percentile probability within each channel according to the recall score distribution of each channel; generate a temperature coefficient based on the multidimensional intent feature tensor; and fuse the empirical percentile probabilities of each channel using sparse continuous activation probability as the channel weight.

10. The multi-engine dynamic routing retrieval system according to claim 7, characterized in that, The local semantic heterogeneous graph reordering module is used to: construct structured entities, unstructured text blocks, and multimodal objects as nodes; inherit entity relationships in the knowledge graph as explicit edges, and establish implicit semantic edges between nodes with embedding similarity exceeding a preset threshold; perform graph convolutional message propagation, calculate the final reordering score based on the node features and fusion score after propagation, and output the sorted cross-domain knowledge fragments.