MCPcopy Create free account
hub / github.com/Exorust/Adkit-MCP / FakeEmbeddingProvider

Class FakeEmbeddingProvider

tests/test_match_service.py:28–32  ·  view source on GitHub ↗

Always returns FIXED_VECTOR, no model loaded.

Source from the content-addressed store, hash-verified

26
27
28class FakeEmbeddingProvider:
29 """Always returns FIXED_VECTOR, no model loaded."""
30
31 def embed(self, text: str) -> list[float]:
32 return FIXED_VECTOR
33
34
35def _make_hit(ad_id: str, score: float, *, sensitive: bool = False,

Callers 1

_build_serviceFunction · 0.85

Calls

no outgoing calls

Tested by 1

_build_serviceFunction · 0.68