Previously, rag_stream relied entirely on the rewrite plugin's internal loadHistory() to load conversation history. This meant that when rewrite was disabled (enable_rewrite=false), RAG mode had NO conversation history at all — multi-turn conversations silently degraded to single-turn. Changes: 1. Add LOAD_HISTORY as the first step in rag_stream pipeline, ensuring history is always available regardless of rewrite config. 2. Make rewrite plugin reuse chatManage.History if already populated by the upstream LOAD_HISTORY step, avoiding duplicate DB queries. This brings rag_stream in line with chat_history_stream which already has LOAD_HISTORY as an independent step. |
||
|---|---|---|
| .. | ||
| agent | ||
| application | ||
| common | ||
| config | ||
| container | ||
| database | ||
| errors | ||
| event | ||
| handler | ||
| im | ||
| infrastructure | ||
| logger | ||
| mcp | ||
| middleware | ||
| models | ||
| router | ||
| runtime | ||
| sandbox | ||
| searchutil | ||
| stream | ||
| tracing | ||
| types | ||
| utils | ||