11from .index import (
2- Index as _Index ,
2+ Index ,
33 FetchResponse ,
44 QueryResponse ,
55 DescribeIndexStatsResponse ,
66 UpsertResponse ,
77 SparseValues ,
88 Vector ,
99)
10+
1011from .dataclasses import *
11- from .import_error import (
12- Index ,
13- IndexClientInstantiationError ,
14- Inference ,
15- InferenceInstantiationError ,
16- )
1712from .index_asyncio import *
1813from .errors import (
1914 VectorDictionaryMissingKeysError ,
2419 SparseValuesDictionaryExpectedError ,
2520 MetadataDictionaryExpectedError ,
2621)
22+ import warnings
23+
2724
2825from .resources .sync .bulk_import import ImportErrorMode
2926
27+ _Index = Index # alias for backwards compatibility
28+
29+
3030__all__ = [
3131 "_Index" ,
3232 "_IndexAsyncio" ,
3333 "DescribeIndexStatsResponse" ,
3434 "FetchResponse" ,
3535 "ImportErrorMode" ,
3636 "Index" ,
37- "IndexClientInstantiationError " ,
37+ "IndexAsyncio " ,
3838 "Inference" ,
39- "InferenceInstantiationError" ,
4039 "MetadataDictionaryExpectedError" ,
4140 "QueryResponse" ,
4241 "SearchQuery" ,
5352 "VectorTupleLengthError" ,
5453]
5554
56- import warnings
57-
5855
5956def _get_deprecated_import (name , from_module , to_module ):
6057 warnings .warn (
@@ -66,10 +63,10 @@ def _get_deprecated_import(name, from_module, to_module):
6663 )
6764 # Import from the new location
6865 from pinecone .inference import (
69- Inference as _Inference , # noqa: F401
70- AsyncioInference as _AsyncioInference , # noqa: F401
71- RerankModel , # noqa: F401
72- EmbedModel , # noqa: F401
66+ Inference as _Inference , # noqa: F401
67+ AsyncioInference as _AsyncioInference , # noqa: F401
68+ RerankModel , # noqa: F401
69+ EmbedModel , # noqa: F401
7370 )
7471
7572 return locals ()[name ]
0 commit comments