ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

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

Open zchong1992 opened this issue 1 year ago • 1 comments

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'}]

zchong1992 avatar Nov 04 '24 07:11 zchong1992

Bug fixed.

KevinHuSh avatar Nov 05 '24 02:11 KevinHuSh