v0.5.0 Release
Updated: gRPC version 1.58.0
In this release, we have upgraded the gRPC version from v1.53.0 to v1.58.0, implementing crucial adjustments. This update ensures that users can seamlessly utilize gRPC v1.58.0 without encountering the method not found errors that were prevalent in the previous version v1.53.0.
Updated: HTTP Client
Upgraded the HTTP client from AsyncHttpClient to OkHttpClient for control plane operations. Users can now make multiple client calls using a synchronous HTTP client, providing a better control and performance.
Added: Index Description
Introduced the ability to describe an index using the indexName parameter, offering more flexibility in index operations.
Example
The following example shows how to utilize OkHttpClient and synchronously call describeIndex and deleteIndex functions using indexName parameter.
// create a custom OkHttpClient
OkHttpClient.Builder builder = new OkHttpClient.Builder()
.connectTimeout(10, java.util.concurrent.TimeUnit.SECONDS)
.readTimeout(30, java.util.concurrent.TimeUnit.SECONDS)
.writeTimeout(30, java.util.concurrent.TimeUnit.SECONDS);
OkHttpClient httpClient = builder.build();
PineconeClientConfig pineconeClientConfig = new PineconeClientConfig()
.withApiKey("PINECONE_API_KEY")
.withEnvironment("TEST_ENVIRONMENT");
// pass the custom OkHttpClient
PineconeIndexOperationClient pineconeIndexOperationClient = new PineconeIndexOperationClient(pineconeClientConfig, httpClient);
// synchronous calls to describe and delete index
pineconeIndexOperationClient.describeIndex("TEST_INDEX_NAME");
pineconeIndexOperationClient.deleteIndex("TEST_INDEX_NAME");
// close the client
pineconeIndexOperationClient.close();Added: Apache 2.0 License
Added Apache 2.0 license, ensuring compliance with licensing standards.
What's Changed
- Update http client and improve error handling by @rohanshah18 in #23
- Add Apache 2.0 LICENSE by @gdj0nes in #25
- Add support for describeIndex functionality by @rohanshah18 in #24
- Update gRPC version to 1.58.0 by @rohanshah18 in #26
New Contributors
Full Changelog: v0.4.0...v0.5.0