dependabot[bot] opened a new pull request, #17042: URL: https://github.com/apache/camel/pull/17042
Bumps [io.pinecone:pinecone-client](https://github.com/pinecone-io/pinecone-java-client) from 3.1.0 to 4.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pinecone-io/pinecone-java-client/releases">io.pinecone:pinecone-client's releases</a>.</em></p> <blockquote> <h2>v4.0.0 Release</h2> <p>This version of the Pinecone Java SDK introduces <a href="https://docs.pinecone.io/guides/indexes/sparse-indexes#upsert-sparse-vectors">Sparse Indexes</a>. It also supports version 2025-01 of the Pinecone API. You can read more about versioning <a href="https://docs.pinecone.io/reference/api/versioning">here</a>.</p> <h2>Features</h2> <h3>Sparse Index</h3> <p>Following is an example that shows how to create sparse index, upsert and query data into the index, and finally deleting the index.</p> <pre lang="java"><code>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; <p>import java.util.*;</p> <p>public class SparseIndexExample {<br /> public static void main(String[] args) {<br /> // Instantiate Pinecone class<br /> Pinecone pinecone = new Pinecone<br /> .Builder(System.getenv("PINECONE_API_KEY"))<br /> .withSourceTag("pinecone_test")<br /> .build();</p> <pre><code> // Create sparse Index String indexName = &quot;example-index&quot;; String cloud = &quot;aws&quot;; String region = &quot;us-east-1&quot;; String vectorType = &quot;sparse&quot;; Map&lt;String, String&gt; tags = new HashMap&lt;&gt;(); tags.put(&quot;env&quot;, &quot;test&quot;); pinecone.createSparseServelessIndex(indexName, cloud, region, DeletionProtection.ENABLED, tags, vectorType); // Wait for index to be ready Thread.sleep(10000); IndexModel indexModel = pinecone.describeIndex(indexName); System.out.println(indexModel.getStatus()); // Upsert vectors Index index = pinecone.getIndexConnection(indexName); String id = &quot;v1&quot;; ArrayList&lt;Long&gt; indices = new ArrayList&lt;&gt;(); indices.add(1L); indices.add(2L); ArrayList&lt;Float&gt; values = new ArrayList&lt;&gt;(); values.add(1f); </code></pre> <p></tr></table><br /> </code></pre></p> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pinecone-io/pinecone-java-client/blob/main/CHANGELOG.md">io.pinecone:pinecone-client's changelog</a>.</em></p> <blockquote> <h3>4.0.0</h3> <ul> <li>Add support for sparse indexes</li> <li>Generate code based on 2025-01 open-api spec</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pinecone-io/pinecone-java-client/commit/6ed8d46666dca975c5e19511e4cde81eb50d88ab"><code>6ed8d46</code></a> Update rerank example in the README after breaking changes (<a href="https://redirect.github.com/pinecone-io/pinecone-java-client/issues/177">#177</a>)</li> <li><a href="https://github.com/pinecone-io/pinecone-java-client/commit/902f14823320f1b3e9759aaef1f139d18146a0c8"><code>902f148</code></a> Prepare to release Java SDK v4.0.0 (<a href="https://redirect.github.com/pinecone-io/pinecone-java-client/issues/176">#176</a>)</li> <li><a href="https://github.com/pinecone-io/pinecone-java-client/commit/59b9f5f2178ef0c620d690b77a717c4490bc9cc2"><code>59b9f5f</code></a> Add support to create sparse serverless index method (<a href="https://redirect.github.com/pinecone-io/pinecone-java-client/issues/175">#175</a>)</li> <li><a href="https://github.com/pinecone-io/pinecone-java-client/commit/0f9a4838cf4012bac4331b601bbaf7be14321943"><code>0f9a483</code></a> Replace protoc with buf and add build script for generating code from the pro...</li> <li><a href="https://github.com/pinecone-io/pinecone-java-client/commit/154dfd33a2ca16b20b6ef5967bab8a51ec8a4266"><code>154dfd3</code></a> remove commented code</li> <li><a href="https://github.com/pinecone-io/pinecone-java-client/commit/6afb4dd54ab05700439065425f4462177e12ac26"><code>6afb4dd</code></a> generate code based on 2025-01 api spec</li> <li><a href="https://github.com/pinecone-io/pinecone-java-client/commit/6e109e377eee62da4bf5e2c7064fc5ae26b9d097"><code>6e109e3</code></a> Add index tags (<a href="https://redirect.github.com/pinecone-io/pinecone-java-client/issues/169">#169</a>)</li> <li>See full diff in <a href="https://github.com/pinecone-io/pinecone-java-client/compare/v3.1.0...v4.0.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
