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

Method __init__

python/tests/test_query_executor.py:47–50  ·  view source on GitHub ↗
(self, vectors=Union[VectorSchema, Dict[str, VectorSchema]])

Source from the content-addressed store, hash-verified

45# ----------------------------
46class MockCollectionSchema(CollectionSchema):
47 def __init__(self, vectors=Union[VectorSchema, Dict[str, VectorSchema]]):
48 self._vectors = (
49 [vectors] if not isinstance(vectors, Dict) else list(vectors.values())
50 )
51
52 @property
53 def vectors(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected