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

Class FakeSentenceTransformer

experiments/tests/test_paper_stack.py:608–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606 captured = {}
607
608 class FakeSentenceTransformer:
609 def __init__(self, model_name, **kwargs):
610 captured["model_name"] = model_name
611 captured["kwargs"] = kwargs
612
613 def encode(self, text, normalize_embeddings=True):
614 return [1.0, 0.0, 0.0]
615
616 monkeypatch.setattr(embedding_module, "SENTENCE_TRANSFORMERS_AVAILABLE", True)
617 monkeypatch.setattr(embedding_module, "SentenceTransformer", FakeSentenceTransformer)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected