From 0f81c1696a93618de8316b116349489dd487863d Mon Sep 17 00:00:00 2001 From: Corentin Date: Tue, 23 Jan 2024 15:16:28 +0100 Subject: [PATCH] Update integrations/unstructured/src/haystack_integrations/components/converters/unstructured/converter.py Co-authored-by: Stefano Fiorucci --- .../components/converters/unstructured/converter.py | 3 ++- 1 file changed, 2 insertions(+), 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 9f72c98b3..94bc19082 100644 --- a/integrations/unstructured/src/haystack_integrations/components/converters/unstructured/converter.py +++ b/integrations/unstructured/src/haystack_integrations/components/converters/unstructured/converter.py @@ -103,7 +103,8 @@ def run( :param meta: Optional metadata to attach to the Documents. This value can be either a list of dictionaries or a single dictionary. If it's a single dictionary, its content is added to the metadata of all produced Documents. - If it's a list, the length of the list must match the number of sources, because the two lists will be zipped. + If it's a list, the length of the list must match the number of paths, because the two lists will be zipped. + Please note that if the paths contain directories, the length of the meta list must match the actual number of files contained. Defaults to `None`. """