Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Bump io.pinecone:pinecone-client from 1.2.2 to 3.1.0 #44

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Dec 13, 2024

Bumps io.pinecone:pinecone-client from 1.2.2 to 3.1.0.

Release notes

Sourced from io.pinecone:pinecone-client's releases.

v3.1.0 Release

This version of the Pinecone Java SDK introduces support for specifying a base URL for control and data plane operations.

Features

Support to pass base url for control and data plane operations

Users can now specify the base URL (host:port) for both control and data plane operations using the Builder inner class of the Pinecone class. This is achieved with the withHost() method, supporting both HTTP and HTTPS endpoints. For HTTP endpoints on the data plane, users must also disable TLS using the withTlsEnabled() method.

The following example demonstrates how to perform control and data plane operations against a locally running emulator:

import io.pinecone.clients.Index;
import io.pinecone.clients.Pinecone;
import io.pinecone.configs.PineconeConfig;
import org.openapitools.db_control.client.ApiClient;
import org.openapitools.db_control.client.api.ManageIndexesApi;
import org.openapitools.db_control.client.model.DeletionProtection;
import java.util.Arrays;
...
String host = "http://localhost:5080";
Pinecone pinecone = new Pinecone.Builder("apiKey")
.withHost(host)     // set host to localhost and port to 5080
.withTlsEnabled(false)  // disable TLS for data plane operations
.build();
// Create serverless index
pinecone.createServerlessIndex("serverless-index", "cosine", 3, "aws","us-east-1", DeletionProtection.DISABLED);
// Create pod index
pinecone.createPodsIndex("pod-index", 3, "us-east-1-aws", "p1.x1");
// Describe serverless index
pinecone.describeIndex("serverless-index");
// Describe pod index
pinecone.describeIndex("pod-index");
// Get index connection object for serverless-index
Index serverlessIndexConnection = pinecone.getIndexConnection("serverless-index");
// Get index connection object for pod-index
Index podIndexConnection = pinecone.getIndexConnection("pod-index");
// Upsert records into serverless index
serverlessIndexConnection.upsert("v1", Arrays.asList(1f, 2f, 3f));
// Upsert records into pod index
podIndexConnection.upsert("v1", Arrays.asList(1f, 2f, 3f));
// Query by vectorId from serverless index
serverlessIndexConnection.queryByVectorId(3, "v1");
// Query by vectorId from pod index
podIndexConnection.queryByVectorId(3, "v1");
</tr></table>

... (truncated)

Changelog

Sourced from io.pinecone:pinecone-client's changelog.

3.1.0

  • Add support to pass base url for control and data plane operations

3.0.0

  • Add support for imports
    • start import
    • list imports
    • describe import
    • cancel import
  • Add support for inference
    • embed
    • rerank
  • Generate code based on 2024-10 open-api spec

2.1.0

  • Add support to disable TLS for data plane operations

2.0.0

  • Add deletion protection
Commits
  • 1597b00 prepare for releasing v3.1.0
  • d8deb59 add docstrings
  • 79550f4 improve ux for passing base path for control plane ops
  • f41e4b8 support default namespace for list api
  • 7e8807d Update import examples in README (#167)
  • a6f34ab Prepare for releasing v3.0.0 (#165)
  • 6fcb3d2 Update README based on regenerated code (#164)
  • 35ecac2 Update the datatype for parameters in rerank() (#163)
  • 416934d Regenerate code based on a recent control plane change made to OAS (#162)
  • 848d81b Add imports (#161)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [io.pinecone:pinecone-client](https://github.com/pinecone-io/pinecone-java-client) from 1.2.2 to 3.1.0.
- [Release notes](https://github.com/pinecone-io/pinecone-java-client/releases)
- [Changelog](https://github.com/pinecone-io/pinecone-java-client/blob/main/CHANGELOG.md)
- [Commits](pinecone-io/pinecone-java-client@v1.2.2...v3.1.0)

---
updated-dependencies:
- dependency-name: io.pinecone:pinecone-client
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants