ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: Please help! Why are all the requests very slow?

Open liucheng123 opened this issue 7 months ago • 2 comments

Self Checks

  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (Language Policy).
  • [x] Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • [x] Please do not modify this template :) and fill in all the required fields.

Describe your problem

I'm not in the debugging mode, When I send any request,about a minute later that the console printed the request log “POST /v1/kb/list?page=1&page_size=30&keywords= HTTP/1.1" 200 -”

Image

Image

Image

liucheng123 avatar May 19 '25 06:05 liucheng123

Hello @liucheng123! I'm Dosu, your friendly bot here to help you solve bugs, answer questions, and guide you on your journey to becoming a contributor. I'll be assisting you while you wait for a human maintainer to join the conversation!

To address the slow request issue in RAGFlow, consider the following solutions:

  1. Disable the Reranker Feature: This feature is known to be slow on CPU and often doesn't significantly improve result quality.
  2. Use a GPU: If possible, use a GPU to speed up embedding processes.
  3. Turn Off RAPTOR: Disable the 'Use RAPTOR to enhance retrieval' option in the knowledge base configuration.
  4. Disable Auto Features: Turn off 'Auto-keyword' and 'Auto-question' features to reduce processing time.
  5. Switch Document Parser: For plain text PDFs, use 'Naive' instead of 'DeepDoc' in the document parser dropdown to save resources.
  6. Page Rank Score: Utilize the page rank score feature for better retrieval across multiple knowledge bases.
  7. Update Software: Ensure you are using the latest version of RAGFlow.

Additionally, if you're experiencing slow homepage loading due to a large vendor.js file, this issue is specific to the local development environment. Building the application for production using 'npm run build' will optimize the package file and resolve loading delays [1][2][3].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

dosubot[bot] avatar May 19 '25 06:05 dosubot[bot]

Post your configuration of chat assistant here

yingfeng avatar May 19 '25 13:05 yingfeng