From cabf5d882d49db873346c044064f7c7a919a6961 Mon Sep 17 00:00:00 2001 From: Corentin Date: Tue, 23 Jan 2024 15:15:40 +0100 Subject: [PATCH] Update integrations/unstructured/src/haystack_integrations/components/converters/unstructured/converter.py Co-authored-by: Stefano Fiorucci --- .../components/converters/unstructured/converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/unstructured/src/haystack_integrations/components/converters/unstructured/converter.py b/integrations/unstructured/src/haystack_integrations/components/converters/unstructured/converter.py index 5fd886800..1c3b2a9e9 100644 --- a/integrations/unstructured/src/haystack_integrations/components/converters/unstructured/converter.py +++ b/integrations/unstructured/src/haystack_integrations/components/converters/unstructured/converter.py @@ -149,7 +149,7 @@ def _create_documents( if document_creation_mode == "one-doc-per-file": text = separator.join([str(el) for el in elements]) metadata = meta.copy() - metadata["name"] = str(filepath) + metadata["file_path"] = str(filepath) docs = [Document(content=text, meta=metadata)] elif document_creation_mode == "one-doc-per-page":