Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

fix: method name should be same with abstrct base class (#1592)

Mathew Shen918823d805a2
diff --git a/mem0/embeddings/huggingface.py b/mem0/embeddings/huggingface.py
index 6b187d81e..5e56f0349 100644
--- a/mem0/embeddings/huggingface.py
+++ b/mem0/embeddings/huggingface.py
@@ -6,7 +6,7 @@ class HuggingFaceEmbedding(EmbeddingBase):
def __init__(self, model_name="multi-qa-MiniLM-L6-cos-v1"):
self.model = SentenceTransformer(model_name)
- def get_embedding(self, text):
+ def embed(self, text):
"""
Get the embedding for the given text using Hugging Face.