dependabot[bot] opened a new pull request, #18124:
URL: https://github.com/apache/camel/pull/18124
Bumps
[io.pinecone:pinecone-client](https://github.com/pinecone-io/pinecone-java-client)
from 3.1.0 to 5.0.0.
Release notes
Sourced from https://github.com/pinecone-io/pinecone-java-client/releases";>io.pinecone:pinecone-client's
releases.
v5.0.0 Release
This version of the Pinecone Java SDK introduces indexes with integrated
inference, backups and restore, and ability to work more explicitly with
namespaces. It also supports version 2025-04 of the Pinecone API.
You can read more about versioning https://docs.pinecone.io/reference/api/versioning";>here.
Features
Indexes with Integrated Inference
This release adds the following method for integrated inference. Together
these methods provide a way for you to easily store your data and let us manage
the process of creating embeddings. To learn about available models, see the https://docs.pinecone.io/models/overview";>Model Gallery.
Create index for model i.e. create an index with an associated embedding
model
Configure an existing index to associate it with an embedding model
Upsert records
Search records by id
Search records by vector
Search records by text
import io.pinecone.clients.Index;
import io.pinecone.clients.Pinecone;
import io.pinecone.helpers.RandomStringBuilder;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.openapitools.db_control.client.model.CreateIndexForModelRequest;
import
org.openapitools.db_control.client.model.CreateIndexForModelRequestEmbed;
import org.openapitools.db_control.client.model.DeletionProtection;
import org.openapitools.db_data.client.ApiException;
import org.openapitools.db_data.client.model.SearchRecordsRequestQuery;
import org.openapitools.db_data.client.model.SearchRecordsResponse;
import org.openapitools.db_data.client.model.UpsertRecord;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
...
Pinecone pinecone = new
Pinecone.Builder(System.getenv("PINECONE_API_KEY")).build();
String indexName = RandomStringBuilder.build("inf", 8);
// Create index associated with a model
HashMap fieldMap = new HashMap<>();
fieldMap.put("text", "chunk_text");
CreateIndexForModelRequestEmbed embed = new
CreateIndexForModelRequestEmbed()
.model("multilingual-e5-large")
.fieldMap(fieldMap);
pinecone.createIndexForModel(indexName,
CreateIndexForModelRequest.CloudEnum.AWS, "us-west-2", embed,
DeletionProtection.DISABLED, new HashMap<>());
// Wait for index to be created
Thread.sleep(1);
Index index = pinecone.getIndexConnection(indexName);
// Upsert records
HashMap record1 = new HashMap<>();
... (truncated)
Changelog
Sourced from https://github.com/pinecone-io/pinecone-java-client/blob/main/CHANGELOG.md";>io.pinecone:pinecone-client's
changelog.
5.0.0
Add support for backups and restore
Add support for list, describe, and delete namespaces
Generate code based on 2025-04 api spec
Automate ndjson handling
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
https://github.com/pinecone-io/pinecone-java-client/commit/cb00bc3bd7a873d5bdecc4deb24d28eb4cbc852f";>cb00bc3
Generate code for 2025-04, automate ndjson handling, add backups, restore,
an...
https://github.com/pinecone-io/pinecone-java-client/commit/ee5d8821fa9e181d518963369f086c3b072aa186";>ee5d882
Add integrated inference (https://redirect.github.com/pinecone-io/pinecone-java-client/issues/181";>#181)
https://github.com/pinecone-io/pinecone-java-client/commit/c83ea24eb3e5b5c9400d26b1073dd7e58fcb9530";>c83ea24
Prepare to release v4.0.1 (https://redirect.github.com/pinecone-io/pinecone-java-client/issues/179";>#179)
https://github.com/pinecone-io/pinecone-java-client/commit/b4cc92cc43eff19e925862f26d02063d28349015";>b4cc92c
Create new config per connection (https://redirect.github.com/pinecone-io/pinecone-java-client/issues/178";>#178)
https://github.com/pinecone-io/pinecone-java-client/commit/6ed8d4dca975c5e19511e4cde81eb50d88ab";>6ed8d46
Update rerank example in the README after breaking changes (https://redirect.github.com/pinecone-io/pinecone-java-client/issues/177";>#177)
https://github.com/pinecone-io/pinecone-java-client/commit/902f14823320f1b3e9759aaef1f139d18146a0c8";>902f148
Prepare to release Java SDK v4.0.0 (https://redirect.github.com/pinecone-io/pinecone-java-client/issues/176";>#176)
https://github.com/pinecone-io/pinecone-java-client/commit/59b9f5f2178ef0c620d690b77a717c4490bc9cc2";>59b9f5f
Add support to create sparse serverless index method (https://redirect.github.com/pinecone-io/pi