Fix: toc no chunk found issue. (#12197)

### What problem does this PR solve?

#12170

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2025-12-25 14:06:20 +08:00
committed by GitHub
parent 5ebabf5bed
commit 8cbfb5aef6
3 changed files with 9 additions and 2 deletions

View File

@ -619,6 +619,8 @@ class Dealer:
chunks[id2idx[cid]]["similarity"] += sim
continue
chunk = self.dataStore.get(cid, idx_nms, kb_ids)
if not chunk:
continue
d = {
"chunk_id": cid,
"content_ltks": chunk["content_ltks"],