17 lines
310 B
Python
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
|