|
31 | 31 | Date, Time, Timestamp, DateFromTicks, TimeFromTicks, TimestampFromTicks, |
32 | 32 | Binary, STRING, BINARY, NUMBER, DATETIME, ROWID, |
33 | 33 | ) |
34 | | -from .vectorstore import ( |
35 | | - vector_db, IndexInterface, IndexList, IndexModel, MatchTypedDict, |
36 | | - Metric, IndexStatsTypedDict, NamespaceStatsTypedDict, Vector, |
37 | | - VectorDictMetadataValue, VectorMetadataTypedDict, VectorTuple, |
38 | | - VectorTupleWithMetadata, DeletionProtection, AndFilter, EqFilter, |
39 | | - ExactMatchFilter, FilterTypedDict, GteFilter, GtFilter, InFilter, |
40 | | - LteFilter, LtFilter, NeFilter, NinFilter, OrFilter, SimpleFilter, |
41 | | -) |
| 34 | +# These are only loaded if the singlestore-vectorstore package is available |
| 35 | +try: |
| 36 | + from .vectorstore import ( |
| 37 | + vector_db, IndexInterface, IndexList, IndexModel, MatchTypedDict, |
| 38 | + Metric, IndexStatsTypedDict, NamespaceStatsTypedDict, Vector, |
| 39 | + VectorDictMetadataValue, VectorMetadataTypedDict, VectorTuple, |
| 40 | + VectorTupleWithMetadata, DeletionProtection, AndFilter, EqFilter, |
| 41 | + ExactMatchFilter, FilterTypedDict, GteFilter, GtFilter, InFilter, |
| 42 | + LteFilter, LtFilter, NeFilter, NinFilter, OrFilter, SimpleFilter, |
| 43 | + ) |
| 44 | +except (ImportError, ModuleNotFoundError): |
| 45 | + pass |
42 | 46 |
|
43 | 47 |
|
44 | 48 | # |
|
0 commit comments