Procházet zdrojové kódy

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)
tags/v0.15.1
Kevin Hu před 10 měsíci
rodič
revize
6379a934ff
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      graphrag/utils.py

+ 1
- 1
graphrag/utils.py Zobrazit soubor

@@ -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):

Načítá se…
Zrušit
Uložit