소스 검색

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)
tags/v0.20.2
shasha79 2 달 전
부모
커밋
5c3577c4c9
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1
    0
      sdk/python/ragflow_sdk/modules/document.py

+ 1
- 0
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)

Loading…
취소
저장