Skip to content

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

Update utils.py (#7091)

BUJIQI627fd002ae14
diff --git a/graphrag/utils.py b/graphrag/utils.py
index 13e62ec04c..20313e702e 100644
--- a/graphrag/utils.py
+++ b/graphrag/utils.py
@@ -56,7 +56,7 @@ def perform_variable_replacements(
def replace_all(input: str) -> str:
result = input
for k, v in variables.items():
- result = result.replace(f"{{{k}}}", v)
+ result = result.replace(f"{{{k}}}", str(v))
return result
result = replace_all(result)