FEA-Bench / testbed /deepset-ai__haystack /releasenotes /notes /component-greedy-d6630af901e96a4c.yaml
hc99's picture
Add files using upload-large-folder tool
ce676f7 verified
raw
history blame
551 Bytes
---
features:
- |
Add `is_greedy` argument to `@component` decorator.
This flag will change the behaviour of `Component`s with inputs that have a `Variadic` type
when running inside a `Pipeline`.
Variadic `Component`s that are marked as greedy will run as soon as they receive their first input.
If not marked as greedy instead they'll wait as long as possible before running to make sure they
receive as many inputs as possible from their senders.
It will be ignored for all other `Component`s even if set explicitly.