mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 20:12:55 +01:00
fix: ensure UTF-8 encoding when reading text files in ingestion helper
This commit is contained in:
parent
b7ee43788d
commit
b77f90e177
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ class IngestionHelper:
|
||||||
)
|
)
|
||||||
# Read as a plain text
|
# Read as a plain text
|
||||||
string_reader = StringIterableReader()
|
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)
|
logger.debug("Specific reader found for extension=%s", extension)
|
||||||
documents = reader_cls().load_data(file_data)
|
documents = reader_cls().load_data(file_data)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue