mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 20:12:55 +01:00
Added comments
This commit is contained in:
parent
43a9dbe21b
commit
fcaf070059
1 changed files with 1 additions and 0 deletions
|
|
@ -94,6 +94,7 @@ class IngestionHelper:
|
||||||
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)
|
||||||
|
|
||||||
|
# Sanitize NUL bytes in text which can't be stored in Postgres
|
||||||
for i in range(len(documents)):
|
for i in range(len(documents)):
|
||||||
documents[i].text = documents[i].text.replace("\u0000", "")
|
documents[i].text = documents[i].text.replace("\u0000", "")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue