Fixing the bug when using Huggingface Models (#1877)
Co-authored-by: parshvadaftari <parshva@192.168.1.5>
This commit is contained in:
@@ -28,4 +28,4 @@ class HuggingFaceEmbedding(EmbeddingBase):
|
||||
Returns:
|
||||
list: The embedding vector.
|
||||
"""
|
||||
return self.model.encode(text)
|
||||
return self.model.encode(text, convert_to_numpy = True).tolist()
|
||||
|
||||
Reference in New Issue
Block a user