diff --git a/integrations/gradient/src/haystack_integrations/components/embedders/gradient/gradient_document_embedder.py b/integrations/gradient/src/haystack_integrations/components/embedders/gradient/gradient_document_embedder.py index 56aeb0a0a..a868c6c1b 100644 --- a/integrations/gradient/src/haystack_integrations/components/embedders/gradient/gradient_document_embedder.py +++ b/integrations/gradient/src/haystack_integrations/components/embedders/gradient/gradient_document_embedder.py @@ -43,7 +43,9 @@ class GradientDocumentEmbedder: indexing_pipeline = Pipeline() indexing_pipeline.add_component(instance=GradientDocumentEmbedder(), name="document_embedder") - indexing_pipeline.add_component(instance=DocumentWriter(document_store=InMemoryDocumentStore()), name="document_writer") + indexing_pipeline.add_component( + instance=DocumentWriter(document_store=InMemoryDocumentStore()), name="document_writer") + ) indexing_pipeline.connect("document_embedder", "document_writer") indexing_pipeline.run({"document_embedder": {"documents": documents}}) >>> {'document_writer': {'documents_written': 3}}