-
Notifications
You must be signed in to change notification settings - Fork 238
[BUG]: rag_chain make inavalid conversation #111
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Version
2.3.0
Describe the bug.
Many LLMs require that message roles alternate in the order of (system)/user/assistant/user/assistant/...,
However, the messages generated by __rag_chain are structured as user (context) / user (query),
which does not satisfy this requirement.
As a result, errors occur when calling LLMs (for example, with Gemma3).
It would be helpful to adjust or correct the message sequence to alternate roles properly.
Minimum reproducible example
Relevant log output
Full env printout
Other/Misc.
No response
Code of Conduct
- I agree to follow THIS PROJECT's Code of Conduct
- I have searched the open bugs and have found no duplicates for this bug report
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working