mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-04-28 11:36:25 +00:00
fix: ensure UTF-8 encoding when reading text files in ingestion helper
This commit is contained in:
parent
b7ee43788d
commit
b77f90e177
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user