Commit 8bcb4425 authored by John Wang's avatar John Wang

Merge branch 'feat/upgrade-langchain' into deploy/dev

parents 0611f639 6259c8a6
...@@ -34,7 +34,7 @@ class PdfLoader(BaseLoader): ...@@ -34,7 +34,7 @@ class PdfLoader(BaseLoader):
if self._upload_file: if self._upload_file:
if self._upload_file.hash: if self._upload_file.hash:
plaintext_file_key = 'upload_files/' + self._upload_file.tenant_id + '/' \ plaintext_file_key = 'upload_files/' + self._upload_file.tenant_id + '/' \
+ self._upload_file.hash + '.plaintext' + self._upload_file.hash + '.0625.plaintext'
try: try:
text = storage.load(plaintext_file_key).decode('utf-8') text = storage.load(plaintext_file_key).decode('utf-8')
plaintext_file_exists = True plaintext_file_exists = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment