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

Cannot add node 'Retriever2' You have already added the same instance to the pipeline under the name 'Retriever'. #4922

Closed
Koenlaermans opened this issue May 15, 2023 · 1 comment

Comments

@Koenlaermans
Copy link

You can not add the same component twice under a different name. Not sure why this limitation exists.
Let's say I want to
-retrieve top 10 documents,
-split the top 10 into smaller documents and then
-add the retriever again to get the top 10 smaller documents

This now requires me to make a new retriever instance

@julian-risch
Copy link
Member

Hi @Koenlaermans This is a known issue for the current pipeline implementation and we're working on a major re-implementation of pipelines tracked by the epic #4390
I will close this issue here as it's tracked by #4390 Until that one is solved the workaround is as you described. One reason for the current limitation is about preventing loops.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants