Fix graphrag + infinity bugs (#3681)

### What problem does this PR solve?

Fix graphrag + infinity bugs

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Zhichang Yu
2024-11-27 12:45:43 +08:00
committed by GitHub
parent 7f48acb3fd
commit 90ffcb4ddb
4 changed files with 10 additions and 14 deletions

View File

@ -59,8 +59,8 @@ class KGSearch(Dealer):
q_vec = matchDense.embedding_data
src = req.get("fields", ["docnm_kwd", "content_ltks", "kb_id", "img_id", "title_tks", "important_kwd",
"doc_id", f"q_{len(q_vec)}_vec", "position_list", "name_kwd",
"q_1024_vec", "q_1536_vec", "available_int", "content_with_weight",
"weight_int", "weight_flt", "rank_int"
"available_int", "content_with_weight",
"weight_int", "weight_flt"
])
fusionExpr = FusionExpr("weighted_sum", 32, {"weights": "0.5, 0.5"})