Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: Remove duplicate text output from the thought model on the chat page. (#14301)

balibabuffa8738a78e4
diff --git a/web/src/hooks/logic-hooks.ts b/web/src/hooks/logic-hooks.ts
index 1ef34170c0..dd4e6446f4 100644
--- a/web/src/hooks/logic-hooks.ts
+++ b/web/src/hooks/logic-hooks.ts
@@ -275,7 +275,7 @@ export const useSendMessageWithSse = () => {
if (typeof d !== 'boolean') {
setAnswer((prev) => {
const prevAnswer = prev.answer || '';
- const currentAnswer = d.answer || '';
+ const currentAnswer = d.final ? '' : d.answer || '';
let newAnswer: string;
if (prevAnswer && currentAnswer.startsWith(prevAnswer)) {