Skip to content

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

fix(agent): resolve single-brace query references (#21295)

Sbaaoui Idriss20fbe3b79668
diff --git a/internal/agent/component/docs_generator.go b/internal/agent/component/docs_generator.go
index 638eb92238..6c7902fce5 100644
--- a/internal/agent/component/docs_generator.go
+++ b/internal/agent/component/docs_generator.go
@@ -342,7 +342,7 @@ func resolveDocsGeneratorContent(ctx context.Context, configured string, inputs
}
}
}
- if !strings.Contains(content, "{{") {
+ if !strings.Contains(content, "{") {
// The think cut itself is the greedy re.sub(r"^.*</think>", "", s,
// re.DOTALL) pattern (as in generator.py). The unconditional trim —
// applied even when no think block is present — mirrors Python's