Skip to content

Commit

Permalink
Fix redis get error. (#4140)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

#4126
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
KevinHuSh authored Dec 20, 2024
1 parent 10a6211 commit 6379a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphrag/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6379a93

Please sign in to comment.