Multi-Modal RAG Retrieval With Twin Databases and Image Ingestion
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Traditional machine learning models lack the ability to incorporate up-to-date information after the training phase, leading to inaccurate responses in dynamic environments where data is constantly evolving or vast.
Innovation Solution
Retrieval-Augmented Generation (RAG) agents integrate retrieval techniques with generative models to access and synthesize real-time data from external sources, enhancing adaptability and accuracy.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If traditional machine learning models use static training data, then the model structure is simple and easy to implement, but the model cannot provide accurate responses for up-to-date information in dynamic environments
Solution Approach 1:
The patent implements a dynamic knowledge base that transitions from static training data to a living database that continuously updates with new information. The system uses retrieval-augmented generation to dynamically fetch relevant information from external sources during inference, allowing the model to adapt to changing information without requiring retraining. This resolves the contradiction by making the knowledge base dynamic while maintaining the simplicity of the base model architecture.
Solution Approach 2:
The patent introduces an intermediary retrieval system that bridges the gap between the static model and dynamic information sources. This intermediary layer queries external databases and APIs to fetch up-to-date information, which is then fed back to the model for generation. This mediator enables the model to access current information without changing the core model structure, thus maintaining simplicity while improving adaptability.
2Reliability
If RAG agents retrieve data from external sources in real-time, then the system can access up-to-date information and improve accuracy, but the system complexity increases compared to traditional models
Solution Approach 1:
The patent segments the system into distinct functional modules: a retrieval module for querying external data sources, a generation module for producing responses, and a knowledge base for storing information. This segmentation allows each component to be optimized independently and simplifies the overall architecture by dividing complex functionality into manageable pieces. The retrieval-augmented generation framework itself is segmented into separate retrieval and generation stages, making the system more manageable despite the added complexity.
Solution Approach 2:
The patent creates a universal retrieval-augmented generation framework that can handle multiple types of data sources (databases, APIs, documents) and various application domains through a single unified architecture. The system uses a general-purpose retrieval mechanism that works across different data formats and sources, reducing the need for separate specialized systems for each data type. This multi-functionality approach manages complexity by providing a single versatile solution rather than multiple specialized systems.
3Adaptability or versatility
If traditional machine learning models are retrained to incorporate new data, then the model knowledge is updated, but the process is time-consuming and computationally expensive
Solution Approach 1:
The patent performs preliminary actions by pre-processing and indexing data from external sources before they are needed for inference. The retrieval system is pre-configured with data sources and indexing mechanisms, so when new information becomes available, it can be quickly ingested and indexed without requiring full model retraining. This preliminary preparation enables rapid knowledge updates by having the infrastructure already in place to accommodate new data.
Solution Approach 2:
The patent changes the fundamental parameter of how knowledge is stored and updated: instead of modifying model weights through retraining, the system updates a separate knowledge base database. This parameter change from model-weight modification to database updates allows for instantaneous knowledge incorporation without the time-consuming process of retraining. The retrieval-augmented generation system adapts to new information by updating external data sources rather than modifying the base model parameters.
4Adaptability or versatility
If RAG agents use multiple data formats and sources, then the system can process comprehensive information, but the data ingestion and processing complexity increases
Solution Approach 1:
The patent implements a universal data ingestion framework that can handle multiple data formats (structured data, unstructured text, tables, images) through a single unified processing pipeline. The system uses a general-purpose parser and processor that automatically detects and handles different data types without requiring separate specialized ingestion systems for each format. This multi-functional approach manages complexity by providing a single versatile ingestion mechanism rather than multiple specialized systems.
Solution Approach 2:
The patent uses copying strategies by creating standardized internal representations of different data formats. Instead of processing each data format differently, the system converts various external formats into a unified internal data structure that can be consistently processed by the generation model. This copying approach simplifies complexity by creating a common representation layer that abstracts away the differences between various data formats and sources.
Data Source
AI summary
Techniques for ingesting and using content items by a Retrieval-Augmented Generation (RAG) agent are disclosed. A RAG agent accesses content items that include textual data and/or non-textual image data (e.g., a table, a chart, a document, or a picture). When the RAG agent detects that content items include non-textual image data, the RAG agent invokes a large multimodal model (LMM) that is configured to classify the non-textual image data into a variety of classifications. The RAG agent also classifies the non-textual image data. Using this classification as selection criteria, the RAG agent selects an LMM that corresponds to the classification from a set of available LMMs. The RAG agent ensures that the selected LMM is configured to generate text from non-textual image data that corresponds to the classification. The generated text and extracted image data are both used by the RAG agent to respond to queries.


