From 30706ff697db3f9b372cc012a20061e7e52fded3 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Wed, 3 Dec 2025 18:57:21 +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 4e411a561..63971d136 100644 --- a/rag/nlp/search.py +++ b/rag/nlp/search.py @@ -528,7 +528,7 @@ class Dealer: res = [] bs = 128 for p in range(offset, max_count, bs): - es_res = self.dataStore.search(fields, [], condition, [], orderBy, page_num * bs, bs, index_name(tenant_id), + es_res = self.dataStore.search(fields, [], condition, [], orderBy, p, bs, index_name(tenant_id), kb_ids) dict_chunks = self.dataStore.get_fields(es_res, fields) for id, doc in dict_chunks.items():