Kevin Hu
commited on
Commit
·
8e1cb41
1
Parent(s):
db87136
Fix redis get error. (#4140)
Browse files### What problem does this PR solve?
#4126
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
- graphrag/utils.py +1 -1
graphrag/utils.py
CHANGED
@@ -101,7 +101,7 @@ def get_embed_cache(llmnm, txt):
|
|
101 |
bin = REDIS_CONN.get(k)
|
102 |
if not bin:
|
103 |
return
|
104 |
-
return np.array(json.loads(bin
|
105 |
|
106 |
|
107 |
def set_embed_cache(llmnm, txt, arr):
|
|
|
101 |
bin = REDIS_CONN.get(k)
|
102 |
if not bin:
|
103 |
return
|
104 |
+
return np.array(json.loads(bin))
|
105 |
|
106 |
|
107 |
def set_embed_cache(llmnm, txt, arr):
|