You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Importing one component type (e.g. OpenAIGenerator) leads to importing all types of the same family/module (e.g. haystack.generators). This causes increased pipeline loading times and can cause dependency issues (e.g. cyclic dependencies, dead locks while concurrent loading, etc.) whereas often it is unlikely that multiple types of a module will be used together (e.g. OpenAIGenerator and HuggingFaceLocalGenerator).
Error message
Expected behavior
Importing/using one component type does not load all other types of the same family/module.
Additional context
E.g. this issue together with #8649 leads to importing all routers and converters when using FileTypeRouter.
Describe the bug
Importing one component type (e.g.
OpenAIGenerator
) leads to importing all types of the same family/module (e.g.haystack.generators
). This causes increased pipeline loading times and can cause dependency issues (e.g. cyclic dependencies, dead locks while concurrent loading, etc.) whereas often it is unlikely that multiple types of a module will be used together (e.g.OpenAIGenerator
andHuggingFaceLocalGenerator
).Error message
Expected behavior
Importing/using one component type does not load all other types of the same family/module.
Additional context
E.g. this issue together with #8649 leads to importing all routers and converters when using
FileTypeRouter
.To Reproduce
FAQ Check
System:
The text was updated successfully, but these errors were encountered: