Release v7.2.0
This minor release includes new methods for working with index namespaces via REST, and the ability to configure an index with the embed
configuration, which was not previously exposed.
Working with namespaces
The Index
and IndexAsyncio
classes now expose methods for calling describe_namespace
, delete_namespace
, list_namespaces
, and list_namespaces_paginated
. There is also a NamespaceResource
which can be used to perform these operations. Namespaces themselves are still created implicitly when upserting data to a specific namespace.
from pinecone import Pinecone
pc = Pinecone(api_key='YOUR_API_KEY')
index = pc.Index(host='your-index-host')
# list namespaces
results = index.list_namespaces_paginated(limit=10)
next_results = index.list_namespaces_paginated(limit=10, pagination_token=results.pagination.next)
# describe namespace
namespace = index.describe_namespace(results[0].name)
# delete namespaces (NOTE: this deletes all data within the namespace)
index.delete_namespace(results[0].name)
Configuring integrated embedding for an index
Previously, the configure_index
methods did not support providing an embed
argument when configuring an existing index. These methods now support embed
in the shape of ConfigureIndexEmbed
. You can convert an existing index to an integrated index by specifying the embedding model
and field_map
. The index vector type and dimension must match the model vector type and dimension, and the index similarity metric must be supported by the model. You can use list_models
and get_model
on the Inference
class to get specific details about models.
You can later change the embedding configuration to update the field map, read parameters, or write parameters. Once set, the model cannot be changed.
from pinecone import Pinecone
pc = Pinecone(api_key='YOUR_API_KEY')
# convert an existing index to use the integrated embedding model multilingual-e5-large
pc.configure_index(
name="my-existing-index",
embed={"model": "multilingual-e5-large", "field_map": {"text": "chunk_text"}},
)
What's Changed
- Add describe, delete, and list namespaces (REST) by @rohanshah18 in #507
- Fix release workflow by @rohanshah18 in #516
- Add
embed
to Indexconfigure
calls by @austin-denoble in #515
Full Changelog: v7.1.0...v7.2.0