Knowledge Retrieval Testing timing out #6861

Closed
opened 2026-02-21 18:17:38 -05:00 by yindo · 6 comments
Owner

Originally created by @sugoh on GitHub (Nov 20, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

v0.11.2

Cloud or Self Hosted

Cloud

Steps to reproduce

  1. Use "Knowledge Retreival + Chatbot" template
  2. Add a document to the knowledge base
  3. Crawl a website with this document
  4. Clean embeddings
  5. Run retrieval testing. Doesn't matter if you select Vector Search, Full-Text Search, or Hybrid Search. Also doesn't matter if query text has matching terms.

✔️ Expected Behavior

Output an array of relevant embeddings that were retrieved

Actual Behavior

Worked for a while with an array of relevant embeddings. Subsequently started receiving an error toast notification: timed out; timed out

No changes to knowledge base.

Originally created by @sugoh on GitHub (Nov 20, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version v0.11.2 ### Cloud or Self Hosted Cloud ### Steps to reproduce 1. Use "Knowledge Retreival + Chatbot" template 2. Add a document to the knowledge base 3. Crawl a website with this document 4. Clean embeddings 5. Run retrieval testing. Doesn't matter if you select Vector Search, Full-Text Search, or Hybrid Search. Also doesn't matter if query text has matching terms. ### ✔️ Expected Behavior Output an array of relevant embeddings that were retrieved ### ❌ Actual Behavior Worked for a while with an array of relevant embeddings. Subsequently started receiving an error toast notification: `timed out; timed out` No changes to knowledge base.
yindo added the 🐞 bugcloud labels 2026-02-21 18:17:38 -05:00
yindo closed this issue 2026-02-21 18:17:38 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Nov 20, 2024):

Hey @sugoh! I'm here to help you with any bugs, questions, or contributions you have for Dify. I'm a bot designed to assist you while you wait for a human maintainer. Let's tackle this issue together!

I found a similar discussion regarding timeout errors in the Knowledge Retrieval process: core.model_runtime.errors.invoke.InvokeError: [huggingface_tei] Error: timed out, which is still unsolved [1].

Additionally, the Knowledge Retrieval feature relies on the boto3 client to interact with the AWS Bedrock service. Timeout errors could potentially arise from this dependency if there are issues with network connectivity, AWS service availability, or incorrect configuration of AWS credentials and region [2].

To address the timeout issue, you might want to check the network connectivity and ensure that the AWS configurations are correct. If the problem persists, consider looking into the specific dependencies or services that the Knowledge Retrieval feature relies on, as they might contribute to the timeout errors.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Nov 20, 2024): <!-- Greeting --> Hey @sugoh! I'm here to help you with any bugs, questions, or contributions you have for Dify. I'm a bot designed to assist you while you wait for a human maintainer. Let's tackle this issue together! <!-- Answer --> I found a similar discussion regarding timeout errors in the Knowledge Retrieval process: [core.model_runtime.errors.invoke.InvokeError: [huggingface_tei] Error: timed out](https://github.com/langgenius/dify/discussions/7441), which is still unsolved <sup>[[1]](https://github.com/langgenius/dify/discussions/7441)</sup>. Additionally, the Knowledge Retrieval feature relies on the `boto3` client to interact with the AWS Bedrock service. Timeout errors could potentially arise from this dependency if there are issues with network connectivity, AWS service availability, or incorrect configuration of AWS credentials and region <sup>[[2]](https://github.com/langgenius/dify/blob/main/api/services/knowledge_service.py)</sup>. To address the timeout issue, you might want to check the network connectivity and ensure that the AWS configurations are correct. If the problem persists, consider looking into the specific dependencies or services that the Knowledge Retrieval feature relies on, as they might contribute to the timeout errors. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@sugoh commented on GitHub (Nov 20, 2024):

We've turned rerank model off but have added a cohere rerank model anyway (following the solution suggested by issue 3110). This made no difference.

@sugoh commented on GitHub (Nov 20, 2024): We've turned rerank model off but have added a cohere rerank model anyway (following the solution suggested by [issue 3110](https://github.com/langgenius/dify/issues/3110)). This made no difference.
Author
Owner

@xjose97x commented on GitHub (Nov 20, 2024):

I'm experiencing this issue as well.

My bot can't retrieve content from the knowledge base.
I also can't upload new documents to the knowledge base.

Could this be a connection issue with the vector database used by Dify Cloud?

@xjose97x commented on GitHub (Nov 20, 2024): I'm experiencing this issue as well. My bot can't retrieve content from the knowledge base. I also can't upload new documents to the knowledge base. Could this be a connection issue with the vector database used by Dify Cloud?
Author
Owner

@highhead commented on GitHub (Nov 20, 2024):

Expieriencing the same. What I also find interesting is, that it seems as there has been a rollback done for knowledge base files (or vector data entries, not sure). It is suddenly an older version...

PS: Could this be related or causing the issues? https://github.com/langgenius/dify/issues/10881

@highhead commented on GitHub (Nov 20, 2024): Expieriencing the same. What I also find interesting is, that it seems as there has been a rollback done for knowledge base files (or vector data entries, not sure). It is suddenly an older version... PS: Could this be related or causing the issues? https://github.com/langgenius/dify/issues/10881
Author
Owner

@crazywoola commented on GitHub (Nov 20, 2024):

This should be resolved. Sorry for the inconvenience.

@crazywoola commented on GitHub (Nov 20, 2024): This should be resolved. Sorry for the inconvenience.
Author
Owner

@xjose97x commented on GitHub (Nov 21, 2024):

This should be resolved. Sorry for the inconvenience.

could we get some details on what the issue was? thx

@xjose97x commented on GitHub (Nov 21, 2024): > This should be resolved. Sorry for the inconvenience. could we get some details on what the issue was? thx
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6861