MCPcopy Create free account
hub / github.com/alibaba/zvec / __call__

Method __call__

python/zvec/extension/http_embedding_function.py:104–106  ·  view source on GitHub ↗

Make the embedding function callable.

(self, input: TEXT)

Source from the content-addressed store, hash-verified

102 return self._dimension
103
104 def __call__(self, input: TEXT) -> DenseVectorType:
105 """Make the embedding function callable."""
106 return self.embed(input)
107
108 @lru_cache(maxsize=256)
109 def embed(self, input: TEXT) -> DenseVectorType:

Callers

nothing calls this directly

Calls 1

embedMethod · 0.95

Tested by

no test coverage detected