mirror of
https://github.com/james-m-jordan/morphik-core.git
synced 2025-05-09 19:32:38 +00:00
10 lines
253 B
Python
10 lines
253 B
Python
from abc import ABC, abstractmethod
|
|
from typing import List, Union
|
|
|
|
|
|
class BaseEmbeddingModel(ABC):
|
|
@abstractmethod
|
|
async def embed(self, text: Union[str, List[str]]) -> List[float]:
|
|
"""Generate embeddings for input text"""
|
|
pass
|