infiniflow / infiniflow/ragflow
[Question]: RAGFlow Q&A response very slow with only 16 documents
Open
@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
- Is
top_k = 30too large for a small knowledge base like this? - Could the agent workflow cause additional latency during retrieval or reasoning?
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.