Retrieval-Augmented Generation Pipelines for Long-Document Coherence
Find Innovative SolutionsGenerate 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, limiting their effectiveness in domains like legal, medical, and scientific research.
Innovation Solution
The system employs multi-level generative AI models (h-LLMs) with iterative attention focusing (LASER) and context-optimized retrieval (SCORE-RAG) techniques to enhance attention span and coherence, using hierarchical tokens (H-Tokens) for improved context management and semantic coherence, and a network of smaller LLMs for specialized tasks.
Engineering Contradictions & Design Principles
Engineering 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
Solution Approach 1:
The patent segments long documents into smaller chunks and processes them through multiple RAG pipelines with different context windows. Each pipeline handles a specific segment, maintaining coherence within that segment while collectively covering the entire long document. This resolves the contradiction by dividing the large context into manageable pieces that preserve local coherence.
Solution Approach 2:
The patent introduces a hierarchical dimension to RAG processing, with multiple levels of retrieval and generation pipelines. Instead of a single linear processing path, the system creates a multi-dimensional architecture where different pipelines operate at different hierarchical levels, enabling both comprehensive coverage and maintained coherence across long documents.
2Ease of manufacture
If existing RAG systems use standard document chunking, then processing is simpler, but context preservation becomes inadequate
Solution Approach 1:
The patent applies different chunking strategies to different segments of long documents based on their specific characteristics. Each RAG pipeline is configured with chunking parameters optimized for its particular segment, preserving local context quality while maintaining overall processing simplicity through standardized pipeline architecture.
Solution Approach 2:
The system dynamically adjusts chunking parameters such as chunk size, overlap, and segmentation strategy based on the specific document being processed. This allows optimal context preservation for each document type while keeping the underlying processing mechanism simple and reusable across different scenarios.
3Adaptability or versatility
If a single large LLM is used for all tasks, then model versatility is maintained, but processing efficiency and accuracy for specialized tasks decrease
Solution Approach 1:
The patent segments the single large LLM functionality into multiple specialized RAG pipelines, each optimized for specific task types or document domains. This segmentation allows each pipeline to achieve higher efficiency and accuracy for its specialized function while collectively maintaining the versatility of the overall system through the combination of multiple pipelines.
Data Source
AI summary
A method of generating outputs in LLMs including receiving including textual content, defining a context for the documents including identifying a topic or a category, segmenting the textual content into content chunks associated with the topic or category, assigning a tag to each content chunk, identifying selected chunks, adding metadata to the selected chunks indexing the selected chunks, receiving a query, and performing a response generation process including determining if a cache includes information for the query and either retrieving the information from the cache or performing a search of the index to retrieve the information, generating an augmented query by augmenting the query with retrieved information, generating a response from the augmented query, evaluating the response for compliance with criteria, and one of generating a final response and transmitting the final response to the user or performing a fine-tuning process comprising redefining the of the one or more contexts.


