Replies: 3 comments 2 replies
-
Yes there is an issue with the encoding 😥 do you have the issue with other pdfs ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Yes. Same issue with other pdfs I tried. They are all from arXiv or paperswithcode.On May 16, 2023, at 3:31 PM, Stan Girard ***@***.***> wrote:
Yes there is an issue with the encoding 😥 do you have the issue with other pdfs ?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I also have trouble uploading documents (pdf's etc). I am running on a Windows 11 machine. The error I get reported in the browser is: Any idea at how to fix this? Thanks! Super-cool if we get this fixed! |
Beta Was this translation helpful? Give feedback.
1 reply
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
When uploading PDFs, I get the following error. Do you have any idea how to fix it?
APIError: {'code': '22P05', 'details': '\u0000 cannot be converted to text.', 'hint': None, 'message': 'unsupported Unicode escape sequence'}
Traceback:
File "/.../.../.../.venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "/.../.../.../quivr-main/main.py", line 72, in
file_uploader(supabase, openai_api_key, vector_store)
File "/.../.../.../quivr-main/files.py", line 42, in file_uploader
filter_file(file, supabase, vector_store)
File "/.../.../.../quivr-main/files.py", line 60, in filter_file
file_processors[file_extension](vector_store, file)
File "/.../.../.../quivr-main/loaders/pdf.py", line 6, in process_pdf
return process_file(vector_store, file, PyPDFLoader, ".pdf")
File "/.../.../.../quivr-main/loaders/common.py", line 32, in process_file
vector_store.add_documents(docs_with_metadata)
File "/.../.../.../.venv/lib/python3.10/site-packages/langchain/vectorstores/base.py", line 62, in add_documents
return self.add_texts(texts, metadatas, **kwargs)
File "/.../.../.../.venv/lib/python3.10/site-packages/langchain/vectorstores/supabase.py", line 78, in add_texts
return self.add_vectors(vectors, docs)
File "/.../.../.../.venv/lib/python3.10/site-packages/langchain/vectorstores/supabase.py", line 113, in add_vectors
return self._add_vectors(self._client, self.table_name, vectors, documents)
File "/.../.../.../.venv/lib/python3.10/site-packages/langchain/vectorstores/supabase.py", line 222, in add_vectors
result = client.from(table_name).insert(chunk).execute() # type: ignore
File "/.../.../.../.venv/lib/python3.10/site-packages/postgrest/_sync/request_builder.py", line 68, in execute
raise APIError(r.json())
Beta Was this translation helpful? Give feedback.
All reactions