Nuno Machado
Add embedding generator
8d8e1b1
raw
history blame
216 Bytes
from abc import ABC, abstractmethod
from typing import List
import numpy as np
class EmbeddingEncoder(ABC):
@abstractmethod
def generate_embeddings(self, texts: List[str]) -> List[np.ndarray]:
pass