Skip to content

Commit

Permalink
Update integrations/unstructured/src/haystack_integrations/components…
Browse files Browse the repository at this point in the history
…/converters/unstructured/converter.py

Co-authored-by: Stefano Fiorucci <[email protected]>
  • Loading branch information
Corentin and anakin87 authored Jan 23, 2024
1 parent 3a80a94 commit cabf5d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit cabf5d8

Please sign in to comment.