From 5c3577c4c9f15b7af3d5b72686def7274302f54f Mon Sep 17 00:00:00 2001 From: shasha79 Date: Tue, 12 Aug 2025 05:16:12 +0300 Subject: [PATCH] Python SDK: add meta_fields to Document class (#9387) ### What problem does this PR solve? Python class Document was missing "meta_fields", e.g. when querying, the document instances came without meta_fields ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- sdk/python/ragflow_sdk/modules/document.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/python/ragflow_sdk/modules/document.py b/sdk/python/ragflow_sdk/modules/document.py index 6cb0e3b5e..70c1ac842 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)