Closed lfunderburk closed 3 months ago
@lfunderburk I can't seem to reproduce the issue. This should fail given the steps you provided to reproduce but it doesn't.
from haystack import Pipeline
from haystack.components.fetchers import LinkContentFetcher
from haystack.components.converters import HTMLToDocument
fetcher = LinkContentFetcher()
converter = HTMLToDocument()
pipeline = Pipeline()
pipeline.add_component(name="foo", instance=fetcher)
pipeline.add_component(name="bar", instance=converter)
pipeline.connect("foo", "bar")
I can't seem to pin point the exact issue here either. If you could provide a snippet to reproduce the issue reliably it would be great. Even a Colab is fine.
Advent of Haystack Day 1 and 2
Describe the bug Giving components names that deviate from the instance variable name causes the pipelines to malfunction. This works
Assume I give the splitter instance the name "preprocessor"
This causes the error message below
Error message
Expected behavior I understood the name given was for the purpose of drawing the pipeline - but it seems to cause issues if I change it. If the name is meant to be fixed, then having a variable called name is not needed.
Additional context
Advent of Haystack Day 2
To Reproduce Add and connect components with a name that differs from the instance name.
FAQ Check
System: