The Payoff: Fresh Data, Live Retrieval, and a Sound Decision
The question that began this series was how a pipeline can keep its answer aligned with information that continues to change. Pathway Live Data Framework's live RAG pipeline provides a demanding answer because it combines changing documents, stateful indexing, user queries, retrieval, and language-model generation. The case brings the whole model together: connectors supply evidence, tables and transformations maintain relationships, temporal policy bounds revision, and persistence and operations keep the computation viable. It also makes the final boundary clear. A fresh index is a capability of the dataflow; a correct and safe answer remains an application responsibility.
One model for changing evidence
Pathway is most coherent when its features are read as consequences of one design rather than as a product menu. An external source becomes a typed table through a connector. The table represents the current state implied by what the framework has observed. Transformations derive other tables and maintain relationships among them. The runtime propagates the consequences of new or revised input, while output connectors translate those changes into an external system. Batch and streaming modes use the same kind of graph under different assumptions about whether the input is finite and whether execution should end.
That model explains why the framework can support both ordinary event processing and AI-oriented indexing. In an alert pipeline, the changing evidence might be measurements and thresholds. In a document pipeline, it might be files that are added, edited, or removed. The surface operations differ, but the problem is structurally similar: a downstream result depends on a stateful relationship, and an upstream change can invalidate a conclusion that was previously emitted.
The temporal chapter added a necessary qualification. A result is not simply “current” because the engine has processed it. Event time can differ from processing time, and a late record can change an earlier aggregate or relationship. delay, cutoff, and keep_results make the lifetime of a result explicit. A live index has a corresponding question: when a document changes, how quickly should the old representation stop being used, and what should happen if the source update is delayed or fails? The framework can propagate the update, but the application still has to define what freshness means for a query.
Persistence adds another layer to the same model. The current table or index is not the only state that matters. The system also needs source positions, metadata, and enough internal state to resume or replay after an interruption. A replayable document source and stable source identity make it possible to reconstruct the index from a checkpoint rather than treat every restart as a new corpus. The delivery guarantee still matters: interrupted recovery can be at least once, so a pipeline that performs external side effects must account for repeated processing.
This integrated view is more useful than a list of capabilities because it exposes dependencies. A connector that detects document changes but cannot be replayed weakens recovery. A retriever that is fast but built from stale or incorrectly parsed chunks weakens answer relevance. A temporal policy that retains every historical version may preserve revisability while consuming more resources. A distributed deployment that cannot share state may prevent the graph from starting. Each boundary changes the meaning of the result produced at the end.
The architecture is therefore a chain of conditional statements:
- If the connector can observe changes, the dataflow can receive new evidence.
- If the parser and splitter represent that evidence faithfully, the index can represent usable content.
- If the retrieval layer finds relevant context, the prompt can provide the model with appropriate material.
- If the model and application logic use that context well, the response can be useful.
- If persistence, delivery, and operations preserve the chain, those properties can continue after updates and restarts.
A failure at one boundary is not repaired by strength at another. A powerful language model cannot recover text that was never parsed or a document that was never indexed. A perfect retriever cannot make a source current if the connector misses its changes. A durable checkpoint cannot turn an untrustworthy source identity into a valid recovery position. Pathway's value is in making these relationships part of one maintained computation, not in making every relationship automatically reliable.
What a live RAG pipeline actually does
A retrieval-augmented generation system has two connected flows. The first prepares and maintains a searchable representation of documents. The second accepts a query, retrieves relevant context, and asks a language model to generate an answer from that context. In a static design, the index can be built once and treated as an external artifact. In Pathway's documented real-time RAG pattern, document ingestion remains connected to the dataflow so that index state changes when the source documents change.
The process begins at a document connector. The example in the documentation reads binary files from a directory with metadata.