Skip to content

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

Fix: type violations. (#6262)

Kevin Hu49086964b871
diff --git a/rag/utils/__init__.py b/rag/utils/__init__.py
index 11a2f7db95..8468bf4c38 100644
--- a/rag/utils/__init__.py
+++ b/rag/utils/__init__.py
@@ -100,7 +100,7 @@ def clean_markdown_block(text):
return text.strip()
-def get_float(v: str | int | float | None):
+def get_float(v):
if v is None:
return float('-inf')
try: