Skip to content

Commit 9e59254

Browse files
committed
Add code sample for describe_index to README.md.
1 parent 68cc561 commit 9e59254

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,14 @@ pinecone.init(api_key="YOUR_API_KEY", environment="us-west1-gcp")
6363
active_indexes = pinecone.list_indexes()
6464
```
6565

66+
## Describe index
6667

68+
The following example returns information about the index `example-index`.
69+
70+
```python
71+
import pinecone
72+
73+
pinecone.init(api_key="YOUR_API_KEY", environment="us-west1-gcp")
74+
75+
index_description = pinecone.describe_index("example-index"
76+
```)

0 commit comments

Comments
 (0)