Add a ListJoiner
Component to Merge Multiple Lists into a Single List
#8714
Labels
2.x
Related to Haystack v2.0
P2
Medium priority, add to the next sprint if no P1 available
type:feature
New feature or request
Is your feature request related to a problem? Please describe.
There is a need for a
ListJoiner
component in Haystack to handle scenarios where multiple lists (e.g.,List[ChatMessage]
) need to be merged into a single flat list. This component would simplify workflows by consolidating variadic inputs into one unified list, eliminating nested structures. The output order would respect the pipeline's execution sequence, with user-provided inputs always added first.Current joiners cannot provide this functionality.
Describe the solution you'd like
For reference, a similar implementation exists in the Haystack cookbook
The above reference also describes one of the use cases of
ListJoiner
.Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: