mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-09-02 12:54:03 +00:00
Fix ollama embedding func ruturn data type bugs
This commit is contained in:
parent
21f5a3923e
commit
99522a088d
@ -129,4 +129,4 @@ async def ollama_embed(texts: list[str], embed_model, **kwargs) -> np.ndarray:
|
||||
kwargs["headers"] = headers
|
||||
ollama_client = ollama.Client(**kwargs)
|
||||
data = ollama_client.embed(model=embed_model, input=texts)
|
||||
return data["embeddings"]
|
||||
return np.array(data["embeddings"])
|
||||
|
Loading…
x
Reference in New Issue
Block a user