Release v5.1.0
Package renamed from pinecone-client
to pinecone
In this release, we have renamed the package from pinecone-client
to pinecone
. From now on you should install it using the pinecone
name.
There is a plan to continue publishing code under the pinecone-client
package as well so that anyone using the old name will still find out about available upgrades via their dependency management tool of choice, but we haven't automated that as part of our release process yet so there will be a slight delay in new work being released under that name.
New has_index()
helper and improved output
We've added a small helper function to simplify a common need in notebooks and examples, which is checking if an index exists.
from pinecone import Pinecone, ServerlessSpec
pc = Pinecone(api_key='YOUR_API_KEY')
index_name = "movie-recommendations"
if not pc.has_index(index_name):
pc.create_index(
name=index_name,
dimension=384,
metric="cosine",
spec=ServerlessSpec(cloud="aws", region="us-west-2")
)
index = pc.Index(name=index_name)
# Now upsert vectors, run queries, etc
If you are frequently working in notebooks, you will also benefit from a nicer presentation of control plane responses.
>>> pc.describe_index(name="test-embed2")
{
"name": "test-embed2",
"dimension": 10,
"metric": "cosine",
"host": "test-embed2-dojoi3u.svc.apw5-4e34-81fa.pinecone.io",
"spec": {
"serverless": {
"cloud": "aws",
"region": "us-west-2"
}
},
"status": {
"ready": true,
"state": "Ready"
},
"deletion_protection": "disabled"
}
What's Changed
- [Docs] Fix dataframe column name in doc strings by @jseldess in #381
- [Docs] Change "client" to "SDK" in README by @jseldess in #382
- [Chore] Adding new issue templates by @anawishnoff in #380
- [Chore] Reduce dimension in testing to simplify output by @jhamon in #384
- [Chore] Rename package from pinecone-client to pinecone by @jhamon in #383
- [Feature] Add has_index() by @rohanshah18 in #385
- [Feature] Improve output from list/describe actions on indexes and collections by @jhamon in #387
New Contributors
- @jseldess made their first contribution in #381
- @anawishnoff made their first contribution in #380
- @rohanshah18 made their first contribution in #385
Full Changelog: v5.0.1...v5.1.0