From 1bae1367a30208a594857f5943f809ef14ee077d Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Wed, 3 Dec 2025 18:56:46 +0800 Subject: [PATCH] Update rag/nlp/search.py --- 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 c67d2d422..4e411a561 100644 --- a/rag/nlp/search.py +++ b/rag/nlp/search.py @@ -527,7 +527,7 @@ class Dealer: res = [] bs = 128 - for page_num, p in enumerate(range(offset, max_count, bs)): + for p in range(offset, max_count, bs): es_res = self.dataStore.search(fields, [], condition, [], orderBy, page_num * bs, bs, index_name(tenant_id), kb_ids) dict_chunks = self.dataStore.get_fields(es_res, fields)