[fix] extend documents just with doc not [doc]

This commit is contained in:
zoazhyga
2024-09-05 18:05:49 +02:00
parent f592ae712c
commit be204cf8bd

View File

@@ -143,7 +143,7 @@ class IngestionHelper:
# )[0]
# doc.metadata["page_label"] = str(i + 1)
documents.extend([doc])
documents.extend(doc)
except Exception as e:
logger.error(f"Error extracting images from PDF: {e}")
raise ValueError(f"No text extracted from PDF={file_name}")