Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a ListJoiner Component to Merge Multiple Lists into a Single List #8714

Open
Amnah199 opened this issue Jan 13, 2025 · 0 comments
Open
Assignees
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

Comments

@Amnah199
Copy link
Contributor

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

@Amnah199 Amnah199 added type:feature New feature or request 2.x Related to Haystack v2.0 labels Jan 13, 2025
@julian-risch julian-risch added the P2 Medium priority, add to the next sprint if no P1 available label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants