You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pinecone/manage.py
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,8 @@ class IndexDescription(NamedTuple):
27
27
replicas: int
28
28
dimension: int
29
29
shards: int
30
+
pods: int
31
+
pod_type: str
30
32
index_config: None
31
33
status: None
32
34
@@ -62,6 +64,8 @@ def create_index(
62
64
metric: str="cosine",
63
65
replicas: int=1,
64
66
shards: int=1,
67
+
pods: int=1,
68
+
pod_type: str='p1',
65
69
index_config: dict=None
66
70
):
67
71
"""Creates a Pinecone index.
@@ -86,6 +90,10 @@ def create_index(
86
90
:param shards: the number of shards per index, defaults to 1.
87
91
Use 1 shard per 1GB of vectors
88
92
:type shards: int,optional
93
+
:param pods: Total number of pods to be used by the index. pods = shard*replicas
94
+
:type pods: int,optional
95
+
:param pod_type: the pod type to be used for the index. can be one of p1 or s1.
96
+
:type pod_type: str,optional
89
97
:param index_config: Advanced configuration options for the index
90
98
:type timeout: int, optional
91
99
:param timeout: Timeout for wait until index gets ready. If None, wait indefinitely; if >=0, time out after this many seconds; if -1, return immediately and do not wait. Default: None
0 commit comments