mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-09-01 13:16:04 +08:00
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.