Open advin4603 opened 1 month ago
Are you still having these issues? I haven't had any problems with optional parameters (including QdrantEmbeddingRetriever
) in my pipelines with Hayhooks.
I'm having a similar issue even for an indexing pipeline with QdrantDocumentStore
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.