mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-05-04 22:37:15 +00:00
Merge b77f90e177
into b7ee43788d
This commit is contained in:
commit
ae1bb80017
@ -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