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

Method embed

paperflow/providers/embedding.py:68–69  ·  view source on GitHub ↗
(self, text: str)

Source from the content-addressed store, hash-verified

66 self._client = OpenAI(api_key=api_key, base_url=base_url, timeout=timeout)
67
68 def embed(self, text: str) -> List[float]:
69 return self.embed_batch([text])[0]
70
71 def embed_batch(self, texts: Iterable[str]) -> List[List[float]]:
72 inputs = [text or " " for text in texts]

Callers

nothing calls this directly

Calls 1

embed_batchMethod · 0.95

Tested by

no test coverage detected