Spaces:
Runtime error
Runtime error
| from abc import ABC, abstractmethod | |
| from typing import List | |
| import numpy as np | |
| class EmbeddingProvider(ABC): | |
| """ | |
| Abstract class for the llm providers | |
| """ | |
| def embed_documents(self, documents: List[str]) -> np.ndarray: | |
| """Embed a list of documents""" | |
| pass | |
| def embed_query(self, query: str) -> np.ndarray: | |
| """Embed a query""" | |
| pass | |