When using variadic inputs in a hybrid retrieval pipeline with a DocumentJoiner component, pipeline.run fails with:
TypeError: SimilarityRanker.run() missing 1 required positional argument: 'query' although pipeline.run sets the 'query' argument.
It seems that the joiner and the ranker components in this pipeline are called twice.
_run_component is called for the joiner before both retrievers ran.
Further, _run_component is called first with the correct input for the ranker and then without the query param.
When using variadic inputs in a hybrid retrieval pipeline with a DocumentJoiner component,
pipeline.run
fails with:TypeError: SimilarityRanker.run() missing 1 required positional argument: 'query'
althoughpipeline.run
sets the 'query' argument.It seems that the joiner and the ranker components in this pipeline are called twice.
_run_component
is called for the joiner before both retrievers ran. Further,_run_component
is called first with the correct input for the ranker and then without thequery
param.To reproduce https://colab.research.google.com/drive/1DXTcrdQUBsctpCUFo5Hrm0p1BWn9PzOC?usp=sharing