| 43 | # Mock Collection Schema |
| 44 | # ---------------------------- |
| 45 | class 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 | # ---------------------------- |
no outgoing calls