mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-08-31 06:35:17 +00:00
[fix] extend documents just with doc not [doc]
This commit is contained in:
@@ -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}")
|
||||
|
Reference in New Issue
Block a user