Browse Source

Fix window size of ES issue. (#5026)

### What problem does this PR solve?

#5015

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.17.0
Kevin Hu 8 months ago
parent
commit
7c90b87715
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      graphrag/utils.py

+ 1
- 1
graphrag/utils.py View File

@@ -524,7 +524,7 @@ def rebuild_graph(tenant_id, kb_id):
src_ids = []
flds = ["entity_kwd", "entity_type_kwd", "from_entity_kwd", "to_entity_kwd", "weight_int", "knowledge_graph_kwd", "source_id"]
bs = 256
for i in range(0, 10000000, bs):
for i in range(0, 10000, bs):
es_res = settings.docStoreConn.search(flds, [],
{"kb_id": kb_id, "knowledge_graph_kwd": ["entity", "relation"]},
[],

Loading…
Cancel
Save