For Technical Leaders: TL;DR
RAG systems can be significantly enhanced by applying rigorous Data Engineering principles. Independent researcher Akhil Koduri argues that existing chunking strategies miss an opportunity: treating ingestion as Feature Engineering rather than simple preprocessing. His framework, “Generative Ingestion,” introduces an ETL (Extract, Transform, Load) approach to unstructured text. By decoupling the “Search Vector” from the “Display Payload,” he eliminates the latency overhead of “Agentic RAG” while maximizing the Signal-to-Noise ratio. The economic case is compelling: for high-traffic applications with frequent document retrieval, moving compute upstream can reduce operational costs by 10-100× compared to runtime summarization approaches.
When Akhil Koduri deployed his first RAG system for an enterprise client, the demo was flawless—instant responses, great accuracy. Two weeks into production, the complaints started rolling in: “Why is the AI showing me half-sentences?” “Can I trust an answer when the citation starts with ‘…he signed it on Tuesday’?”
That’s when Koduri, an AI practitioner with expertise spanning statistics, data science, and generative systems, realized there was a significant opportunity for improvement.
The “Garbage In” Problem Never Left
Across all AI disciplines—whether classical data science, machine learning, or generative systems—one principle remains constant: data quality determines model performance. In traditional ML pipelines, practitioners spend the majority of their time on data cleaning, handling missing values, normalizing distributions, and engineering features. The rule is simple: feeding “garbage” into even the most sophisticated model guarantees suboptimal results.
Yet in the rush to build Retrieval-Augmented Generation (RAG) systems, this discipline is often overlooked. Complex, unstructured documents—PDFs, manuals, logs—are mechanically chopped into chunks and fed directly into vector databases without rigorous feature engineering.
“We stopped engineering our features. We just started indexing the noise,” Koduri explains.
The result is what he calls the “Chunking Dilemma”—systems that retrieve data mathematically but struggle to present it coherently. A user asks a question and gets a citation starting mid-sentence: “…he signed it on Tuesday.”
“We wouldn’t accept NaN values in a DataFrame,” Koduri argues, “so why are we accepting broken sentences in our vector stores?”
The Chunking Strategy Landscape
To be fair, the RAG community has recognized these issues and developed various chunking strategies:
Fixed-Size Chunking divides text by character count or token limits, completely ignoring semantic boundaries. It’s fast and simple but produces the most broken citations.
Recursive Chunking attempts to split on natural boundaries (paragraphs, then sentences, then words), but still operates blindly without understanding context. It reduces but doesn’t eliminate the problem.
Semantic Chunking uses embeddings to group related sentences together. While more sophisticated, it still creates isolated fragments that lack standalone readability.
Agentic Chunking leverages LLMs to intelligently determine split points based on topic shifts. This is the most advanced preprocessing approach, but it shares a critical limitation with all the others.
Koduri’s insight: All existing strategies treat chunking as preprocessing rather than feature engineering. They focus on where to split documents but ignore what happens to the splits afterward. Even the most sophisticated chunking creates contextually orphaned fragments. When a vector engine retrieves these segments, users see broken text.
This creates what Koduri calls a “Trust Gap”—if the AI shows broken sentences, can users trust its answers?
The prevailing solution is Runtime Summarization, often called Agentic RAG: “Let’s fix the data after we retrieve it.”
From an AI engineering perspective, this is an opportunity for optimization. It’s equivalent to cleaning your dataset during inference every time a prediction is requested. It consumes compute, adds significant latency (often 1.5–3 seconds per query), and creates a “Read-Many, Write-Many” pattern.
“We’re solving a data quality problem with a latency-expensive patch,” Koduri notes.
A Feature Engineering Approach to RAG
Koduri’s Generative Ingestion framework treats the problem differently: as a feature engineering challenge, not a preprocessing problem.

Instead of passive ingestion, it introduces an active Transformation Layer that utilizes a lightweight LLM as a “Semantic Cleaner” during the indexing phase. This is analogous to feature engineering in classical ML—transforming raw data into high-signal features before training.
Using a “Sliding Window” approach, the ingestion model reads each chunk along with its neighbors (preceding and succeeding context), then rewrites it into a standalone, grammatically complete paragraph.
For example:
- Input (Raw Chunk): “…he agreed to the terms.”
- Context: Previous chunk mentions “CEO John Smith”
- Transformation: “CEO John Smith agreed to the terms.”
By transforming raw, unstructured noise into high-signal features before they hit the database, the framework solves the context problem permanently. The context is “baked in” so the runtime engine doesn’t have to guess.
This fundamentally differs from existing chunking strategies. Rather than determining optimal split points, Generative Ingestion accepts that splits will happen and focuses on ensuring each resulting chunk is independently coherent.
The Dual-Stream Architecture
However, Koduri recognized a critical trade-off: Signal vs. Noise.
Rewriting text to be “pretty” might scrub away specific artifacts—error codes, specific phrasings, or raw log data—that are crucial for high-recall search. The risk is “over-smoothing” the data, making it harder for vector engines to find exact matches.
His solution: a Dual-Stream Vector Schema that mirrors how data engineers maintain both raw and processed tables in warehouses.

The storage record bifurcates into two distinct streams:
- The Machine Stream (Raw Feature): Indexes the raw, original text for the vector engine, ensuring mathematical recall remains high. The embedding model “sees” the exact words the author wrote.
- The Human Stream (Display Feature): Stores the clean, LLM-generated citation as metadata. This payload is never used for vector math—it’s optimized purely for the user interface.
This dual approach preserves exact-match retrieval precision while delivering human-readable citations.
Zero-Latency Inference

By shifting computational burden to the ingestion phase (analogous to the “training” phase in ML pipelines), Koduri’s framework optimizes inference.
When a user queries the system, the model calculates similarity against the Machine Stream and returns the Human Stream. The result: perfect, standalone citations delivered with the sub-second latency of a standard database lookup. The “Agentic Loop” is eliminated entirely.
The Economic Case
Critics might argue that running an LLM on every chunk during ingestion is expensive. But Koduri’s unit economics analysis is compelling.
Ingestion is a “Write-Once” operation. Runtime summarization is “Read-Many.”
Agentic RAG: If a popular document is retrieved 10,000 times annually, you pay for LLM summarization 10,000 times.
Generative Ingestion: You pay to rewrite it once during indexing. The subsequent 10,000 retrievals are free—just database lookups.
Cost Comparison Example
Consider a knowledge base where popular documents average 5,000 retrievals per year:
- Runtime Summarization (Agentic RAG):
- Cost per LLM call: $0.0003 (using a lightweight model)
- Annual cost per document: 5,000 × \(0.0003 = \)1.50
- Added latency: 1.5-3 seconds per query
- Generative Ingestion:
- One-time ingestion cost: $0.003 (10× more expensive per call due to context window)
- Annual cost per document: $0.003
- Latency: <100ms (database lookup only)
For this scenario, the cost reduction is 500× per document annually, with dramatically improved user experience through sub-second response times.
For high-traffic enterprise applications with hundreds or thousands of frequently-accessed documents, moving compute upstream isn’t just better UX; it’s significantly cheaper long-term. The exact savings scale with retrieval frequency—the more a document is accessed, the greater the ROI of processing it once during ingestion.
Real-World Considerations
Koduri acknowledges trade-offs. Increased ingestion time, storage overhead from dual streams, and document-type variability (structured data like tables or code may require specialized handling) are factors organizations should evaluate against their specific use cases.
In his experience with enterprise deployments, the benefits significantly outweigh costs for knowledge bases with high read-to-write ratios—particularly customer support systems, internal documentation, and compliance databases where documents are accessed frequently but updated infrequently.
Restoring Data Hygiene to AI
Koduri’s work reinforces a fundamental lesson that spans all AI disciplines: tools change, but principles remain constant.
“We cannot treat Large Language Models as magic wands that absolve us of managing data quality,” he emphasizes. “If we feed vector databases broken chunks, we get broken answers—no matter how powerful the LLM.”
Generative Ingestion represents more than an architectural framework—it’s a proposal to restore data hygiene to RAG systems. By decoupling how machines find information from how humans read it, systems can satisfy both the mathematics of vector engines and the psychology of users.
As the AI industry moves toward autonomous agents, this distinction becomes critical. An agent is only as good as the context it retrieves.
It’s time to stop treating ingestion as a “copy job” and start treating it as a feature engineering problem.
About Akhil Koduri
Akhil Koduri is an IEEE Senior Member, independent researcher, and enterprise AI practitioner based in Florence, Kentucky. With formal training in statistics and data science, his work focuses on designing and optimizing generative AI architectures for highly regulated, enterprise-scale environments. Koduri is the creator of the Generative Ingestion Framework, a novel approach developed to address data quality, traceability, and citation integrity challenges in modern retrieval-augmented generation (RAG) systems. His research and applied work aim to enable trustworthy and auditable GenAI deployment across regulated industries.
Building Autonomous AI & Data Agents with Python
Learn to architect, evaluate, and deploy autonomous LLM agents with Python and LangChain.