Update memory.py

modify embedding model params
This commit is contained in:
Yuchen Zhang 2025-06-20 11:20:17 +08:00 committed by GitHub
parent 33ee0f9cb5
commit 0fff512094
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class FinancialSituationMemory:
return response.data[0].embedding
else:
model = SentenceTransformer("all-MiniLM-L6-v2")
embeddings = model.encode(text, convert_to_numpy=True, precision='int8')
embeddings = model.encode(text, convert_to_numpy=True)
return embeddings