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

Bump io.pinecone:pinecone-client from 3.1.0 to 4.0.1 in /modules/pinecone #9986

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

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 17, 2025

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

Release notes

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

v4.0.1 Release

Fixed [issue #173](pinecone-io/pinecone-java-client#173): Thread safety issue for getIndexConnection() and getAsyncIndexConnection()

The getIndexConnection() and getAsyncIndexConnection() methods were not thread-safe. The underlying connectionsMap, which maintains a mapping of index names (String) to their corresponding PineconeConnection instances, was incorrectly updating all entries to reference the most recently created connection. This fix ensures that each index maintains its own distinct connection, preventing unintended overwrites in multi-threaded environments.

What's Changed

Full Changelog: pinecone-io/pinecone-java-client@v4.0.0...v4.0.1

v4.0.0 Release

This version of the Pinecone Java SDK introduces Sparse Indexes. It also supports version 2025-01 of the Pinecone API. You can read more about versioning here.

Features

Sparse Index

Following is an example that shows how to create sparse index, upsert and query data into the index, and finally deleting the index.

import io.pinecone.proto.UpsertResponse;
import io.pinecone.unsigned_indices_model.QueryResponseWithUnsignedIndices;
import org.openapitools.db_control.client.model.DeletionProtection;
import org.openapitools.db_control.client.model.IndexModel;
import java.util.*;
public class SparseIndexExample {
public static void main(String[] args) {
// Instantiate Pinecone class
Pinecone pinecone = new Pinecone
.Builder(System.getenv("PINECONE_API_KEY"))
.withSourceTag("pinecone_test")
.build();
    // Create sparse Index
    String indexName = "example-index";
    String cloud = "aws";
    String region = "us-east-1";
    String vectorType = "sparse";
    Map<String, String> tags = new HashMap<>();
    tags.put("env", "test");
    pinecone.createSparseServelessIndex(indexName,
            cloud,
            region,
            DeletionProtection.ENABLED,
            tags,
            vectorType);
// Wait for index to be ready
Thread.sleep(10000);
IndexModel indexModel = pinecone.describeIndex(indexName);


</tr></table>

... (truncated)

Changelog

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

4.0.1

  • Create a new config per index connection

4.0.0

  • Add support for sparse indexes
  • Generate code based on 2025-01 open-api spec
Commits
  • c83ea24 Prepare to release v4.0.1 (#179)
  • b4cc92c Create new config per connection (#178)
  • 6ed8d46 Update rerank example in the README after breaking changes (#177)
  • 902f148 Prepare to release Java SDK v4.0.0 (#176)
  • 59b9f5f Add support to create sparse serverless index method (#175)
  • 0f9a483 Replace protoc with buf and add build script for generating code from the pro...
  • 154dfd3 remove commented code
  • 6afb4dd generate code based on 2025-01 api spec
  • 6e109e3 Add index tags (#169)
  • See full diff 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 3.1.0 to 4.0.1.
- [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@v3.1.0...v4.0.1)

---
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 requested a review from a team as a code owner February 17, 2025 23:06
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java labels Feb 17, 2025
@settings settings bot removed the java label Feb 19, 2025
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 modules/pinecone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants