Skip to content

Commit af61d75

Browse files
committed
changing pods definition
1 parent 4f9bd6b commit af61d75

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

pinecone/core/client/model/create_request.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ def _from_openapi_data(cls, name, dimension, *args, **kwargs): # noqa: E501
161161
_visited_composed_classes = (Animal,)
162162
index_type (str): The type of vector index. Pinecone supports 'approximated'.. [optional] if omitted the server will use the default value of "approximated" # noqa: E501
163163
metric (str): The distance metric to be used for similarity search. You can use 'euclidean', 'cosine', or 'dotproduct'.. [optional] if omitted the server will use the default value of "cosine" # noqa: E501
164-
pods (int): The total number of pods the index uses. pods=shards*replicas.. [optional] if omitted the server will use the default value of 1 # noqa: E501
164+
pods (int): The number of pods for the index to use, per replica.. [optional] if omitted the server will use the default value of 1 # noqa: E501
165165
replicas (int): The number of replicas. Replicas duplicate your index. They provide higher availability and throughput.. [optional] if omitted the server will use the default value of 1 # noqa: E501
166-
shards (int): The number of shards to be used in the index. We recommend you use 1 shard per 1GB of data.. [optional] if omitted the server will use the default value of 1 # noqa: E501
166+
shards (int): The number of shards to be used in the index.. [optional] if omitted the server will use the default value of 1 # noqa: E501
167167
pod_type (str): The type of pod to use. One of 's1' or 'p1'.. [optional] if omitted the server will use the default value of "p1" # noqa: E501
168168
index_config (dict): [optional] # noqa: E501
169169
"""
@@ -255,9 +255,9 @@ def __init__(self, name, dimension, *args, **kwargs): # noqa: E501
255255
_visited_composed_classes = (Animal,)
256256
index_type (str): The type of vector index. Pinecone supports 'approximated'.. [optional] if omitted the server will use the default value of "approximated" # noqa: E501
257257
metric (str): The distance metric to be used for similarity search. You can use 'euclidean', 'cosine', or 'dotproduct'.. [optional] if omitted the server will use the default value of "cosine" # noqa: E501
258-
pods (int): The total number of pods the index uses. pods=shards*replicas.. [optional] if omitted the server will use the default value of 1 # noqa: E501
258+
pods (int): The number of pods for the index to use, per replica.. [optional] if omitted the server will use the default value of 1 # noqa: E501
259259
replicas (int): The number of replicas. Replicas duplicate your index. They provide higher availability and throughput.. [optional] if omitted the server will use the default value of 1 # noqa: E501
260-
shards (int): The number of shards to be used in the index. We recommend you use 1 shard per 1GB of data.. [optional] if omitted the server will use the default value of 1 # noqa: E501
260+
shards (int): The number of shards to be used in the index.. [optional] if omitted the server will use the default value of 1 # noqa: E501
261261
pod_type (str): The type of pod to use. One of 's1' or 'p1'.. [optional] if omitted the server will use the default value of "p1" # noqa: E501
262262
index_config (dict): [optional] # noqa: E501
263263
"""

pinecone/manage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ def describe_index(name: str):
183183
db = response['database']
184184
ready = response['status']['ready']
185185
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'],
186+
replicas=db['replicas'], dimension=db['dimension'], shards=db['shards'],
187+
pods=db.get('pods', db['shards']), pod_type=db.get('pod_type', 'p1'),
187188
index_config=db['index_config'], status={'ready': ready})
188189

189190

specs/index_service.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@
232232
},
233233
"pods": {
234234
"type": "integer",
235-
"description": "The total number of pods the index uses, including replicas",
235+
"description": "The number of pods for the index to use, per replica.",
236236
"default": 1
237237
},
238238
"replicas": {
@@ -242,7 +242,7 @@
242242
},
243243
"shards": {
244244
"type": "integer",
245-
"description": "The number of shards to be used in the index. We recommend you use 1 shard per 1GB of data.",
245+
"description": "The number of shards to be used in the index.",
246246
"default": 1
247247
},
248248
"pod_type": {

specs/pinecone_api.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@
893893
},
894894
"pods": {
895895
"type": "integer",
896-
"description": "The total number of pods the index uses, including replicas",
896+
"description": "The number of pods for the index to use, per replica.",
897897
"default": 1
898898
},
899899
"replicas": {
@@ -903,7 +903,7 @@
903903
},
904904
"shards": {
905905
"type": "integer",
906-
"description": "The number of shards to be used in the index. We recommend you use 1 shard per 1GB of data.",
906+
"description": "The number of shards to be used in the index.",
907907
"default": 1
908908
},
909909
"pod_type": {

0 commit comments

Comments
 (0)