Update rag/nlp/search.py

This commit is contained in:
Kevin Hu 2025-12-03 18:56:46 +08:00 committed by GitHub
parent a3f871a144
commit 1bae1367a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)