v0.7.1 Release
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:
- This is not supported by projects on the
gcp-starter
environment. - Scaling down the pod type is not supported i.e.
p1.x2
cannot be changed top1.x1
. - Updating the base pod type is not supported i.e.
p1.x1
cannot be changed top2.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
- Add support to list indexes by @rohanshah18 in #40
- Add support to configure index by @rohanshah18 in #42
- Add user agent by @rohanshah18 in #43
- Add describeIndexStats integration test by @rohanshah18 in #47
- Add integration test for deleting vectors by @rohanshah18 in #48
- Refactor configure index test by @rohanshah18 in #50
- Add update, fetch, and query integration tests by @rohanshah18 in #51
- Update changelogs, examples, and readme by @rohanshah18 in #52
Full Changelog: v0.6.0...v0.7.1