feat(embedding): add EmbeddingProvider ABC

This commit is contained in:
Research Assistant 2026-05-18 17:13:40 +08:00
parent 5ea4a10b1c
commit 66e1afbe6d

View file

@ -0,0 +1,13 @@
from __future__ import annotations
from abc import ABC, abstractmethod
class EmbeddingProvider(ABC):
@abstractmethod
def encode(self, texts: list[str]) -> list[list[float]]:
...
@abstractmethod
def encode_single(self, text: str) -> list[float]:
...