Skip to content

Commit 0c2b280

Browse files
authored
Merge pull request #24 from pinecone-io/revert-23-ch11268
Revert "Add pods and pod_type to create_index"
2 parents c05d89a + 803465b commit 0c2b280

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

pinecone/manage.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ class IndexDescription(NamedTuple):
2727
replicas: int
2828
dimension: int
2929
shards: int
30-
pods: int
31-
pod_type: str
3230
index_config: None
3331
status: None
3432

@@ -64,8 +62,6 @@ def create_index(
6462
metric: str = "cosine",
6563
replicas: int = 1,
6664
shards: int = 1,
67-
pods: int = 1,
68-
pod_type: str = 'p1',
6965
index_config: dict = None
7066
):
7167
"""Creates a Pinecone index.
@@ -90,10 +86,6 @@ def create_index(
9086
:param shards: the number of shards per index, defaults to 1.
9187
Use 1 shard per 1GB of vectors
9288
: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
9789
:param index_config: Advanced configuration options for the index
9890
:type timeout: int, optional
9991
: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
@@ -107,8 +99,6 @@ def create_index(
10799
metric=metric,
108100
replicas=replicas,
109101
shards=shards,
110-
pods=pods,
111-
pod_type=pod_type,
112102
index_config=index_config or {}
113103
))
114104

@@ -183,7 +173,7 @@ def describe_index(name: str):
183173
db = response['database']
184174
ready = response['status']['ready']
185175
return IndexDescription(name=db['name'], index_type=db['index_type'], metric=db['metric'],
186-
replicas=db['replicas'], dimension=db['dimension'], shards=db['shards'], pods=db['pods'], pod_type=db['pod_type'],
176+
replicas=db['replicas'], dimension=db['dimension'], shards=db['shards'],
187177
index_config=db['index_config'], status={'ready': ready})
188178

189179

0 commit comments

Comments
 (0)