mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-01 03:52:02 +08:00
Fix window size issue of ES. (#5175)
### What problem does this PR solve? #5152 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
f298e55ded
commit
39b96849a9
@ -524,7 +524,7 @@ def rebuild_graph(tenant_id, kb_id):
|
|||||||
src_ids = []
|
src_ids = []
|
||||||
flds = ["entity_kwd", "entity_type_kwd", "from_entity_kwd", "to_entity_kwd", "weight_int", "knowledge_graph_kwd", "source_id"]
|
flds = ["entity_kwd", "entity_type_kwd", "from_entity_kwd", "to_entity_kwd", "weight_int", "knowledge_graph_kwd", "source_id"]
|
||||||
bs = 256
|
bs = 256
|
||||||
for i in range(0, 10000, bs):
|
for i in range(0, 39*bs, bs):
|
||||||
es_res = settings.docStoreConn.search(flds, [],
|
es_res = settings.docStoreConn.search(flds, [],
|
||||||
{"kb_id": kb_id, "knowledge_graph_kwd": ["entity", "relation"]},
|
{"kb_id": kb_id, "knowledge_graph_kwd": ["entity", "relation"]},
|
||||||
[],
|
[],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user