kotaemon
kotaemon copied to clipboard
when i try to upload my file,it return | Disney.md: RetryError[<Future at 0x7f68547eda50 state=finished raised APIConnectionError>]
Description
Thankyou for your excellent workHow can I do?
Reproduction steps
1. Go to 'Files'
2. Click on 'UploadFiles'
3. Scroll down to '.upload'
4. See error
Screenshots
No response
Logs
use_quick_index_mode False
reader_mode default
Chunk size: None, chunk overlap: None
Using reader TxtReader()
Got 0 page thumbnails
Adding documents to doc store
Getting embeddings for 1 nodes
RetryError[<Future at 0x7f68547eda50 state=finished raised APIConnectionError>]
Traceback (most recent call last):
File "/app/libs/ktem/ktem/index/file/pipelines.py", line 808, in stream
file_id, docs = yield from pipeline.stream(
File "/app/libs/ktem/ktem/index/file/pipelines.py", line 648, in stream
yield from self.handle_docs(docs, file_id, file_name)
File "/app/libs/ktem/ktem/index/file/pipelines.py", line 418, in handle_docs
yield from insert_chunks_to_vectorstore()
File "/app/libs/ktem/ktem/index/file/pipelines.py", line 403, in insert_chunks_to_vectorstore
self.handle_chunks_vectorstore(chunks, file_id)
File "/app/libs/ktem/ktem/index/file/pipelines.py", line 445, in handle_chunks_vectorstore
self.vector_indexing.add_to_vectorstore(chunks)
File "/app/libs/kotaemon/kotaemon/indices/vectorindex.py", line 88, in add_to_vectorstore
embeddings = self.embedding(docs)
File "/usr/local/lib/python3.10/site-packages/theflow/base.py", line 1097, in __call__
raise e from None
File "/usr/local/lib/python3.10/site-packages/theflow/base.py", line 1088, in __call__
output = self.fl.exec(func, args, kwargs)
File "/usr/local/lib/python3.10/site-packages/theflow/backends/base.py", line 151, in exec
return run(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/theflow/middleware.py", line 144, in __call__
raise e from None
File "/usr/local/lib/python3.10/site-packages/theflow/middleware.py", line 141, in __call__
_output = self.next_call(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/theflow/middleware.py", line 117, in __call__
return self.next_call(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/theflow/base.py", line 1017, in _runx
return self.run(*args, **kwargs)
File "/app/libs/kotaemon/kotaemon/embeddings/base.py", line 10, in run
return self.invoke(text, *args, **kwargs)
File "/app/libs/kotaemon/kotaemon/embeddings/openai.py", line 104, in invoke
resp = self.openai_response(client, input=input_, **kwargs).dict()
File "/usr/local/lib/python3.10/site-packages/tenacity/__init__.py", line 336, in wrapped_f
return copy(f, *args, **kw)
File "/usr/local/lib/python3.10/site-packages/tenacity/__init__.py", line 475, in __call__
do = self.iter(retry_state=retry_state)
File "/usr/local/lib/python3.10/site-packages/tenacity/__init__.py", line 376, in iter
result = action(retry_state)
File "/usr/local/lib/python3.10/site-packages/tenacity/__init__.py", line 419, in exc_check
raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x7f68547eda50 state=finished raised APIConnectionError>]
Browsers
No response
OS
No response
Additional information
No response
same issue