Files
t6_mem0/mem0/embeddings/base.py
2024-07-12 20:21:33 +05:30

17 lines
310 B
Python

from abc import ABC, abstractmethod
class EmbeddingBase(ABC):
@abstractmethod
def embed(self, text):
"""
Get the embedding for the given text.
Args:
text (str): The text to embed.
Returns:
list: The embedding vector.
"""
pass