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":