MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / get_embedding_function

Method get_embedding_function

masfactory/utils/embedding.py:25–27  ·  view source on GitHub ↗

Return a callable that maps text to an embedding vector.

(self)

Source from the content-addressed store, hash-verified

23
24 @abstractmethod
25 def get_embedding_function(self) -> Callable[[str], np.ndarray]:
26 """Return a callable that maps text to an embedding vector."""
27 pass
28
29class TfidfEmbedder(BaseEmbedder):
30 """TF-IDF embedder backed by scikit-learn."""

Callers 4

__init__Method · 0.45
main.pyFile · 0.45
main.pyFile · 0.45
main.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected