Fix: image not displaying thumbnails when using pipeline (#12574)

### What problem does this PR solve?

Fix image not displaying thumbnails when using pipeline.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Yongteng Lei
2026-01-13 12:54:13 +08:00
committed by GitHub
parent 64c75d558e
commit 68e5c86e9c
2 changed files with 13 additions and 3 deletions

View File

@ -300,6 +300,11 @@ async def build_chunks(task, progress_callback):
(chunk["content_with_weight"] + str(d["doc_id"])).encode("utf-8", "surrogatepass")).hexdigest()
d["create_time"] = str(datetime.now()).replace("T", " ")[:19]
d["create_timestamp_flt"] = datetime.now().timestamp()
if d.get("img_id"):
docs.append(d)
return
if not d.get("image"):
_ = d.pop("image", None)
d["img_id"] = ""