﻿# Kedro pipeline slices: omitted producer nodes become an external input responsibility

Run a Kedro evaluation slice against deliberate artifacts by inspecting free inputs, node selection and catalog persistence instead of assuming omitted producers run.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-kedro-pipeline-slice-free-input-artifact-boundary/
Language: en

## Reusing expensive preprocessing

A document evaluation pipeline prepares text, computes embeddings and scores retrieval. Only the scoring rule changes. Running the scorer alone seems attractive because model inference was expensive, but the selected scorer still needs embeddings, document identifiers and a reference set. Those values must come from somewhere after their producer nodes are omitted.

Write down the intended reuse boundary before choosing a command. Reuse is meaningful when the stored artifacts correspond to the evaluation population, rather than merely being files that happen to exist from a previous experiment.

## Selection does not imply every dependency is scheduled

The [pipeline slicing guide](https://docs.kedro.org/en/stable/build/slice_a_pipeline/) distinguishes selecting named nodes from selecting downstream or upstream portions. These operations do not express the same subgraph. A node-only selection requires its inputs to be already available; choosing a starting node can include downstream consumers without restoring omitted upstream producers.

Inspect the resulting pipeline description rather than inferring its membership from the option's name. For this example, the expensive encoder should be absent deliberately, while the scorer's other inputs remain part of the access contract.

## Inspect the free input set

The [Pipeline API](https://docs.kedro.org/en/stable/api/pipeline/kedro.pipeline.Pipeline/) exposes inputs that are not produced by the selected graph. That set can change after slicing even though node functions themselves remain unchanged. An intermediate value in the full graph can become an external input of the slice.

Use that list to check document ordering, embedding schema and reference labels. [Distributed shard overlap](/journal/data-guide-distributed-shard-worker-overlap/) illustrates why matching row counts alone does not prove matching examples. A stale embedding table can still have a perfectly plausible shape.

## Match catalog lifetime to artifact reuse

The [DataCatalog API](https://docs.kedro.org/en/stable/api/io/kedro.io.DataCatalog/) supplies the loading interface, but the dataset implementation determines whether a value survives the earlier run. An in-memory intermediate should not be presumed available in a new process. Persist reusable values intentionally and bind them to the expected producer configuration.

A successful load also needs semantic interpretation. Model identity, normalization and document preprocessing can affect stored embeddings without changing their dimensions. Preserve those relationships alongside the reused artifact.

## Review the slice as a new experiment

Record the selected nodes and all newly external inputs together with the changed scoring rule. This makes the resulting metric attributable to a specific reuse decision instead of an unspecified previous run.

For a release review, connect the model and preprocessing references through an [artifact manifest](/journal/tokenizer-artifact-release-manifest/). The slice then answers a narrow experimental question: what changed when the scorer changed while the declared upstream artifacts remained fixed?
