From 3d41ebddedec24e3711a623166daa0262cd84cb6 Mon Sep 17 00:00:00 2001 From: Wang Qi Date: Mon, 10 Aug 2026 11:21:23 +0800 Subject: [PATCH] Fix naive ask report error (#18030) --- rag/nlp/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rag/nlp/search.py b/rag/nlp/search.py index 50d2462903..a48dd932db 100644 --- a/rag/nlp/search.py +++ b/rag/nlp/search.py @@ -699,7 +699,7 @@ class Dealer: d = { "chunk_id": id, "content_ltks": chunk["content_ltks"], - "content_with_weight": chunk["content_with_weight"], + "content_with_weight": chunk.get("content_with_weight", ""), "doc_id": did, "docnm_kwd": dnm, "kb_id": chunk["kb_id"],