-
Notifications
You must be signed in to change notification settings - Fork 8
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
Hayhooks fails to deploy Pipeline with input/output type having Optional Fields #25
Comments
Are you still having these issues? I haven't had any problems with optional parameters (including |
I'm having a similar issue even for an indexing pipeline with |
Can you share your pipeline? I'm using QdrantDocumentStore and have not had any of these issues. |
The issue came from another component that was using optional data type. I've fixed it with the PR above. |
Hayhooks fails to deploy a pipeline which contains a component which has as its input (or output) a type which uses
Optional
from typing. Here's an example:This creates a serialised component:
Upon trying to deploy this hayhooks, the server errors with the following trace:
Looks like hayhooks is having trouble during introspection where it fails to create a
TypedDict
for theNumbers
dataclass as it has an optional field while trying to create a valid type.This affects
GoogleAIGeminiGenerator
andQdrantEmbeddingRetriever
as they both use classes with optional fields as inputs.The text was updated successfully, but these errors were encountered: