fix: method name should be same with abstrct base class (#1592)
This commit is contained in:
@@ -6,7 +6,7 @@ class HuggingFaceEmbedding(EmbeddingBase):
|
|||||||
def __init__(self, model_name="multi-qa-MiniLM-L6-cos-v1"):
|
def __init__(self, model_name="multi-qa-MiniLM-L6-cos-v1"):
|
||||||
self.model = SentenceTransformer(model_name)
|
self.model = SentenceTransformer(model_name)
|
||||||
|
|
||||||
def get_embedding(self, text):
|
def embed(self, text):
|
||||||
"""
|
"""
|
||||||
Get the embedding for the given text using Hugging Face.
|
Get the embedding for the given text using Hugging Face.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user