Sfoglia il codice sorgente

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 mesi fa
parent
commit
5c3577c4c9
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1
    0
      sdk/python/ragflow_sdk/modules/document.py

+ 1
- 0
sdk/python/ragflow_sdk/modules/document.py Vedi File

@@ -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…
Annulla
Salva