From 2a683817045983ff048a2b0b9a56147d45cd41eb Mon Sep 17 00:00:00 2001 From: buua436 Date: Mon, 8 Dec 2025 15:32:16 +0800 Subject: [PATCH] update --- rag/nlp/search.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rag/nlp/search.py b/rag/nlp/search.py index a7e9189e0..d6e1df4d8 100644 --- a/rag/nlp/search.py +++ b/rag/nlp/search.py @@ -654,7 +654,8 @@ class Dealer: i = 0 while i < len(chunks): ck = chunks[i] - if not ck.get("mom_id"): + mom_id = ck.get("mom_id") + if not isinstance(mom_id, str) or not mom_id.strip(): i += 1 continue mom_chunks[ck["mom_id"]].append(chunks.pop(i))