Spaces:
Runtime error
Runtime error
"""Interface for embedding models.""" | |
from abc import ABC, abstractmethod | |
from typing import List | |
class Embeddings(ABC): | |
"""Interface for embedding models.""" | |
def embed_documents(self, texts: List[str]) -> List[List[float]]: | |
"""Embed search docs.""" | |
def embed_query(self, text: str) -> List[float]: | |
"""Embed query text.""" | |