This commit is contained in:
YILING0013
2025-02-02 19:17:07 +08:00
parent 6d8a67782c
commit 4b8ceffc01
6 changed files with 50 additions and 377 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ class OllamaEmbeddings:
def __init__(self, model_name: str, base_url: str):
self.model_name = model_name
self.base_url = base_url # 这里一般形如 http://localhost:11434/api (而非 /v1)
self.base_url = base_url
def embed(self, texts: List[str]) -> List[List[float]]:
"""