Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix redis get error. (#4140)

Kevin Hu6379a934ffb4
diff --git a/graphrag/utils.py b/graphrag/utils.py
index 98d6666caf..c462d0430c 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):