infiniflow / infiniflow/ragflow

[Question]: RAGFlow Q&A response very slow with only 16 documents

Open
#13,633 4 comments 1 reaction 1 assignee View on GitHub

@Magicbook1108 is already working on this.

Since Mar 16, 2026.

🙋‍♀️ question
Dominant language
Go
Stars
91k
Forks
10.8k
Avg merge
1d 14h
Merged PRs (30d)
705

Description

Self Checks
  • 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).
  • Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • Please do not modify this template :) and fill in all the required fields.
Describe your problem

Hi,

I encountered a performance issue when using the Q&A chatbot with an agent workflow.

Environment
  • Number of documents: 16
  • Workflow: Agent + Q&A chatbot
  • Reranker top_k: 30
  • Max rounds: default
  • Retry times: default
Problem

The response time is very slow.
Even though the knowledge base only contains 16 documents, the chatbot sometimes takes a very long time to generate an answer.

Configuration
  • Reranker top_k: 30
  • Max rounds: default value
  • Retry: default value
Question
  1. Is top_k = 30 too large for a small knowledge base like this?
  2. Could the agent workflow cause additional latency during retrieval or reasoning?
  3. Are there recommended settings for small document collections to improve response speed?

Any suggestions for optimizing the response time would be greatly appreciated.

Thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.