Skip to content

Commit

Permalink
fix metadata["original_document"]
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneBinder committed Sep 17, 2024
1 parent b099a1d commit b14d034
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def convert_document(self, document: DocumentType) -> ConvertedDocumentType:
f"this is not allowed. Please adjust '{type(self).__name__}._convert_document()'"
f"to produce documents without that key in metadata."
)
converted_document.metadata["original_document"] = converted_document
converted_document.metadata["original_document"] = document
return converted_document

def encode(
Expand Down

0 comments on commit b14d034

Please sign in to comment.