mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 15:48:59 +08:00
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)
This commit is contained in:
parent
10a62115c7
commit
6379a934ff
@ -101,7 +101,7 @@ def get_embed_cache(llmnm, txt):
|
|||||||
bin = REDIS_CONN.get(k)
|
bin = REDIS_CONN.get(k)
|
||||||
if not bin:
|
if not bin:
|
||||||
return
|
return
|
||||||
return np.array(json.loads(bin.decode("utf-8")))
|
return np.array(json.loads(bin))
|
||||||
|
|
||||||
|
|
||||||
def set_embed_cache(llmnm, txt, arr):
|
def set_embed_cache(llmnm, txt, arr):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user