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

Class MockCollectionSchema

python/tests/test_query_executor.py:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44# Mock Collection Schema
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):
54 return self._vectors
55
56
57# ----------------------------

Calls

no outgoing calls