RAG Pipeline Knowledge Integration for Long-Document Coherence

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current Large Language Models (LLMs) face challenges in processing long documents, particularly in maintaining coherence and performing long-range reasoning, leading to performance drops with lengthy inputs, and existing Retrieval-Augmented Generation (RAG) systems struggle with inefficient document chunking and inadequate context preservation, hindering their adoption in complex 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

1Length of stationary object

If LLMs process long documents directly, then they can handle complete context, but coherence and performance drop due to attention span limitations

Engineering Contradiction:
Improvedocument lengthVSAvoidcoherence
Core Design Contradiction:
Length of stationary objectVSReliability

Solution Approach 1:

The patent segments long documents into smaller chunks or blocks that fit within the LLM's attention span. This is achieved by dividing the document into manageable segments, processing each segment separately, and then reassembling the results to maintain overall coherence while avoiding attention degradation.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a hierarchical dimension to document processing by creating multiple levels of abstraction. It uses document maps, section headers, and summary layers to organize content vertically, allowing the LLM to navigate long documents through structured layers rather than processing linear text, thus maintaining coherence across extended content.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

2Loss of information

If existing RAG systems use traditional document chunking, then they can retrieve information, but context preservation is inadequate leading to poor performance in complex domains

Engineering Contradiction:
Improvecontext preservationVSAvoidretrieval efficiency
Core Design Contradiction:
Loss of informationVSProductivity

Solution Approach 1:

The patent performs preliminary actions by pre-processing documents into structured formats with metadata, headers, and hierarchical organization before retrieval. This preparation includes creating document maps, section indexes, and contextual annotations that enable more effective retrieval while preserving context, reducing the need for extensive post-retrieval processing.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent creates composite document structures that combine multiple types of information (full text, summaries, metadata, hierarchical structure) into unified document representations. This composite approach allows the RAG system to retrieve not just text snippets but structured context packages that maintain relationships between different parts of the document.

Inventive Principle:
Principle #40Composite materials

Data Source

PatentUS20250390520A1Method and System for Optimizing Use of Retrieval Augmented Generation Pipelines in Generative Artificial Intelligence Applications
Publication Date: 2025.12.25 MADISETTI VIJAY
  • US20250390520A1 patent drawing
  • US20250390520A1 patent drawing
  • US20250390520A1 patent drawing

AI summary

Systems and methods for dynamic knowledge integration in LLM systems including receiving multimodal input data comprising text, image, audio, video, and/or code data, extracting information by processing the multimodal input data through a document processor, storing the extracted information in a dynamic knowledge base, receiving a user query at a query processor, identifying knowledge domains related to the user query using domain-specific agents, retrieving real-time information from the dynamic knowledge base responsive to the identified knowledge domains, integrating the real-time information into the processing of an LLM by a dynamic knowledge integrator, and generating a response using the LLM with the real-time information.