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.0.0 #26

Closed

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Nov 6, 2024

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

Release notes

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

v3.0.0 Release

This version of the Pinecone Java SDK introduces Inference and Import. It also supports version 2024-10 of the Pinecone API. You can read more about versioning here.

Features

Embed

The Inference has an operation called Embed which allows users to generate embeddings for input data.

import io.pinecone.clients.Inference;
import io.pinecone.clients.Pinecone;
import org.openapitools.inference.client.ApiException;
import org.openapitools.inference.client.model.Embedding;
import org.openapitools.inference.client.model.EmbeddingsList;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
...
Pinecone pinecone = new Pinecone.Builder("PINECONE_API_KEY").build();
Inference inference = pinecone.getInferenceClient();
// Prepare input sentences to be embedded
List<String> inputs = new ArrayList<>();
inputs.add("The quick brown fox jumps over the lazy dog.");
inputs.add("Lorem ipsum");
// Specify the embedding model and parameters
String embeddingModel = "multilingual-e5-large";
Map<String, Object> parameters = new HashMap<>();
parameters.put("input_type", "query");
parameters.put("truncate", "END");
// Generate embeddings for the input data
EmbeddingsList embeddings = inference.embed(embeddingModel, parameters, inputs);
// Get embedded data
List<Embedding> embeddedData = embeddings.getData();

Rerank

The Inference has a new operation called Rerank which provides users the ability to rerank documents in descending relevance-order against a given query. Reranking documents is a common "second-pass" ranking strategy broadly used in retrieval applications.

import io.pinecone.clients.Inference;
import io.pinecone.clients.Pinecone;
import org.openapitools.inference.client.ApiException;
import org.openapitools.inference.client.model.RerankResult;
</tr></table>

... (truncated)

Changelog

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

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
  • 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)
  • b341a05 Regenerate code based on 2024-10 api spec after two changes: uri & indexTags ...
  • 9ae8bdf Add rerank (#159)
  • 5f74845 Generate code based on 2024-10 api spec (#158)
  • 6f43b93 Add embed endpoint (#153)
  • 27ea488 Prep for release v2.1.0 and add proxy config & disabling TLS examples to READ...
  • 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.0.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.0.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 Nov 6, 2024
Copy link
Author

dependabot bot commented on behalf of github Dec 13, 2024

Superseded by #44.

@dependabot dependabot bot closed this Dec 13, 2024
@dependabot dependabot bot deleted the dependabot/maven/io.pinecone-pinecone-client-3.0.0 branch December 13, 2024 16:16
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