We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cf06457 + ffb642a commit f1c6a4eCopy full SHA for f1c6a4e
2 files changed
.gitignore
@@ -70,4 +70,5 @@ gui/
70
test_*
71
72
# Cline files
73
+memory-bank
74
memory-bank/
lightrag/llm/openai.py
@@ -477,7 +477,9 @@ async def openai_embed(
477
)
478
return np.array(
479
[
480
- np.frombuffer(base64.b64decode(dp.embedding), dtype=np.float32)
+ np.array(dp.embedding, dtype=np.float32)
481
+ if isinstance(dp.embedding, list)
482
+ else np.frombuffer(base64.b64decode(dp.embedding), dtype=np.float32)
483
for dp in response.data
484
]
485
0 commit comments