Skip to content

v0.7.1 Release

Compare
Choose a tag to compare
@rohanshah18 rohanshah18 released this 19 Dec 00:14
· 85 commits to main since this release
231657c

Added: List Indexes

Introduced the ability to list indexes in a project. It returns a list of string where each string represents an index name.

Example

The following example shows how to list indexes:

PineconeClientConfig configuration = new PineconeClientConfig()
        .withApiKey("YOUR_API_KEY")
        .withEnvironment("us-east1-gcp"); 
PineconeIndexOperationClient indexOperationClient = new PineconeIndexOperationClient(configuration);
List<String> indexList = indexOperationClient.listIndexes();

Added: Configure index

Introduced the ability to configure the number of replicas or the podType of an existing index.

Note:

  1. This is not supported by projects on the gcp-starter environment.
  2. Scaling down the pod type is not supported i.e. p1.x2 cannot be changed to p1.x1.
  3. Updating the base pod type is not supported i.e. p1.x1 cannot be changed to p2.x1.

Example:

The following example shows how to configure indexes:

PineconeClientConfig configuration = new PineconeClientConfig()
        .withApiKey("YOUR_API_KEY")
        .withEnvironment("us-east1-gcp"); 
PineconeIndexOperationClient indexOperationClient = new PineconeIndexOperationClient(configuration);

// Increasing the replicas: assuming the number of replicas was set to 1 or 2
ConfigureIndexRequest configureIndexRequest = new ConfigureIndexRequest()
        .withReplicas(3);
indexOperationClient.configureIndex(indexName, configureIndexRequest);

// Decreasing the replicas from 3 to 1
configureIndexRequest = new ConfigureIndexRequest()
        .withReplicas(1);
indexOperationClient.configureIndex(indexName, configureIndexRequest);

// Change the pod type to a larger one i.e. from p1.x1 to p1.x2
ConfigureIndexRequest configureIndexRequest = new ConfigureIndexRequest()
        .withPodType("p1.x2");
indexOperationClient.configureIndex(indexName, configureIndexRequest);

Added: Integration tests for control and data plane operations

We have added integration tests for both control (index) and data plane (vector) operations under src/integration/java/io/pinecone/integration which will help provide users with more examples.

What's Changed

Full Changelog: v0.6.0...v0.7.1