mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-06-28 00:08:39 +00:00
Added comments
This commit is contained in:
parent
43a9dbe21b
commit
fcaf070059
@ -94,6 +94,7 @@ class IngestionHelper:
|
||||
logger.debug("Specific reader found for extension=%s", extension)
|
||||
documents = reader_cls().load_data(file_data)
|
||||
|
||||
# Sanitize NUL bytes in text which can't be stored in Postgres
|
||||
for i in range(len(documents)):
|
||||
documents[i].text = documents[i].text.replace("\u0000", "")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user