Skip to content

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

fix: List Chunks API fails to return the correct document status. (#8347)

changqingla4784aa5b0b46
diff --git a/rag/utils/es_conn.py b/rag/utils/es_conn.py
index f761a54e72..5e1f6ceb05 100644
--- a/rag/utils/es_conn.py
+++ b/rag/utils/es_conn.py
@@ -483,6 +483,9 @@ class ESConnection(DocStoreConnection):
if isinstance(v, list):
m[n] = v
continue
+ if n == "available_int" and isinstance(v, (int, float)):
+ m[n] = v
+ continue
if not isinstance(v, str):
m[n] = str(m[n])
# if n.find("tks") > 0: