Domain-Specific RAG Agent Networks for Long-Context LLM Coherence

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Large Language Models (LLMs) face challenges in processing long documents, particularly in maintaining coherence and performing long-range reasoning, leading to performance drops as input context length increases, and existing Retrieval-Augmented Generation (RAG) systems struggle with inefficient document chunking and inadequate context preservation, hindering their adoption in domains like legal, medical, and scientific research.

Innovation Solution

The system employs a multi-level generative AI approach using h-LLMs with varying levels of accuracy, iterative attention focusing (LASER) and context-optimized retrieval (SCORE-RAG) to enhance attention span and coherence in LLMs, incorporating advanced document processing, intelligent retrieval, and adaptive response generation mechanisms.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If LLMs process long documents with increased context length, then more information can be analyzed, but coherence and performance deteriorate

Engineering Contradiction:
Improvecontext lengthVSAvoidcoherence
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The patent divides long documents into multiple chunks or segments that are processed separately. Each chunk is handled within the LLM's optimal context window, and results are aggregated to maintain overall coherence. This segmentation approach allows processing of lengthy documents while preserving the model's ability to maintain coherent reasoning within each segment.

Inventive Principle:
Principle #1Segmentation

2Quantity of substance

If existing RAG systems retrieve more context from documents, then more information is available, but retrieval efficiency and context preservation worsen

Engineering Contradiction:
Improveretrieved contextVSAvoidretrieval efficiency
Core Design Contradiction:
Quantity of substanceVSProductivity

Solution Approach 1:

The patent performs preliminary indexing and embedding of document chunks before retrieval. By pre-processing documents into structured, searchable units with metadata and embeddings, the system enables efficient retrieval of relevant context without requiring full document scanning during query processing. This preliminary organization preserves context quality while improving retrieval speed.

Inventive Principle:
Principle #10Preliminary action

3Ease of manufacture

If document chunking is performed to manage long documents, then processing becomes feasible, but context preservation and coherence worsen

Engineering Contradiction:
Improveprocessing feasibilityVSAvoidcontext preservation
Core Design Contradiction:
Ease of manufactureVSLoss of information

Solution Approach 1:

The patent implements feedback mechanisms where retrieval results and generation outputs are used to refine subsequent retrieval queries and chunk selections. The system monitors coherence metrics and adjusts chunk boundaries, overlap regions, and retrieval strategies based on performance feedback, thereby preserving context while maintaining processing feasibility for long documents.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS20260023765A1Method and System for Optimizing Use of Retrieval Augmented Generation Pipelines in Generative Artificial Intelligence Applications
Publication Date: 2026.01.22 MADISETTI VIJAY
  • US20260023765A1 patent drawing
  • US20260023765A1 patent drawing
  • US20260023765A1 patent drawing

AI summary

Systems and methods for implementing domain-specific agent networks including configuring specialized agents optimized for retrieving information from a respective specific knowledge domain, receiving a user query, analyzing the user query to identify relevant knowledge domains, activating a subset of the specialized agents corresponding to the relevant knowledge domains, retrieving information by the subset of specialized agents, aggregating the retrieved information including information from a plurality of knowledge domains, providing the aggregated information to one or more h-LLMs, receiving a plurality of responses from the one or more h-LLMs, and generating a comprehensive response from the plurality of responses, the comprehensive response incorporating information from the plurality of knowledge domains.