from abc import abstractmethod from typing import List class EveAIEmbeddings: @abstractmethod def embed_documents(self, texts: List[str]) -> List[List[float]]: raise NotImplementedError def embed_query(self, text: str) -> List[float]: return self.embed_documents([text])[0]