浏览代码

Fix redis get error. (#4140)

### What problem does this PR solve?

#4126
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.15.1
Kevin Hu 10 个月前
父节点
当前提交
6379a934ff
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      graphrag/utils.py

+ 1
- 1
graphrag/utils.py 查看文件

@@ -101,7 +101,7 @@ def get_embed_cache(llmnm, txt):
bin = REDIS_CONN.get(k)
if not bin:
return
return np.array(json.loads(bin.decode("utf-8")))
return np.array(json.loads(bin))


def set_embed_cache(llmnm, txt, arr):

正在加载...
取消
保存