mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-09-02 15:55:02 +00:00
[fix] extend documents just with doc not [doc]
This commit is contained in:
@@ -143,7 +143,7 @@ class IngestionHelper:
|
|||||||
# )[0]
|
# )[0]
|
||||||
# doc.metadata["page_label"] = str(i + 1)
|
# doc.metadata["page_label"] = str(i + 1)
|
||||||
|
|
||||||
documents.extend([doc])
|
documents.extend(doc)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Error extracting images from PDF: {e}")
|
logger.error(f"Error extracting images from PDF: {e}")
|
||||||
raise ValueError(f"No text extracted from PDF={file_name}")
|
raise ValueError(f"No text extracted from PDF={file_name}")
|
||||||
|
Reference in New Issue
Block a user