RAG Pipeline Retrieval and Chunking for Long-Context LLM Coherence

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Large Language Models (LLMs) face challenges in maintaining coherence and performing long-range reasoning when processing long documents, leading to performance drops, especially in domains like legal, engineering, and healthcare, and existing Retrieval-Augmented Generation (RAG) systems struggle with inefficient document chunking and inadequate context preservation.

Innovation Solution

The system employs a multi-level approach with h-LLMs, iterative attention focusing (LASER), and context-optimized retrieval (SCORE-RAG) to enhance attention span and coherence in LLMs, using techniques like document chunking, intelligent retrieval, and adaptive response generation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If LLMs process long documents directly, then they can maintain original context and semantics, but their attention span is limited and coherence drops

Engineering Contradiction:
ImprovecoherenceVSAvoidattention span
Core Design Contradiction:
ReliabilityVSLength of moving object

Solution Approach 1:

The patent segments long documents into smaller chunks or blocks that fit within the LLM's attention span. This is achieved through document chunking techniques that divide the input text into manageable portions, allowing the model to process each segment with maintained coherence while reconstructing the overall meaning across multiple processing steps.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements a hierarchical processing structure where chunks are nested within larger document contexts. Multiple levels of abstraction are created, with individual chunks being processed and then integrated into progressively larger contexts, enabling the system to handle documents of arbitrary length while maintaining coherence at each level.

Inventive Principle:
Principle #7Nested doll (Nesting)

2Loss of information

If existing RAG systems chunk documents, then they can manage long documents, but context preservation is inadequate

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

Solution Approach 1:

The patent performs preliminary actions by creating multiple representations of document chunks before retrieval, including original text, embeddings, and contextual metadata. This pre-processing ensures that when chunks are retrieved, the full context is already prepared and available, reducing information loss during the retrieval-augmented generation process.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces intermediary structures such as context windows and attention mechanisms that mediate between the chunked documents and the LLM. These intermediaries preserve contextual relationships by maintaining connections between adjacent chunks and providing bridging information that prevents context loss during retrieval and generation.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Reliability

If LLMs process long documents with full context, then comprehension is complete, but computational load increases

Engineering Contradiction:
ImprovecomprehensionVSAvoidcomputational load
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent applies local quality by providing different levels of contextual information to different parts of the processing pipeline. Individual chunks receive focused computational resources with their immediate context, while broader document context is provided selectively based on relevance. This uneven distribution of computational effort maintains comprehension while reducing overall load.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent implements partial processing by focusing computational resources on the most relevant chunks for each query rather than processing the entire document uniformly. The system retrieves and processes only the necessary portions of the document context required to answer specific questions, avoiding unnecessary computational expenditure on irrelevant sections.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS20260010551A1Method and System for Optimizing Use of Retrieval Augmented Generation Pipelines in Generative Artificial Intelligence Applications
Publication Date: 2026.01.08 MADISETTI VIJAY
  • US20260010551A1 patent drawing
  • US20260010551A1 patent drawing
  • US20260010551A1 patent drawing

AI summary

A method for generating targeted advertisements LLM systems including receiving a user query, identifying categories of information by analyzing the user query using modeling techniques, generating derived queries from the user query, generating query responses by processing the user query and the derived queries through h-LLMs, determining advertisement content based on the categories of information and a user intention or a user attitude, generating targeted advertisements responsive to the advertisement content, and creating an advertisement-enhanced response by integrating the advertisements with the query responses.