Files
ragflow/rag
Chakshu Dhannawat 146765f32e fix(agentic_rag): include configured system prompt in RAGTools.sys_prompt() (#18927)
Fixes #18833. 

When the reasoning level is enabled, `dialog_service.rag_agent()` builds a custom system prompt and passes it to `RAGTools`. `RAGTools.sys_prompt()`, however, returned only the router instructions, so the configured system prompt was dropped from the outer LLM.

This change prepends the configured system prompt to the router prompt when one is provided, and adds regression tests.
2026-08-28 12:10:47 +08:00
..
2026-08-27 16:14:12 +08:00
2025-12-31 17:18:30 +08:00