VashuTheGreat2's picture
Upload folder using huggingface_hub
644f326 verified
Raw History Blame Contribute Delete
497 Bytes
from abc import ABC, abstractmethod
from typing import List
class BaseEmbeddingService(ABC):
"""Abstract base class for all embedding service providers."""
@abstractmethod
def embed_documents(self, texts: List[str]) -> List[List[float]]:
"""Embed a list of text documents into vector representations."""
pass
@abstractmethod
def embed_query(self, text: str) -> List[float]:
"""Embed a single query text into a vector representation."""
pass