MCPcopy Create free account
hub / github.com/MinishLab/vicinity / __init__

Method __init__

vicinity/backends/basic.py:103–105  ·  view source on GitHub ↗

Initialize the backend.

(self, vectors: npt.NDArray, arguments: BasicArgs)

Source from the content-addressed store, hash-verified

101 supported_metrics = {Metric.COSINE, Metric.EUCLIDEAN}
102
103 def __init__(self, vectors: npt.NDArray, arguments: BasicArgs) -> None:
104 """Initialize the backend."""
105 super().__init__(vectors=vectors, arguments=arguments)
106
107 @property
108 def backend_type(self) -> Backend:

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected