Skip to content

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

Python SDK: add meta_fields to Document class (#9387)

shasha795c3577c4c9f1
diff --git a/sdk/python/ragflow_sdk/modules/document.py b/sdk/python/ragflow_sdk/modules/document.py
index 6cb0e3b5e3..70c1ac842c 100644
--- a/sdk/python/ragflow_sdk/modules/document.py
+++ b/sdk/python/ragflow_sdk/modules/document.py
@@ -44,6 +44,7 @@ class Document(Base):
self.process_duration = 0.0
self.run = "0"
self.status = "1"
+ self.meta_fields = {}
for k in list(res_dict.keys()):
if k not in self.__dict__:
res_dict.pop(k)