1
1
from .index import (
2
- Index as _Index ,
2
+ Index ,
3
3
FetchResponse ,
4
4
QueryResponse ,
5
5
DescribeIndexStatsResponse ,
6
6
UpsertResponse ,
7
7
SparseValues ,
8
8
Vector ,
9
9
)
10
+
10
11
from .dataclasses import *
11
- from .import_error import (
12
- Index ,
13
- IndexClientInstantiationError ,
14
- Inference ,
15
- InferenceInstantiationError ,
16
- )
17
12
from .index_asyncio import *
18
13
from .errors import (
19
14
VectorDictionaryMissingKeysError ,
24
19
SparseValuesDictionaryExpectedError ,
25
20
MetadataDictionaryExpectedError ,
26
21
)
22
+ import warnings
23
+
27
24
28
25
from .resources .sync .bulk_import import ImportErrorMode
29
26
27
+ _Index = Index # alias for backwards compatibility
28
+
29
+
30
30
__all__ = [
31
31
"_Index" ,
32
32
"_IndexAsyncio" ,
33
33
"DescribeIndexStatsResponse" ,
34
34
"FetchResponse" ,
35
35
"ImportErrorMode" ,
36
36
"Index" ,
37
- "IndexClientInstantiationError " ,
37
+ "IndexAsyncio " ,
38
38
"Inference" ,
39
- "InferenceInstantiationError" ,
40
39
"MetadataDictionaryExpectedError" ,
41
40
"QueryResponse" ,
42
41
"SearchQuery" ,
53
52
"VectorTupleLengthError" ,
54
53
]
55
54
56
- import warnings
57
-
58
55
59
56
def _get_deprecated_import (name , from_module , to_module ):
60
57
warnings .warn (
@@ -66,10 +63,10 @@ def _get_deprecated_import(name, from_module, to_module):
66
63
)
67
64
# Import from the new location
68
65
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
73
70
)
74
71
75
72
return locals ()[name ]
0 commit comments