MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / EmbeddingProvider

Class EmbeddingProvider

paperflow/providers/embedding.py:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20class EmbeddingProvider(Protocol):
21 name: str
22 model: str
23 dimensions: int
24
25 def embed(self, text: str) -> List[float]: ...
26
27 def embed_batch(self, texts: Iterable[str]) -> List[List[float]]: ...
28
29
30def _resize(vector: List[float], target_dim: int) -> List[float]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected