mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-26 17:16:52 +08:00
Fix: metadata_obj issue. (#12146)
### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -397,7 +397,7 @@ async def build_chunks(task, progress_callback):
|
|||||||
metadata = {}
|
metadata = {}
|
||||||
for doc in docs:
|
for doc in docs:
|
||||||
metadata = update_metadata_to(metadata, doc["metadata_obj"])
|
metadata = update_metadata_to(metadata, doc["metadata_obj"])
|
||||||
del ck["metadata_obj"]
|
del doc["metadata_obj"]
|
||||||
if metadata:
|
if metadata:
|
||||||
e, doc = DocumentService.get_by_id(task["doc_id"])
|
e, doc = DocumentService.get_by_id(task["doc_id"])
|
||||||
if e:
|
if e:
|
||||||
|
|||||||
Reference in New Issue
Block a user