From 6379a934ffb48cb5a48a8937123475cce624703c Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Fri, 20 Dec 2024 10:39:50 +0800 Subject: [PATCH] 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) --- graphrag/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphrag/utils.py b/graphrag/utils.py index 98d6666ca..c462d0430 100644 --- a/graphrag/utils.py +++ b/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):