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

Method encode

experiments/tests/test_paper_stack.py:613–614  ·  view source on GitHub ↗
(self, text, normalize_embeddings=True)

Source from the content-addressed store, hash-verified

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 15

rerank_episodesFunction · 0.80
stable_background_rowsFunction · 0.80
rerank_episodesFunction · 0.80
rerank_episodesFunction · 0.80
rerank_episodesFunction · 0.80
_reading_report_filenameFunction · 0.80
_deterministic_noiseFunction · 0.80
generateMethod · 0.80
embedMethod · 0.80
embed_batchMethod · 0.80
embedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected