v0.5.0
New Experiments
- New
Pipeline
class with new pipeline run logic -Pipeline
example
Full Changelog: v0.4.0...v0.5.0
🧬 New Pipeline Logic
This release introduces a reimplementation of the pipeline-run logic to resolve multiple issues, improving reliability and performance. These changes will also be included in Haystack 2.10.
Fixed Issues:
-
Exceptions in pipelines with two cycles
- Pipelines with two cycles sharing an optional (like in
PromptBuilder
) or a greedy variadic edge (e.g., inBranchJoiner
) might raise exceptions. Details here.
- Pipelines with two cycles sharing an optional (like in
-
Incorrect execution in cycles with multiple optional or variadic edges
- Entry points for cycles were non-deterministic, causing components to run with unexpected inputs or multiple times. This impacted execution time and final outputs.
-
Missing intermediate outputs in cycles
- Outputs produced within a cycle were overwritten, preventing downstream components from receiving them.
-
Premature execution of lazy variadic components
- Components like
DocumentJoiner
sometimes executed before receiving all inputs, leading to repeated partial executions that affected downstream results.
- Components like
-
Order-sensitive behavior in
add_component
andconnect
- Some bugs above occurred due to specific orderings of
add_component
andconnect
in pipeline creation, causing non-deterministic behavior in cyclic pipelines.
- Some bugs above occurred due to specific orderings of
Am I Affected by this Change?
-
Non-cyclic pipelines without lazy variadic components:
No impact—your pipelines should function as before. -
Non-cyclic pipelines with lazy variadic components:
Check inputs and outputs of components likeDocumentJoiner
for issues#4
and#5
. UseLoggingTracer
with content tracing to validate behavior. Component execution order now uses lexicographical sorting; rename upstream components if necessary. -
Pipelines with cycles:
Review your pipeline outputs as well as the component input and outputs to ensure expected behavior, as you may encounter any of the above issues.
Share your comments in discussion #177