Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when i try to upload my file,it return | Disney.md: RetryError[<Future at 0x7f68547eda50 state=finished raised APIConnectionError>] #613

Open
qiqi0308 opened this issue Jan 9, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@qiqi0308
Copy link

qiqi0308 commented Jan 9, 2025

Description

image
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

@qiqi0308 qiqi0308 added the bug Something isn't working label Jan 9, 2025
@Richardjjjj
Copy link

same issue

@qiqi0308
Copy link
Author

qiqi0308 commented Jan 9, 2025

same issue

mo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants