In this article
Artifact merging reconciles compatible names; selecting a winning candidate requires application logic and preserved evidence.
Candidate branches intentionally disagree
A flow trains alternative retrieval models in parallel. Each branch writes a model artifact and validation score under the same attribute names. At the join these artifacts differ by design. Treating the conflict as a nuisance to suppress would remove the exact distinction that the experiment was created to measure.
The join needs a decision rule, not an arbitrary incoming object. Define the comparison population, score direction and policy for ties before looking at the candidate results. Otherwise operational arrival details can become an accidental selection policy.
Understand what the merge helper promises
The FlowSpec API documents merge_artifacts as a helper that assigns incoming artifacts while detecting conflicting values. It does not rank candidates or infer which metric should be optimized. Artifacts already assigned in the join are treated differently from unresolved incoming names.
An explicit selected model can therefore be assigned by the join’s own logic, while compatible shared artifacts are merged deliberately. Include or exclude lists control which names are considered; they do not prove that an omitted candidate is scientifically inferior.
Keep candidate results addressable
The flow construction guide explains branch inputs and foreach tasks. At a join, inspect each candidate through its incoming task rather than assuming an ambiguous branch attribute has a unique value. Preserve the selected candidate’s identity alongside its score.
For an embedding experiment, compare the same documents and relevance judgments across candidates. Task-specific benchmark selection matters here: a larger score on a different population is not a defensible explanation for selecting a model on the target workload.
Separate shared context from selected state
A dataset reference inherited unchanged by every branch may be common context. A trained model, random state or branch-specific preprocessing decision is selected state. They should not be swept into the same conceptual category merely because all are Metaflow artifacts.
The results inspection guide provides ways to inspect past task artifacts. Retaining candidate evidence makes later review possible even when the downstream flow carries only the chosen model forward. Avoid recording just a winner label with no path back to the alternatives.
Make the final decision reproducible
Store the selection rule and a compact comparison table with explicit candidate identifiers. Include unsuccessful or ineligible candidates with their status rather than silently turning them into low numeric scores.
Check random-state replay separately when rerunning training. Artifact conflict handling controls which values cross a join; it does not establish that retraining will reproduce those values or that candidate evaluation was free of leakage.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.