IDEN
Data Pipelines / RAPIAPP READING

One source. Three destinations: dashboards, predictions, and AI answers.

A complete pipeline does not end when a table loads. Follow the data into decisions, model features, and retrieval with permission checks.

Case study / Store orders, payments, and refund policy

Trace the data. Choose an approach, then select a stage to inspect the artifact and the boundary it must respect.

Diagram: Source: Orders + refunds; Versioned landing; Core model: orders / items / payments; Mart: net sales; Serving: dashboard; Evaluation: reconciliation + decision. A separate branch serves prediction and RAG. The pipeline diagram is conceptual, not a benchmark or product guarantee. Classic and modern approaches can coexist. All interactions run locally in the browser.

One case, all the way through

A store receives orders, payment changes, and documents describing its refund policy. Analytics needs net sales. A predictive model estimates repeat purchases. An assistant answers questions about refunds.

They concern the same store, but they should not all consume one identical final dataset. Branch each serving path from a governed foundation instead of forcing every consumer through one do-everything table.

An example flow is source, versioned landing, normalization, core model, then three serving branches. At relevant boundaries, retain the source ID, event time, ingestion time, and transformation version. Those details help trace a wrong answer back to its cause.

A pipeline that only reaches storage has completed part of the journey.

Analytics needs a business meaning

The analytics branch combines item and payment models with refund rules and reporting periods. A mart serves metrics with explicit definitions. Consumers need to know whether revenue includes tax, shipping, and cancellations.

A semantic layer can help share definitions across tools, but it cannot decide the business definition for you. Reconcile totals against the source over a fixed period. Distinguish zero sales from data that has not arrived yet.

A dashboard with clear freshness information beats a number that only looks final. Decide who owns metric-definition changes and how historical reports are updated.

Predictions must not see the future

Training data should resemble the information that would have been available when a prediction was made. Feast documents point-in-time joins for retrieving feature values at the correct historical time. An event timestamp may not be enough by itself: the data might only have become available later. Keep availability time or another versioning mechanism when the use case needs stricter reproducibility.

A repeat-purchase prediction made on Monday must not use a refund that was only known on Friday. Separate the label, prediction horizon, and features. Evaluate on a sensible time-based split, check for leakage across entities, then monitor for differences between training and serving features.

Sometimes remarkable accuracy is just the future sneaking into the exam.

RAG needs permissions and document versions

Documents must be classified, split into citable passages, given metadata, and indexed. When a user asks a question, retrieval selects candidates based on access and version before the text reaches the model.

If a policy changes but the index does not, answers can become outdated. If the source document is deleted but its derived chunks remain, there is still cleanup to do. Measure retrieval and answer quality separately. Check citation accuracy, version conflicts, unanswered questions, and access violations.

Instructions inside a document are untrusted data, not permission to run a tool. RAG provides more context. It does not certify truth or grant authority.

Put agents after the boundaries are clear

Anthropic distinguishes code-defined workflows from agents that choose more dynamic steps. Use that flexibility when a task needs it. A deterministic revenue calculation does not need a model improvising the result.

An agent can help investigate, but the application still needs to constrain queries, permissions, budget, and consequential actions. Link outputs to the relevant data, model, prompt, retrieval, and evaluation versions. If an assistant cites an old policy, you need to determine whether the failure was in ingestion, indexing, retrieval, or generation.

End-to-end reliability means being able to find the cause and correct the result, not having the most agents in the animation.

Decision checklist

Sources and scope: Primary references reviewed 7 November 2026. The store and diagram are RapiApp illustrations. This series compares patterns and responsibilities. It is not a vendor ranking or a claim that one stack fits every team. References: Feast, “Point-in-time joins”; dbt, “Metrics overview”; Lewis et al., “Retrieval-Augmented Generation”; Anthropic, “Building effective agents.”

Series navigation: 1. Pipelines change. Their old problems come along. 2. ETL vs. ELT: the letters move; responsibility should not disappear. 3. What needs real time? Batch is not retired. 4. A bucket full of files is not automatically a lakehouse. 5. One source, three destinations. 6. A mature pipeline can be repaired, not just run.

Sources

Open the Indonesian version and its original visuals ↗