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

Class MockCollectionSchema

python/tests/test_query_executor.py:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls