infiniflow / ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://ragflow.io
Apache License 2.0
22.88k stars 2.24k forks source link

[Question]: why only user question history put in chat llm? #3185

Open zchong1992 opened 1 week ago

zchong1992 commented 1 week ago

Describe your problem

When I was debugging the agent page, I noticed that only the user's historical questions are input into the large model. Why aren't the large model's responses and the user's inputs combined as historical input to the large model?

use QWenChat chat_streamly
history
[{'role': 'system', 'content': '回答用户的问题'}, {'role': 'user', 'content': '1+2'}, {'role': 'user', 'content': '2+3'}]
KevinHuSh commented 1 week ago

Bug fixed.