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

Method embed_text

experiments/tests/test_pdf_parser.py:167–170  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

165def test_infer_research_directions_can_use_embedding_service(monkeypatch):
166 class FakeEmbeddingService:
167 def embed_text(self, text):
168 if "interface automation" in text.lower():
169 return [1.0, 0.0]
170 return [0.0, 1.0]
171
172 def embed_batch(self, texts):
173 embeddings = []

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected