1
0
mirror of https://github.com/imartinez/privateGPT.git synced 2025-05-04 22:37:15 +00:00
This commit is contained in:
Akshay Jalluri 2025-01-23 10:12:02 +00:00 committed by GitHub
commit ae1bb80017
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,7 +89,7 @@ class IngestionHelper:
)
# Read as a plain text
string_reader = StringIterableReader()
return string_reader.load_data([file_data.read_text()])
return string_reader.load_data([file_data.read_text(encoding="utf8")])
logger.debug("Specific reader found for extension=%s", extension)
documents = reader_cls().load_data(file_data)