diff --git a/README.md b/README.md index 9a34d86f..ba9829ea 100644 --- a/README.md +++ b/README.md @@ -651,6 +651,7 @@ pinecone.deleteCollection("example-collection"); # Inference ## Embed + The Pinecone SDK now supports creating embeddings via the [Inference API](https://docs.pinecone.io/guides/inference/understanding-inference). ```java @@ -689,6 +690,7 @@ List embeddedData = embeddings.getData(); ``` ## Rerank + The following example shows how to rerank items according to their relevance to a query. ```java @@ -751,6 +753,41 @@ RerankResult result = inference.rerank(model, query, documents, rankFields, topN System.out.println(result.getData()); ``` +## Models + +The following example shows how to list and describe an embedding model. + +```java +import io.pinecone.clients.Inference; +import io.pinecone.clients.Pinecone; +import org.openapitools.inference.client.ApiException; +import org.openapitools.inference.client.model.ModelInfo; +import org.openapitools.inference.client.model.ModelInfoList; +... + +Pinecone pinecone = new Pinecone + .Builder(System.getenv("PINECONE_API_KEY")) + .build(); + +Inference inference = pinecone.getInferenceClient(); + +// list models +ModelInfoList models = inference.listModels(); +System.out.println(models); + +// list models by filtering with type +models = inference.listModels("rerank"); +System.out.println(models); + +// list models by filtering with type and vectorType +models = inference.listModels("embed", "dense"); +System.out.println(models); + +// describe a model +ModelInfo modelInfo = inference.describeModel("llama-text-embed-v2"); +System.out.println(modelInfo); +``` + # Imports ## Start an import @@ -862,7 +899,7 @@ BackupList backupList = pinecone.listIndexBackups(indexName1); System.out.println("backupList for index1: " + backupList); // list all backups for a project -backupList = pinecone.listProjectBackups(); +backupList = pinecone.listProjectBackups(3, "some-pagination-token"); System.out.println("backupList for project: " + backupList); // describe backup diff --git a/codegen/apis b/codegen/apis index daf808c3..a9158581 160000 --- a/codegen/apis +++ b/codegen/apis @@ -1 +1 @@ -Subproject commit daf808c3b30690c3af7440f728542fd83ecdf752 +Subproject commit a91585819b21bcd355fd76dab94546bb7908a008 diff --git a/src/integration/java/io/pinecone/integration/inference/ModelsTest.java b/src/integration/java/io/pinecone/integration/inference/ModelsTest.java new file mode 100644 index 00000000..3e741ca8 --- /dev/null +++ b/src/integration/java/io/pinecone/integration/inference/ModelsTest.java @@ -0,0 +1,33 @@ +package io.pinecone.integration.inference; + +import io.pinecone.clients.Inference; +import io.pinecone.clients.Pinecone; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import org.openapitools.inference.client.ApiException; +import org.openapitools.inference.client.model.ModelInfo; +import org.openapitools.inference.client.model.ModelInfoList; + +public class ModelsTest { + private static final Pinecone pinecone = new Pinecone + .Builder(System.getenv("PINECONE_API_KEY")) + .withSourceTag("pinecone_test") + .build(); + + private static final Inference inference = pinecone.getInferenceClient(); + + @Test + public void testListAndDescribeModels() throws ApiException { + ModelInfoList models = inference.listModels(); + Assertions.assertNotNull(models.getModels()); + + models = inference.listModels("rerank"); + Assertions.assertNotNull(models.getModels()); + + models = inference.listModels("embed", "dense"); + Assertions.assertNotNull(models.getModels()); + + ModelInfo modelInfo = inference.describeModel("llama-text-embed-v2"); + Assertions.assertNotNull(modelInfo); + } +} diff --git a/src/main/java/io/pinecone/clients/Inference.java b/src/main/java/io/pinecone/clients/Inference.java index 47064b70..29b2d144 100644 --- a/src/main/java/io/pinecone/clients/Inference.java +++ b/src/main/java/io/pinecone/clients/Inference.java @@ -116,6 +116,46 @@ public RerankResult rerank(String model, return inferenceApi.rerank(rerankRequest); } + /** + * Overloaded method to list available models. + * @return ModelInfoList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ModelInfoList listModels() throws ApiException { + return inferenceApi.listModels(null, null); + } + + /** + * Overloaded method to list available models based on type parameter only. + * @param type Filter models by type ('embed' or 'rerank'). (optional) + * @return ModelInfoList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ModelInfoList listModels(String type) throws ApiException { + return inferenceApi.listModels(type, null); + } + + /** + * List available models. + * @param type Filter models by type ('embed' or 'rerank'). (optional) + * @param vectorType Filter embedding models by vector type ('dense' or 'sparse'). Only relevant when `type=embed`. (optional) + * @return ModelInfoList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ModelInfoList listModels(String type, String vectorType) throws ApiException { + return inferenceApi.listModels(type, vectorType); + } + + /** + * Get available model details. + * @param modelName The name of the model to look up. (required) + * @return ModelInfo + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ModelInfo describeModel(String modelName) throws ApiException { + return inferenceApi.getModel(modelName); + } + /** * Converts a list of input strings to EmbedRequestInputsInner objects. * diff --git a/src/main/java/io/pinecone/clients/Pinecone.java b/src/main/java/io/pinecone/clients/Pinecone.java index 85dd9939..98ad6d3a 100644 --- a/src/main/java/io/pinecone/clients/Pinecone.java +++ b/src/main/java/io/pinecone/clients/Pinecone.java @@ -913,17 +913,26 @@ public BackupList listIndexBackups(String indexName, Integer limit, String pagin /** * List backups for all indexes in a project - * List all backups for a project. * * @return BackupList */ public BackupList listProjectBackups() throws ApiException { - return manageIndexesApi.listProjectBackups(); + return listProjectBackups(null, null); + } + + /** + * List backups for all indexes in a project + * @param limit The number of results to return per page. (optional) + * @param paginationToken The token to use to retrieve the next page of results. (optional) + * + * @return BackupList + */ + public BackupList listProjectBackups(Integer limit, String paginationToken) throws ApiException { + return manageIndexesApi.listProjectBackups(limit, paginationToken); } /** * Describe a backup - * Get a description of a backup. * * @param backupId The ID of the backup to describe. (required) * @return BackupModel @@ -959,7 +968,7 @@ public void createIndexFromBackup(String backupId, String indexName, MapApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/src/main/java/org/openapitools/db_control/client/Configuration.java b/src/main/java/org/openapitools/db_control/client/Configuration.java index 0cdec1ca..34f7bbdd 100644 --- a/src/main/java/org/openapitools/db_control/client/Configuration.java +++ b/src/main/java/org/openapitools/db_control/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.db_control.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class Configuration { public static final String VERSION = "2025-04"; diff --git a/src/main/java/org/openapitools/db_control/client/Pair.java b/src/main/java/org/openapitools/db_control/client/Pair.java index 12b6be27..04eaa37e 100644 --- a/src/main/java/org/openapitools/db_control/client/Pair.java +++ b/src/main/java/org/openapitools/db_control/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.db_control.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/org/openapitools/db_control/client/StringUtil.java b/src/main/java/org/openapitools/db_control/client/StringUtil.java index bcfa4213..85bd0759 100644 --- a/src/main/java/org/openapitools/db_control/client/StringUtil.java +++ b/src/main/java/org/openapitools/db_control/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/org/openapitools/db_control/client/api/ManageIndexesApi.java b/src/main/java/org/openapitools/db_control/client/api/ManageIndexesApi.java index dbd59c6a..5dbe9aa8 100644 --- a/src/main/java/org/openapitools/db_control/client/api/ManageIndexesApi.java +++ b/src/main/java/org/openapitools/db_control/client/api/ManageIndexesApi.java @@ -634,7 +634,7 @@ private okhttp3.Call createIndexValidateBeforeCall(CreateIndexRequest createInde /** * Create an index - * Create a Pinecone index. This is where you specify the measure of similarity, the dimension of vectors to be stored in the index, which cloud provider you would like to deploy with, and more. For guidance and examples, see [Create an index](https://docs.pinecone.io/guides/indexes/create-an-index#create-a-serverless-index). + * Create a Pinecone index. This is where you specify the measure of similarity, the dimension of vectors to be stored in the index, which cloud provider you would like to deploy with, and more. For guidance and examples, see [Create an index](https://docs.pinecone.io/guides/index-data/create-an-index). * @param createIndexRequest The desired configuration for the index. (required) * @return IndexModel * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -659,7 +659,7 @@ public IndexModel createIndex(CreateIndexRequest createIndexRequest) throws ApiE /** * Create an index - * Create a Pinecone index. This is where you specify the measure of similarity, the dimension of vectors to be stored in the index, which cloud provider you would like to deploy with, and more. For guidance and examples, see [Create an index](https://docs.pinecone.io/guides/indexes/create-an-index#create-a-serverless-index). + * Create a Pinecone index. This is where you specify the measure of similarity, the dimension of vectors to be stored in the index, which cloud provider you would like to deploy with, and more. For guidance and examples, see [Create an index](https://docs.pinecone.io/guides/index-data/create-an-index). * @param createIndexRequest The desired configuration for the index. (required) * @return ApiResponse<IndexModel> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -685,7 +685,7 @@ public ApiResponse createIndexWithHttpInfo(CreateIndexRequest create /** * Create an index (asynchronously) - * Create a Pinecone index. This is where you specify the measure of similarity, the dimension of vectors to be stored in the index, which cloud provider you would like to deploy with, and more. For guidance and examples, see [Create an index](https://docs.pinecone.io/guides/indexes/create-an-index#create-a-serverless-index). + * Create a Pinecone index. This is where you specify the measure of similarity, the dimension of vectors to be stored in the index, which cloud provider you would like to deploy with, and more. For guidance and examples, see [Create an index](https://docs.pinecone.io/guides/index-data/create-an-index). * @param createIndexRequest The desired configuration for the index. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -787,7 +787,7 @@ private okhttp3.Call createIndexForModelValidateBeforeCall(CreateIndexForModelRe /** * Create an index with integrated embedding - * Create an index with integrated embedding. With this type of index, you provide source text, and Pinecone uses a [hosted embedding model](https://docs.pinecone.io/guides/inference/understanding-inference#embedding-models) to convert the text automatically during [upsert](https://docs.pinecone.io/reference/api/2025-01/data-plane/upsert_records) and [search](https://docs.pinecone.io/reference/api/2025-01/data-plane/search_records). For guidance and examples, see [Create an index](https://docs.pinecone.io/guides/indexes/create-an-index#integrated-embedding). + * Create an index with integrated embedding. With this type of index, you provide source text, and Pinecone uses a [hosted embedding model](https://docs.pinecone.io/guides/index-data/create-an-index#embedding-models) to convert the text automatically during [upsert](https://docs.pinecone.io/reference/api/2025-01/data-plane/upsert_records) and [search](https://docs.pinecone.io/reference/api/2025-01/data-plane/search_records). For guidance and examples, see [Create an index](https://docs.pinecone.io/guides/index-data/create-an-index#integrated-embedding). * @param createIndexForModelRequest The desired configuration for the index and associated embedding model. (required) * @return IndexModel * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -810,7 +810,7 @@ public IndexModel createIndexForModel(CreateIndexForModelRequest createIndexForM /** * Create an index with integrated embedding - * Create an index with integrated embedding. With this type of index, you provide source text, and Pinecone uses a [hosted embedding model](https://docs.pinecone.io/guides/inference/understanding-inference#embedding-models) to convert the text automatically during [upsert](https://docs.pinecone.io/reference/api/2025-01/data-plane/upsert_records) and [search](https://docs.pinecone.io/reference/api/2025-01/data-plane/search_records). For guidance and examples, see [Create an index](https://docs.pinecone.io/guides/indexes/create-an-index#integrated-embedding). + * Create an index with integrated embedding. With this type of index, you provide source text, and Pinecone uses a [hosted embedding model](https://docs.pinecone.io/guides/index-data/create-an-index#embedding-models) to convert the text automatically during [upsert](https://docs.pinecone.io/reference/api/2025-01/data-plane/upsert_records) and [search](https://docs.pinecone.io/reference/api/2025-01/data-plane/search_records). For guidance and examples, see [Create an index](https://docs.pinecone.io/guides/index-data/create-an-index#integrated-embedding). * @param createIndexForModelRequest The desired configuration for the index and associated embedding model. (required) * @return ApiResponse<IndexModel> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -834,7 +834,7 @@ public ApiResponse createIndexForModelWithHttpInfo(CreateIndexForMod /** * Create an index with integrated embedding (asynchronously) - * Create an index with integrated embedding. With this type of index, you provide source text, and Pinecone uses a [hosted embedding model](https://docs.pinecone.io/guides/inference/understanding-inference#embedding-models) to convert the text automatically during [upsert](https://docs.pinecone.io/reference/api/2025-01/data-plane/upsert_records) and [search](https://docs.pinecone.io/reference/api/2025-01/data-plane/search_records). For guidance and examples, see [Create an index](https://docs.pinecone.io/guides/indexes/create-an-index#integrated-embedding). + * Create an index with integrated embedding. With this type of index, you provide source text, and Pinecone uses a [hosted embedding model](https://docs.pinecone.io/guides/index-data/create-an-index#embedding-models) to convert the text automatically during [upsert](https://docs.pinecone.io/reference/api/2025-01/data-plane/upsert_records) and [search](https://docs.pinecone.io/reference/api/2025-01/data-plane/search_records). For guidance and examples, see [Create an index](https://docs.pinecone.io/guides/index-data/create-an-index#integrated-embedding). * @param createIndexForModelRequest The desired configuration for the index and associated embedding model. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -859,7 +859,7 @@ public okhttp3.Call createIndexForModelAsync(CreateIndexForModelRequest createIn return localVarCall; } /** - * Build call for createIndexFromBackup + * Build call for createIndexFromBackupOperation * @param backupId The ID of the backup to create an index from. (required) * @param createIndexFromBackupRequest The desired configuration for the index created from a backup. (required) * @param _callback Callback for upload/download progress @@ -879,7 +879,7 @@ public okhttp3.Call createIndexForModelAsync(CreateIndexForModelRequest createIn 500 Internal server error. - */ - public okhttp3.Call createIndexFromBackupCall(String backupId, CreateIndexFromBackupRequest createIndexFromBackupRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createIndexFromBackupOperationCall(String backupId, CreateIndexFromBackupRequest createIndexFromBackupRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -926,18 +926,18 @@ public okhttp3.Call createIndexFromBackupCall(String backupId, CreateIndexFromBa } @SuppressWarnings("rawtypes") - private okhttp3.Call createIndexFromBackupValidateBeforeCall(String backupId, CreateIndexFromBackupRequest createIndexFromBackupRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createIndexFromBackupOperationValidateBeforeCall(String backupId, CreateIndexFromBackupRequest createIndexFromBackupRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'backupId' is set if (backupId == null) { - throw new ApiException("Missing the required parameter 'backupId' when calling createIndexFromBackup(Async)"); + throw new ApiException("Missing the required parameter 'backupId' when calling createIndexFromBackupOperation(Async)"); } // verify the required parameter 'createIndexFromBackupRequest' is set if (createIndexFromBackupRequest == null) { - throw new ApiException("Missing the required parameter 'createIndexFromBackupRequest' when calling createIndexFromBackup(Async)"); + throw new ApiException("Missing the required parameter 'createIndexFromBackupRequest' when calling createIndexFromBackupOperation(Async)"); } - return createIndexFromBackupCall(backupId, createIndexFromBackupRequest, _callback); + return createIndexFromBackupOperationCall(backupId, createIndexFromBackupRequest, _callback); } @@ -962,8 +962,8 @@ private okhttp3.Call createIndexFromBackupValidateBeforeCall(String backupId, Cr 500 Internal server error. - */ - public CreateIndexFromBackupResponse createIndexFromBackup(String backupId, CreateIndexFromBackupRequest createIndexFromBackupRequest) throws ApiException { - ApiResponse localVarResp = createIndexFromBackupWithHttpInfo(backupId, createIndexFromBackupRequest); + public CreateIndexFromBackupResponse createIndexFromBackupOperation(String backupId, CreateIndexFromBackupRequest createIndexFromBackupRequest) throws ApiException { + ApiResponse localVarResp = createIndexFromBackupOperationWithHttpInfo(backupId, createIndexFromBackupRequest); return localVarResp.getData(); } @@ -988,8 +988,8 @@ public CreateIndexFromBackupResponse createIndexFromBackup(String backupId, Crea 500 Internal server error. - */ - public ApiResponse createIndexFromBackupWithHttpInfo(String backupId, CreateIndexFromBackupRequest createIndexFromBackupRequest) throws ApiException { - okhttp3.Call localVarCall = createIndexFromBackupValidateBeforeCall(backupId, createIndexFromBackupRequest, null); + public ApiResponse createIndexFromBackupOperationWithHttpInfo(String backupId, CreateIndexFromBackupRequest createIndexFromBackupRequest) throws ApiException { + okhttp3.Call localVarCall = createIndexFromBackupOperationValidateBeforeCall(backupId, createIndexFromBackupRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1016,9 +1016,9 @@ public ApiResponse createIndexFromBackupWithHttpI 500 Internal server error. - */ - public okhttp3.Call createIndexFromBackupAsync(String backupId, CreateIndexFromBackupRequest createIndexFromBackupRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createIndexFromBackupOperationAsync(String backupId, CreateIndexFromBackupRequest createIndexFromBackupRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createIndexFromBackupValidateBeforeCall(backupId, createIndexFromBackupRequest, _callback); + okhttp3.Call localVarCall = createIndexFromBackupOperationValidateBeforeCall(backupId, createIndexFromBackupRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2363,6 +2363,8 @@ public okhttp3.Call listIndexesAsync(final ApiCallback _callback) thr } /** * Build call for listProjectBackups + * @param limit The number of results to return per page. (optional, default to 10) + * @param paginationToken The token to use to retrieve the next page of results. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2374,7 +2376,7 @@ public okhttp3.Call listIndexesAsync(final ApiCallback _callback) thr 500 Internal server error. - */ - public okhttp3.Call listProjectBackupsCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call listProjectBackupsCall(Integer limit, String paginationToken, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2399,6 +2401,14 @@ public okhttp3.Call listProjectBackupsCall(final ApiCallback _callback) throws A Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (paginationToken != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("paginationToken", paginationToken)); + } + final String[] localVarAccepts = { "application/json" }; @@ -2419,14 +2429,16 @@ public okhttp3.Call listProjectBackupsCall(final ApiCallback _callback) throws A } @SuppressWarnings("rawtypes") - private okhttp3.Call listProjectBackupsValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return listProjectBackupsCall(_callback); + private okhttp3.Call listProjectBackupsValidateBeforeCall(Integer limit, String paginationToken, final ApiCallback _callback) throws ApiException { + return listProjectBackupsCall(limit, paginationToken, _callback); } /** * List backups for all indexes in a project * List all backups for a project. + * @param limit The number of results to return per page. (optional, default to 10) + * @param paginationToken The token to use to retrieve the next page of results. (optional) * @return BackupList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2437,14 +2449,16 @@ private okhttp3.Call listProjectBackupsValidateBeforeCall(final ApiCallback _cal 500 Internal server error. - */ - public BackupList listProjectBackups() throws ApiException { - ApiResponse localVarResp = listProjectBackupsWithHttpInfo(); + public BackupList listProjectBackups(Integer limit, String paginationToken) throws ApiException { + ApiResponse localVarResp = listProjectBackupsWithHttpInfo(limit, paginationToken); return localVarResp.getData(); } /** * List backups for all indexes in a project * List all backups for a project. + * @param limit The number of results to return per page. (optional, default to 10) + * @param paginationToken The token to use to retrieve the next page of results. (optional) * @return ApiResponse<BackupList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2455,8 +2469,8 @@ public BackupList listProjectBackups() throws ApiException { 500 Internal server error. - */ - public ApiResponse listProjectBackupsWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = listProjectBackupsValidateBeforeCall(null); + public ApiResponse listProjectBackupsWithHttpInfo(Integer limit, String paginationToken) throws ApiException { + okhttp3.Call localVarCall = listProjectBackupsValidateBeforeCall(limit, paginationToken, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2464,6 +2478,8 @@ public ApiResponse listProjectBackupsWithHttpInfo() throws ApiExcept /** * List backups for all indexes in a project (asynchronously) * List all backups for a project. + * @param limit The number of results to return per page. (optional, default to 10) + * @param paginationToken The token to use to retrieve the next page of results. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2475,9 +2491,9 @@ public ApiResponse listProjectBackupsWithHttpInfo() throws ApiExcept 500 Internal server error. - */ - public okhttp3.Call listProjectBackupsAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call listProjectBackupsAsync(Integer limit, String paginationToken, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listProjectBackupsValidateBeforeCall(_callback); + okhttp3.Call localVarCall = listProjectBackupsValidateBeforeCall(limit, paginationToken, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/org/openapitools/db_control/client/auth/ApiKeyAuth.java b/src/main/java/org/openapitools/db_control/client/auth/ApiKeyAuth.java index acf2e5c1..ecc29384 100644 --- a/src/main/java/org/openapitools/db_control/client/auth/ApiKeyAuth.java +++ b/src/main/java/org/openapitools/db_control/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/org/openapitools/db_control/client/auth/HttpBearerAuth.java b/src/main/java/org/openapitools/db_control/client/auth/HttpBearerAuth.java index e902c2d9..6a74235e 100644 --- a/src/main/java/org/openapitools/db_control/client/auth/HttpBearerAuth.java +++ b/src/main/java/org/openapitools/db_control/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/src/main/java/org/openapitools/db_control/client/model/AbstractOpenApiSchema.java b/src/main/java/org/openapitools/db_control/client/model/AbstractOpenApiSchema.java index 834cd84a..632d203a 100644 --- a/src/main/java/org/openapitools/db_control/client/model/AbstractOpenApiSchema.java +++ b/src/main/java/org/openapitools/db_control/client/model/AbstractOpenApiSchema.java @@ -23,7 +23,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/org/openapitools/db_control/client/model/BackupList.java b/src/main/java/org/openapitools/db_control/client/model/BackupList.java index 8db302e6..7b85d129 100644 --- a/src/main/java/org/openapitools/db_control/client/model/BackupList.java +++ b/src/main/java/org/openapitools/db_control/client/model/BackupList.java @@ -53,7 +53,7 @@ /** * The list of backups that exist in the project. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class BackupList { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) diff --git a/src/main/java/org/openapitools/db_control/client/model/BackupModel.java b/src/main/java/org/openapitools/db_control/client/model/BackupModel.java index 916026c4..da016430 100644 --- a/src/main/java/org/openapitools/db_control/client/model/BackupModel.java +++ b/src/main/java/org/openapitools/db_control/client/model/BackupModel.java @@ -51,7 +51,7 @@ /** * The BackupModel describes the configuration and status of a Pinecone backup. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class BackupModel { public static final String SERIALIZED_NAME_BACKUP_ID = "backup_id"; @SerializedName(SERIALIZED_NAME_BACKUP_ID) diff --git a/src/main/java/org/openapitools/db_control/client/model/ByocSpec.java b/src/main/java/org/openapitools/db_control/client/model/ByocSpec.java index 6858af5d..0f27c99d 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ByocSpec.java +++ b/src/main/java/org/openapitools/db_control/client/model/ByocSpec.java @@ -49,7 +49,7 @@ /** * Configuration needed to deploy an index in a BYOC environment. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class ByocSpec { public static final String SERIALIZED_NAME_ENVIRONMENT = "environment"; @SerializedName(SERIALIZED_NAME_ENVIRONMENT) diff --git a/src/main/java/org/openapitools/db_control/client/model/CollectionList.java b/src/main/java/org/openapitools/db_control/client/model/CollectionList.java index 0ec32102..5f3ab79c 100644 --- a/src/main/java/org/openapitools/db_control/client/model/CollectionList.java +++ b/src/main/java/org/openapitools/db_control/client/model/CollectionList.java @@ -52,7 +52,7 @@ /** * The list of collections that exist in the project. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class CollectionList { public static final String SERIALIZED_NAME_COLLECTIONS = "collections"; @SerializedName(SERIALIZED_NAME_COLLECTIONS) diff --git a/src/main/java/org/openapitools/db_control/client/model/CollectionModel.java b/src/main/java/org/openapitools/db_control/client/model/CollectionModel.java index e88c72dd..f5e5232d 100644 --- a/src/main/java/org/openapitools/db_control/client/model/CollectionModel.java +++ b/src/main/java/org/openapitools/db_control/client/model/CollectionModel.java @@ -49,7 +49,7 @@ /** * The CollectionModel describes the configuration and status of a Pinecone collection. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class CollectionModel { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequest.java b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequest.java index cc0b045c..9cd983b5 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequest.java +++ b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequest.java @@ -54,7 +54,7 @@ /** * Configuration used to scale an index. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class ConfigureIndexRequest { public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) diff --git a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestEmbed.java b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestEmbed.java index a837b222..16c0f26e 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestEmbed.java +++ b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestEmbed.java @@ -47,9 +47,9 @@ import org.openapitools.db_control.client.JSON; /** - * Configure the integrated inference embedding settings for this index. You can convert an existing index to an integrated index by specifying the embedding model and field_map. The index vector type and dimension must match the model vector type and dimension, and the index similarity metric must be supported by the model. Refer to the [model guide](https://docs.pinecone.io/guides/inference/understanding-inference#embedding-models) for available models and model details. You can later change the embedding configuration to update the field map, read parameters, or write parameters. Once set, the model cannot be changed. + * Configure the integrated inference embedding settings for this index. You can convert an existing index to an integrated index by specifying the embedding model and field_map. The index vector type and dimension must match the model vector type and dimension, and the index similarity metric must be supported by the model. Refer to the [model guide](https://docs.pinecone.io/guides/index-data/create-an-index#embedding-models) for available models and model details. You can later change the embedding configuration to update the field map, read parameters, or write parameters. Once set, the model cannot be changed. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class ConfigureIndexRequestEmbed { public static final String SERIALIZED_NAME_MODEL = "model"; @SerializedName(SERIALIZED_NAME_MODEL) diff --git a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestSpec.java b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestSpec.java index 1696b73b..8c0ad7e7 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestSpec.java +++ b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestSpec.java @@ -50,7 +50,7 @@ /** * ConfigureIndexRequestSpec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class ConfigureIndexRequestSpec { public static final String SERIALIZED_NAME_POD = "pod"; @SerializedName(SERIALIZED_NAME_POD) diff --git a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestSpecPod.java b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestSpecPod.java index e001e584..00a99dd7 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestSpecPod.java +++ b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestSpecPod.java @@ -49,7 +49,7 @@ /** * ConfigureIndexRequestSpecPod */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class ConfigureIndexRequestSpecPod { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) diff --git a/src/main/java/org/openapitools/db_control/client/model/CreateBackupRequest.java b/src/main/java/org/openapitools/db_control/client/model/CreateBackupRequest.java index 3a8a7c8c..fc626925 100644 --- a/src/main/java/org/openapitools/db_control/client/model/CreateBackupRequest.java +++ b/src/main/java/org/openapitools/db_control/client/model/CreateBackupRequest.java @@ -49,7 +49,7 @@ /** * The configuration needed to create a backup of an index. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class CreateBackupRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/org/openapitools/db_control/client/model/CreateCollectionRequest.java b/src/main/java/org/openapitools/db_control/client/model/CreateCollectionRequest.java index 322e677d..fdd0671a 100644 --- a/src/main/java/org/openapitools/db_control/client/model/CreateCollectionRequest.java +++ b/src/main/java/org/openapitools/db_control/client/model/CreateCollectionRequest.java @@ -49,7 +49,7 @@ /** * The configuration needed to create a Pinecone collection. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class CreateCollectionRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/org/openapitools/db_control/client/model/CreateIndexForModelRequest.java b/src/main/java/org/openapitools/db_control/client/model/CreateIndexForModelRequest.java index c6ad08cf..255d9d62 100644 --- a/src/main/java/org/openapitools/db_control/client/model/CreateIndexForModelRequest.java +++ b/src/main/java/org/openapitools/db_control/client/model/CreateIndexForModelRequest.java @@ -53,7 +53,7 @@ /** * The desired configuration for the index and associated embedding model. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class CreateIndexForModelRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/org/openapitools/db_control/client/model/CreateIndexForModelRequestEmbed.java b/src/main/java/org/openapitools/db_control/client/model/CreateIndexForModelRequestEmbed.java index f9358765..8efae735 100644 --- a/src/main/java/org/openapitools/db_control/client/model/CreateIndexForModelRequestEmbed.java +++ b/src/main/java/org/openapitools/db_control/client/model/CreateIndexForModelRequestEmbed.java @@ -47,9 +47,9 @@ import org.openapitools.db_control.client.JSON; /** - * Specify the integrated inference embedding configuration for the index. Once set the model cannot be changed, but you can later update the embedding configuration for an integrated inference index including field map, read parameters, or write parameters. Refer to the [model guide](https://docs.pinecone.io/guides/inference/understanding-inference#embedding-models) for available models and model details. + * Specify the integrated inference embedding configuration for the index. Once set the model cannot be changed, but you can later update the embedding configuration for an integrated inference index including field map, read parameters, or write parameters. Refer to the [model guide](https://docs.pinecone.io/guides/index-data/create-an-index#embedding-models) for available models and model details. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class CreateIndexForModelRequestEmbed { public static final String SERIALIZED_NAME_MODEL = "model"; @SerializedName(SERIALIZED_NAME_MODEL) diff --git a/src/main/java/org/openapitools/db_control/client/model/CreateIndexFromBackupRequest.java b/src/main/java/org/openapitools/db_control/client/model/CreateIndexFromBackupRequest.java index fd85f1cc..4427cb68 100644 --- a/src/main/java/org/openapitools/db_control/client/model/CreateIndexFromBackupRequest.java +++ b/src/main/java/org/openapitools/db_control/client/model/CreateIndexFromBackupRequest.java @@ -52,7 +52,7 @@ /** * The configuration needed to create a Pinecone index from a backup. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class CreateIndexFromBackupRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/org/openapitools/db_control/client/model/CreateIndexFromBackupResponse.java b/src/main/java/org/openapitools/db_control/client/model/CreateIndexFromBackupResponse.java index 416b8581..2afa2964 100644 --- a/src/main/java/org/openapitools/db_control/client/model/CreateIndexFromBackupResponse.java +++ b/src/main/java/org/openapitools/db_control/client/model/CreateIndexFromBackupResponse.java @@ -49,7 +49,7 @@ /** * The response for creating an index from a backup. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class CreateIndexFromBackupResponse { public static final String SERIALIZED_NAME_RESTORE_JOB_ID = "restore_job_id"; @SerializedName(SERIALIZED_NAME_RESTORE_JOB_ID) diff --git a/src/main/java/org/openapitools/db_control/client/model/CreateIndexRequest.java b/src/main/java/org/openapitools/db_control/client/model/CreateIndexRequest.java index cb82681a..7966cb51 100644 --- a/src/main/java/org/openapitools/db_control/client/model/CreateIndexRequest.java +++ b/src/main/java/org/openapitools/db_control/client/model/CreateIndexRequest.java @@ -53,7 +53,7 @@ /** * The configuration needed to create a Pinecone index. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class CreateIndexRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/org/openapitools/db_control/client/model/DeletionProtection.java b/src/main/java/org/openapitools/db_control/client/model/DeletionProtection.java index ed5149d6..cc619816 100644 --- a/src/main/java/org/openapitools/db_control/client/model/DeletionProtection.java +++ b/src/main/java/org/openapitools/db_control/client/model/DeletionProtection.java @@ -23,7 +23,7 @@ import com.google.gson.stream.JsonWriter; /** - * Whether [deletion protection](http://docs.pinecone.io/guides/indexes/manage-indexes#configure-deletion-protection) is enabled/disabled for the index. + * Whether [deletion protection](http://docs.pinecone.io/guides/manage-data/manage-indexes#configure-deletion-protection) is enabled/disabled for the index. */ @JsonAdapter(DeletionProtection.Adapter.class) public enum DeletionProtection { diff --git a/src/main/java/org/openapitools/db_control/client/model/ErrorResponse.java b/src/main/java/org/openapitools/db_control/client/model/ErrorResponse.java index f9a7d2b8..6df0386b 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ErrorResponse.java +++ b/src/main/java/org/openapitools/db_control/client/model/ErrorResponse.java @@ -50,7 +50,7 @@ /** * The response shape used for all error responses. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class ErrorResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/src/main/java/org/openapitools/db_control/client/model/ErrorResponseError.java b/src/main/java/org/openapitools/db_control/client/model/ErrorResponseError.java index d2ba6369..05d5722a 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ErrorResponseError.java +++ b/src/main/java/org/openapitools/db_control/client/model/ErrorResponseError.java @@ -49,7 +49,7 @@ /** * Detailed information about the error that occurred. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class ErrorResponseError { /** * Gets or Sets code diff --git a/src/main/java/org/openapitools/db_control/client/model/IndexList.java b/src/main/java/org/openapitools/db_control/client/model/IndexList.java index 5512ec86..c215f30d 100644 --- a/src/main/java/org/openapitools/db_control/client/model/IndexList.java +++ b/src/main/java/org/openapitools/db_control/client/model/IndexList.java @@ -52,7 +52,7 @@ /** * The list of indexes that exist in the project. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class IndexList { public static final String SERIALIZED_NAME_INDEXES = "indexes"; @SerializedName(SERIALIZED_NAME_INDEXES) diff --git a/src/main/java/org/openapitools/db_control/client/model/IndexModel.java b/src/main/java/org/openapitools/db_control/client/model/IndexModel.java index d4f187c1..33c61d51 100644 --- a/src/main/java/org/openapitools/db_control/client/model/IndexModel.java +++ b/src/main/java/org/openapitools/db_control/client/model/IndexModel.java @@ -55,7 +55,7 @@ /** * The IndexModel describes the configuration and status of a Pinecone index. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class IndexModel { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/org/openapitools/db_control/client/model/IndexModelSpec.java b/src/main/java/org/openapitools/db_control/client/model/IndexModelSpec.java index b8900108..ce2ec32a 100644 --- a/src/main/java/org/openapitools/db_control/client/model/IndexModelSpec.java +++ b/src/main/java/org/openapitools/db_control/client/model/IndexModelSpec.java @@ -52,7 +52,7 @@ /** * IndexModelSpec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class IndexModelSpec { public static final String SERIALIZED_NAME_BYOC = "byoc"; @SerializedName(SERIALIZED_NAME_BYOC) diff --git a/src/main/java/org/openapitools/db_control/client/model/IndexModelStatus.java b/src/main/java/org/openapitools/db_control/client/model/IndexModelStatus.java index 2b0b70b1..f8088146 100644 --- a/src/main/java/org/openapitools/db_control/client/model/IndexModelStatus.java +++ b/src/main/java/org/openapitools/db_control/client/model/IndexModelStatus.java @@ -49,7 +49,7 @@ /** * IndexModelStatus */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class IndexModelStatus { public static final String SERIALIZED_NAME_READY = "ready"; @SerializedName(SERIALIZED_NAME_READY) diff --git a/src/main/java/org/openapitools/db_control/client/model/IndexSpec.java b/src/main/java/org/openapitools/db_control/client/model/IndexSpec.java index 011c54d7..69f5efb9 100644 --- a/src/main/java/org/openapitools/db_control/client/model/IndexSpec.java +++ b/src/main/java/org/openapitools/db_control/client/model/IndexSpec.java @@ -50,9 +50,9 @@ import org.openapitools.db_control.client.JSON; /** - * The spec object defines how the index should be deployed. For serverless indexes, you set only the [cloud and region](http://docs.pinecone.io/guides/indexes/understanding-indexes#cloud-regions) where the index should be hosted. For pod-based indexes, you set the [environment](http://docs.pinecone.io/guides/indexes/pods/understanding-pod-based-indexes#pod-environments) where the index should be hosted, the [pod type and size](http://docs.pinecone.io/guides/indexes/pods/understanding-pod-based-indexes#pod-types) to use, and other index characteristics. For [BYOC indexes](http://docs.pinecone.io/guides/operations/bring-your-own-cloud), you set the environment name provided to you during onboarding. + * The spec object defines how the index should be deployed. For serverless indexes, you set only the [cloud and region](http://docs.pinecone.io/guides/index-data/create-an-index#cloud-regions) where the index should be hosted. For pod-based indexes, you set the [environment](http://docs.pinecone.io/guides/indexes/pods/understanding-pod-based-indexes#pod-environments) where the index should be hosted, the [pod type and size](http://docs.pinecone.io/guides/indexes/pods/understanding-pod-based-indexes#pod-types) to use, and other index characteristics. For [BYOC indexes](http://docs.pinecone.io/guides/production/bring-your-own-cloud), you set the environment name provided to you during onboarding. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class IndexSpec { public static final String SERIALIZED_NAME_SERVERLESS = "serverless"; @SerializedName(SERIALIZED_NAME_SERVERLESS) diff --git a/src/main/java/org/openapitools/db_control/client/model/ModelIndexEmbed.java b/src/main/java/org/openapitools/db_control/client/model/ModelIndexEmbed.java index 968a08ba..42aa67ec 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ModelIndexEmbed.java +++ b/src/main/java/org/openapitools/db_control/client/model/ModelIndexEmbed.java @@ -49,7 +49,7 @@ /** * The embedding model and document fields mapped to embedding inputs. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class ModelIndexEmbed { public static final String SERIALIZED_NAME_MODEL = "model"; @SerializedName(SERIALIZED_NAME_MODEL) diff --git a/src/main/java/org/openapitools/db_control/client/model/PaginationResponse.java b/src/main/java/org/openapitools/db_control/client/model/PaginationResponse.java index e475342d..8d85c7c7 100644 --- a/src/main/java/org/openapitools/db_control/client/model/PaginationResponse.java +++ b/src/main/java/org/openapitools/db_control/client/model/PaginationResponse.java @@ -49,7 +49,7 @@ /** * The pagination object that is returned with paginated responses. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class PaginationResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) diff --git a/src/main/java/org/openapitools/db_control/client/model/PodSpec.java b/src/main/java/org/openapitools/db_control/client/model/PodSpec.java index 4d969839..87c8414b 100644 --- a/src/main/java/org/openapitools/db_control/client/model/PodSpec.java +++ b/src/main/java/org/openapitools/db_control/client/model/PodSpec.java @@ -50,7 +50,7 @@ /** * Configuration needed to deploy a pod-based index. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class PodSpec { public static final String SERIALIZED_NAME_ENVIRONMENT = "environment"; @SerializedName(SERIALIZED_NAME_ENVIRONMENT) diff --git a/src/main/java/org/openapitools/db_control/client/model/PodSpecMetadataConfig.java b/src/main/java/org/openapitools/db_control/client/model/PodSpecMetadataConfig.java index d34edfc3..45f9956f 100644 --- a/src/main/java/org/openapitools/db_control/client/model/PodSpecMetadataConfig.java +++ b/src/main/java/org/openapitools/db_control/client/model/PodSpecMetadataConfig.java @@ -51,7 +51,7 @@ /** * Configuration for the behavior of Pinecone's internal metadata index. By default, all metadata is indexed; when `metadata_config` is present, only specified metadata fields are indexed. These configurations are only valid for use with pod-based indexes. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class PodSpecMetadataConfig { public static final String SERIALIZED_NAME_INDEXED = "indexed"; @SerializedName(SERIALIZED_NAME_INDEXED) diff --git a/src/main/java/org/openapitools/db_control/client/model/RestoreJobList.java b/src/main/java/org/openapitools/db_control/client/model/RestoreJobList.java index ae25987d..6ae2a72f 100644 --- a/src/main/java/org/openapitools/db_control/client/model/RestoreJobList.java +++ b/src/main/java/org/openapitools/db_control/client/model/RestoreJobList.java @@ -53,7 +53,7 @@ /** * The list of restore jobs that exist in the project. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class RestoreJobList { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) diff --git a/src/main/java/org/openapitools/db_control/client/model/RestoreJobModel.java b/src/main/java/org/openapitools/db_control/client/model/RestoreJobModel.java index 02599edd..d2822de9 100644 --- a/src/main/java/org/openapitools/db_control/client/model/RestoreJobModel.java +++ b/src/main/java/org/openapitools/db_control/client/model/RestoreJobModel.java @@ -50,7 +50,7 @@ /** * The RestoreJobModel describes the status of a restore job. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class RestoreJobModel { public static final String SERIALIZED_NAME_RESTORE_JOB_ID = "restore_job_id"; @SerializedName(SERIALIZED_NAME_RESTORE_JOB_ID) diff --git a/src/main/java/org/openapitools/db_control/client/model/ServerlessSpec.java b/src/main/java/org/openapitools/db_control/client/model/ServerlessSpec.java index 7638451c..3eca9021 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ServerlessSpec.java +++ b/src/main/java/org/openapitools/db_control/client/model/ServerlessSpec.java @@ -49,7 +49,7 @@ /** * Configuration needed to deploy a serverless index. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:23.829370Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:13.211110Z[Etc/UTC]") public class ServerlessSpec { /** * The public cloud where you would like your index hosted. diff --git a/src/main/java/org/openapitools/db_data/client/ApiException.java b/src/main/java/org/openapitools/db_data/client/ApiException.java index d683d3be..58a6e069 100644 --- a/src/main/java/org/openapitools/db_data/client/ApiException.java +++ b/src/main/java/org/openapitools/db_data/client/ApiException.java @@ -21,7 +21,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/src/main/java/org/openapitools/db_data/client/Configuration.java b/src/main/java/org/openapitools/db_data/client/Configuration.java index 4cc09a9d..39f15c8e 100644 --- a/src/main/java/org/openapitools/db_data/client/Configuration.java +++ b/src/main/java/org/openapitools/db_data/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.db_data.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class Configuration { public static final String VERSION = "2025-04"; diff --git a/src/main/java/org/openapitools/db_data/client/Pair.java b/src/main/java/org/openapitools/db_data/client/Pair.java index 1e79cc75..5745c844 100644 --- a/src/main/java/org/openapitools/db_data/client/Pair.java +++ b/src/main/java/org/openapitools/db_data/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.db_data.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/org/openapitools/db_data/client/StringUtil.java b/src/main/java/org/openapitools/db_data/client/StringUtil.java index f338881d..ccebcb9a 100644 --- a/src/main/java/org/openapitools/db_data/client/StringUtil.java +++ b/src/main/java/org/openapitools/db_data/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/org/openapitools/db_data/client/api/BulkOperationsApi.java b/src/main/java/org/openapitools/db_data/client/api/BulkOperationsApi.java index 29bf6ee1..e0b0dcad 100644 --- a/src/main/java/org/openapitools/db_data/client/api/BulkOperationsApi.java +++ b/src/main/java/org/openapitools/db_data/client/api/BulkOperationsApi.java @@ -149,7 +149,7 @@ private okhttp3.Call cancelBulkImportValidateBeforeCall(String id, final ApiCall /** * Cancel an import - * Cancel an import operation if it is not yet finished. It has no effect if the operation is already finished. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/data/import-data). + * Cancel an import operation if it is not yet finished. It has no effect if the operation is already finished. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/index-data/import-data). * @param id Unique identifier for the import operation. (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -169,7 +169,7 @@ public Object cancelBulkImport(String id) throws ApiException { /** * Cancel an import - * Cancel an import operation if it is not yet finished. It has no effect if the operation is already finished. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/data/import-data). + * Cancel an import operation if it is not yet finished. It has no effect if the operation is already finished. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/index-data/import-data). * @param id Unique identifier for the import operation. (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -190,7 +190,7 @@ public ApiResponse cancelBulkImportWithHttpInfo(String id) throws ApiExc /** * Cancel an import (asynchronously) - * Cancel an import operation if it is not yet finished. It has no effect if the operation is already finished. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/data/import-data). + * Cancel an import operation if it is not yet finished. It has no effect if the operation is already finished. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/index-data/import-data). * @param id Unique identifier for the import operation. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -284,7 +284,7 @@ private okhttp3.Call describeBulkImportValidateBeforeCall(String id, final ApiCa /** * Describe an import - * Return details of a specific import operation. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/data/import-data). + * Return details of a specific import operation. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/index-data/import-data). * @param id Unique identifier for the import operation. (required) * @return ImportModel * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -304,7 +304,7 @@ public ImportModel describeBulkImport(String id) throws ApiException { /** * Describe an import - * Return details of a specific import operation. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/data/import-data). + * Return details of a specific import operation. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/index-data/import-data). * @param id Unique identifier for the import operation. (required) * @return ApiResponse<ImportModel> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -325,7 +325,7 @@ public ApiResponse describeBulkImportWithHttpInfo(String id) throws /** * Describe an import (asynchronously) - * Return details of a specific import operation. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/data/import-data). + * Return details of a specific import operation. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/index-data/import-data). * @param id Unique identifier for the import operation. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -422,7 +422,7 @@ private okhttp3.Call listBulkImportsValidateBeforeCall(Integer limit, String pag /** * List imports - * List all recent and ongoing import operations. By default, `list_imports` returns up to 100 imports per page. If the `limit` parameter is set, `list` returns up to that number of imports instead. Whenever there are additional IDs to return, the response also includes a `pagination_token` that you can use to get the next batch of imports. When the response does not include a `pagination_token`, there are no more imports to return. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/data/import-data). + * List all recent and ongoing import operations. By default, `list_imports` returns up to 100 imports per page. If the `limit` parameter is set, `list` returns up to that number of imports instead. Whenever there are additional IDs to return, the response also includes a `pagination_token` that you can use to get the next batch of imports. When the response does not include a `pagination_token`, there are no more imports to return. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/index-data/import-data). * @param limit Max number of operations to return per page. (optional) * @param paginationToken Pagination token to continue a previous listing operation. (optional) * @return ListImportsResponse @@ -443,7 +443,7 @@ public ListImportsResponse listBulkImports(Integer limit, String paginationToken /** * List imports - * List all recent and ongoing import operations. By default, `list_imports` returns up to 100 imports per page. If the `limit` parameter is set, `list` returns up to that number of imports instead. Whenever there are additional IDs to return, the response also includes a `pagination_token` that you can use to get the next batch of imports. When the response does not include a `pagination_token`, there are no more imports to return. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/data/import-data). + * List all recent and ongoing import operations. By default, `list_imports` returns up to 100 imports per page. If the `limit` parameter is set, `list` returns up to that number of imports instead. Whenever there are additional IDs to return, the response also includes a `pagination_token` that you can use to get the next batch of imports. When the response does not include a `pagination_token`, there are no more imports to return. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/index-data/import-data). * @param limit Max number of operations to return per page. (optional) * @param paginationToken Pagination token to continue a previous listing operation. (optional) * @return ApiResponse<ListImportsResponse> @@ -465,7 +465,7 @@ public ApiResponse listBulkImportsWithHttpInfo(Integer limi /** * List imports (asynchronously) - * List all recent and ongoing import operations. By default, `list_imports` returns up to 100 imports per page. If the `limit` parameter is set, `list` returns up to that number of imports instead. Whenever there are additional IDs to return, the response also includes a `pagination_token` that you can use to get the next batch of imports. When the response does not include a `pagination_token`, there are no more imports to return. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/data/import-data). + * List all recent and ongoing import operations. By default, `list_imports` returns up to 100 imports per page. If the `limit` parameter is set, `list` returns up to that number of imports instead. Whenever there are additional IDs to return, the response also includes a `pagination_token` that you can use to get the next batch of imports. When the response does not include a `pagination_token`, there are no more imports to return. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/index-data/import-data). * @param limit Max number of operations to return per page. (optional) * @param paginationToken Pagination token to continue a previous listing operation. (optional) * @param _callback The callback to be executed when the API call finishes @@ -560,7 +560,7 @@ private okhttp3.Call startBulkImportValidateBeforeCall(StartImportRequest startI /** * Start import - * Start an asynchronous import of vectors from object storage into an index. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/data/import-data). + * Start an asynchronous import of vectors from object storage into an index. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/index-data/import-data). * @param startImportRequest (required) * @return StartImportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -580,7 +580,7 @@ public StartImportResponse startBulkImport(StartImportRequest startImportRequest /** * Start import - * Start an asynchronous import of vectors from object storage into an index. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/data/import-data). + * Start an asynchronous import of vectors from object storage into an index. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/index-data/import-data). * @param startImportRequest (required) * @return ApiResponse<StartImportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -601,7 +601,7 @@ public ApiResponse startBulkImportWithHttpInfo(StartImportR /** * Start import (asynchronously) - * Start an asynchronous import of vectors from object storage into an index. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/data/import-data). + * Start an asynchronous import of vectors from object storage into an index. For guidance and examples, see [Import data](https://docs.pinecone.io/guides/index-data/import-data). * @param startImportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call diff --git a/src/main/java/org/openapitools/db_data/client/api/NamespaceOperationsApi.java b/src/main/java/org/openapitools/db_data/client/api/NamespaceOperationsApi.java index 1d72f439..ed2d1f81 100644 --- a/src/main/java/org/openapitools/db_data/client/api/NamespaceOperationsApi.java +++ b/src/main/java/org/openapitools/db_data/client/api/NamespaceOperationsApi.java @@ -282,7 +282,7 @@ private okhttp3.Call describeNamespaceValidateBeforeCall(String namespace, final /** * Describe a namespace - * Describe a namespace within an index, showing the vector count within the namespace. + * Describe a [namespace](https://docs.pinecone.io/guides/index-data/indexing-overview#namespaces) in a serverless index, including the total number of vectors in the namespace. * @param namespace The namespace to describe (required) * @return NamespaceDescription * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -302,7 +302,7 @@ public NamespaceDescription describeNamespace(String namespace) throws ApiExcept /** * Describe a namespace - * Describe a namespace within an index, showing the vector count within the namespace. + * Describe a [namespace](https://docs.pinecone.io/guides/index-data/indexing-overview#namespaces) in a serverless index, including the total number of vectors in the namespace. * @param namespace The namespace to describe (required) * @return ApiResponse<NamespaceDescription> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -323,7 +323,7 @@ public ApiResponse describeNamespaceWithHttpInfo(String na /** * Describe a namespace (asynchronously) - * Describe a namespace within an index, showing the vector count within the namespace. + * Describe a [namespace](https://docs.pinecone.io/guides/index-data/indexing-overview#namespaces) in a serverless index, including the total number of vectors in the namespace. * @param namespace The namespace to describe (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -345,7 +345,7 @@ public okhttp3.Call describeNamespaceAsync(String namespace, final ApiCallback 5XX An unexpected error response. - */ - public okhttp3.Call listNamespacesCall(Integer limit, String paginationToken, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listNamespacesOperationCall(Integer limit, String paginationToken, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -412,14 +412,14 @@ public okhttp3.Call listNamespacesCall(Integer limit, String paginationToken, fi } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacesValidateBeforeCall(Integer limit, String paginationToken, final ApiCallback _callback) throws ApiException { - return listNamespacesCall(limit, paginationToken, _callback); + private okhttp3.Call listNamespacesOperationValidateBeforeCall(Integer limit, String paginationToken, final ApiCallback _callback) throws ApiException { + return listNamespacesOperationCall(limit, paginationToken, _callback); } /** - * Get list of all namespaces - * Get a list of all namespaces within an index. + * List namespaces + * Get a list of all [namespaces](https://docs.pinecone.io/guides/index-data/indexing-overview#namespaces) in a serverless index. Up to 100 namespaces are returned at a time by default, in sorted order (bitwise “C” collation). If the `limit` parameter is set, up to that number of namespaces are returned instead. Whenever there are additional namespaces to return, the response also includes a `pagination_token` that you can use to get the next batch of namespaces. When the response does not include a `pagination_token`, there are no more namespaces to return. * @param limit Max number namespaces to return per page. (optional) * @param paginationToken Pagination token to continue a previous listing operation. (optional) * @return ListNamespacesResponse @@ -432,14 +432,14 @@ private okhttp3.Call listNamespacesValidateBeforeCall(Integer limit, String pagi 5XX An unexpected error response. - */ - public ListNamespacesResponse listNamespaces(Integer limit, String paginationToken) throws ApiException { - ApiResponse localVarResp = listNamespacesWithHttpInfo(limit, paginationToken); + public ListNamespacesResponse listNamespacesOperation(Integer limit, String paginationToken) throws ApiException { + ApiResponse localVarResp = listNamespacesOperationWithHttpInfo(limit, paginationToken); return localVarResp.getData(); } /** - * Get list of all namespaces - * Get a list of all namespaces within an index. + * List namespaces + * Get a list of all [namespaces](https://docs.pinecone.io/guides/index-data/indexing-overview#namespaces) in a serverless index. Up to 100 namespaces are returned at a time by default, in sorted order (bitwise “C” collation). If the `limit` parameter is set, up to that number of namespaces are returned instead. Whenever there are additional namespaces to return, the response also includes a `pagination_token` that you can use to get the next batch of namespaces. When the response does not include a `pagination_token`, there are no more namespaces to return. * @param limit Max number namespaces to return per page. (optional) * @param paginationToken Pagination token to continue a previous listing operation. (optional) * @return ApiResponse<ListNamespacesResponse> @@ -452,15 +452,15 @@ public ListNamespacesResponse listNamespaces(Integer limit, String paginationTok 5XX An unexpected error response. - */ - public ApiResponse listNamespacesWithHttpInfo(Integer limit, String paginationToken) throws ApiException { - okhttp3.Call localVarCall = listNamespacesValidateBeforeCall(limit, paginationToken, null); + public ApiResponse listNamespacesOperationWithHttpInfo(Integer limit, String paginationToken) throws ApiException { + okhttp3.Call localVarCall = listNamespacesOperationValidateBeforeCall(limit, paginationToken, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Get list of all namespaces (asynchronously) - * Get a list of all namespaces within an index. + * List namespaces (asynchronously) + * Get a list of all [namespaces](https://docs.pinecone.io/guides/index-data/indexing-overview#namespaces) in a serverless index. Up to 100 namespaces are returned at a time by default, in sorted order (bitwise “C” collation). If the `limit` parameter is set, up to that number of namespaces are returned instead. Whenever there are additional namespaces to return, the response also includes a `pagination_token` that you can use to get the next batch of namespaces. When the response does not include a `pagination_token`, there are no more namespaces to return. * @param limit Max number namespaces to return per page. (optional) * @param paginationToken Pagination token to continue a previous listing operation. (optional) * @param _callback The callback to be executed when the API call finishes @@ -474,9 +474,9 @@ public ApiResponse listNamespacesWithHttpInfo(Integer li 5XX An unexpected error response. - */ - public okhttp3.Call listNamespacesAsync(Integer limit, String paginationToken, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listNamespacesOperationAsync(Integer limit, String paginationToken, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacesValidateBeforeCall(limit, paginationToken, _callback); + okhttp3.Call localVarCall = listNamespacesOperationValidateBeforeCall(limit, paginationToken, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/org/openapitools/db_data/client/api/VectorOperationsApi.java b/src/main/java/org/openapitools/db_data/client/api/VectorOperationsApi.java index 85a9d210..def7e958 100644 --- a/src/main/java/org/openapitools/db_data/client/api/VectorOperationsApi.java +++ b/src/main/java/org/openapitools/db_data/client/api/VectorOperationsApi.java @@ -158,7 +158,7 @@ private okhttp3.Call deleteVectorsValidateBeforeCall(DeleteRequest deleteRequest /** * Delete vectors - * Delete vectors by id from a single namespace. For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/data/delete-data). + * Delete vectors by id from a single namespace. For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data). * @param deleteRequest (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -178,7 +178,7 @@ public Object deleteVectors(DeleteRequest deleteRequest) throws ApiException { /** * Delete vectors - * Delete vectors by id from a single namespace. For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/data/delete-data). + * Delete vectors by id from a single namespace. For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data). * @param deleteRequest (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -199,7 +199,7 @@ public ApiResponse deleteVectorsWithHttpInfo(DeleteRequest deleteRequest /** * Delete vectors (asynchronously) - * Delete vectors by id from a single namespace. For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/data/delete-data). + * Delete vectors by id from a single namespace. For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data). * @param deleteRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -436,7 +436,7 @@ private okhttp3.Call fetchVectorsValidateBeforeCall(List ids, String nam /** * Fetch vectors - * Look up and return vectors by ID from a single namespace. The returned vectors include the vector data and/or metadata. For guidance and examples, see [Fetch data](https://docs.pinecone.io/guides/data/fetch-data). + * Look up and return vectors by ID from a single namespace. The returned vectors include the vector data and/or metadata. For guidance and examples, see [Fetch data](https://docs.pinecone.io/guides/manage-data/fetch-data). * @param ids The vector IDs to fetch. Does not accept values containing spaces. (required) * @param namespace (optional) * @return FetchResponse @@ -457,7 +457,7 @@ public FetchResponse fetchVectors(List ids, String namespace) throws Api /** * Fetch vectors - * Look up and return vectors by ID from a single namespace. The returned vectors include the vector data and/or metadata. For guidance and examples, see [Fetch data](https://docs.pinecone.io/guides/data/fetch-data). + * Look up and return vectors by ID from a single namespace. The returned vectors include the vector data and/or metadata. For guidance and examples, see [Fetch data](https://docs.pinecone.io/guides/manage-data/fetch-data). * @param ids The vector IDs to fetch. Does not accept values containing spaces. (required) * @param namespace (optional) * @return ApiResponse<FetchResponse> @@ -479,7 +479,7 @@ public ApiResponse fetchVectorsWithHttpInfo(List ids, Str /** * Fetch vectors (asynchronously) - * Look up and return vectors by ID from a single namespace. The returned vectors include the vector data and/or metadata. For guidance and examples, see [Fetch data](https://docs.pinecone.io/guides/data/fetch-data). + * Look up and return vectors by ID from a single namespace. The returned vectors include the vector data and/or metadata. For guidance and examples, see [Fetch data](https://docs.pinecone.io/guides/manage-data/fetch-data). * @param ids The vector IDs to fetch. Does not accept values containing spaces. (required) * @param namespace (optional) * @param _callback The callback to be executed when the API call finishes @@ -587,7 +587,7 @@ private okhttp3.Call listVectorsValidateBeforeCall(String prefix, Long limit, St /** * List vector IDs - * List the IDs of vectors in a single namespace of a serverless index. An optional prefix can be passed to limit the results to IDs with a common prefix. Returns up to 100 IDs at a time by default in sorted order (bitwise \"C\" collation). If the `limit` parameter is set, `list` returns up to that number of IDs instead. Whenever there are additional IDs to return, the response also includes a `pagination_token` that you can use to get the next batch of IDs. When the response does not include a `pagination_token`, there are no more IDs to return. For guidance and examples, see [List record IDs](https://docs.pinecone.io/guides/data/list-record-ids). **Note:** `list` is supported only for serverless indexes. + * List the IDs of vectors in a single namespace of a serverless index. An optional prefix can be passed to limit the results to IDs with a common prefix. Returns up to 100 IDs at a time by default in sorted order (bitwise \"C\" collation). If the `limit` parameter is set, `list` returns up to that number of IDs instead. Whenever there are additional IDs to return, the response also includes a `pagination_token` that you can use to get the next batch of IDs. When the response does not include a `pagination_token`, there are no more IDs to return. For guidance and examples, see [List record IDs](https://docs.pinecone.io/guides/manage-data/list-record-ids). **Note:** `list` is supported only for serverless indexes. * @param prefix The vector IDs to fetch. Does not accept values containing spaces. (optional) * @param limit Max number of IDs to return per page. (optional) * @param paginationToken Pagination token to continue a previous listing operation. (optional) @@ -610,7 +610,7 @@ public ListResponse listVectors(String prefix, Long limit, String paginationToke /** * List vector IDs - * List the IDs of vectors in a single namespace of a serverless index. An optional prefix can be passed to limit the results to IDs with a common prefix. Returns up to 100 IDs at a time by default in sorted order (bitwise \"C\" collation). If the `limit` parameter is set, `list` returns up to that number of IDs instead. Whenever there are additional IDs to return, the response also includes a `pagination_token` that you can use to get the next batch of IDs. When the response does not include a `pagination_token`, there are no more IDs to return. For guidance and examples, see [List record IDs](https://docs.pinecone.io/guides/data/list-record-ids). **Note:** `list` is supported only for serverless indexes. + * List the IDs of vectors in a single namespace of a serverless index. An optional prefix can be passed to limit the results to IDs with a common prefix. Returns up to 100 IDs at a time by default in sorted order (bitwise \"C\" collation). If the `limit` parameter is set, `list` returns up to that number of IDs instead. Whenever there are additional IDs to return, the response also includes a `pagination_token` that you can use to get the next batch of IDs. When the response does not include a `pagination_token`, there are no more IDs to return. For guidance and examples, see [List record IDs](https://docs.pinecone.io/guides/manage-data/list-record-ids). **Note:** `list` is supported only for serverless indexes. * @param prefix The vector IDs to fetch. Does not accept values containing spaces. (optional) * @param limit Max number of IDs to return per page. (optional) * @param paginationToken Pagination token to continue a previous listing operation. (optional) @@ -634,7 +634,7 @@ public ApiResponse listVectorsWithHttpInfo(String prefix, Long lim /** * List vector IDs (asynchronously) - * List the IDs of vectors in a single namespace of a serverless index. An optional prefix can be passed to limit the results to IDs with a common prefix. Returns up to 100 IDs at a time by default in sorted order (bitwise \"C\" collation). If the `limit` parameter is set, `list` returns up to that number of IDs instead. Whenever there are additional IDs to return, the response also includes a `pagination_token` that you can use to get the next batch of IDs. When the response does not include a `pagination_token`, there are no more IDs to return. For guidance and examples, see [List record IDs](https://docs.pinecone.io/guides/data/list-record-ids). **Note:** `list` is supported only for serverless indexes. + * List the IDs of vectors in a single namespace of a serverless index. An optional prefix can be passed to limit the results to IDs with a common prefix. Returns up to 100 IDs at a time by default in sorted order (bitwise \"C\" collation). If the `limit` parameter is set, `list` returns up to that number of IDs instead. Whenever there are additional IDs to return, the response also includes a `pagination_token` that you can use to get the next batch of IDs. When the response does not include a `pagination_token`, there are no more IDs to return. For guidance and examples, see [List record IDs](https://docs.pinecone.io/guides/manage-data/list-record-ids). **Note:** `list` is supported only for serverless indexes. * @param prefix The vector IDs to fetch. Does not accept values containing spaces. (optional) * @param limit Max number of IDs to return per page. (optional) * @param paginationToken Pagination token to continue a previous listing operation. (optional) @@ -731,7 +731,7 @@ private okhttp3.Call queryVectorsValidateBeforeCall(QueryRequest queryRequest, f /** * Search with a vector - * Search a namespace using a query vector. It retrieves the ids of the most similar items in a namespace, along with their similarity scores. For guidance and examples, see [Query data](https://docs.pinecone.io/guides/data/query-data). + * Search a namespace using a query vector. It retrieves the ids of the most similar items in a namespace, along with their similarity scores. For guidance and examples, see [Search](https://docs.pinecone.io/guides/search/semantic-search). * @param queryRequest (required) * @return QueryResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -751,7 +751,7 @@ public QueryResponse queryVectors(QueryRequest queryRequest) throws ApiException /** * Search with a vector - * Search a namespace using a query vector. It retrieves the ids of the most similar items in a namespace, along with their similarity scores. For guidance and examples, see [Query data](https://docs.pinecone.io/guides/data/query-data). + * Search a namespace using a query vector. It retrieves the ids of the most similar items in a namespace, along with their similarity scores. For guidance and examples, see [Search](https://docs.pinecone.io/guides/search/semantic-search). * @param queryRequest (required) * @return ApiResponse<QueryResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -772,7 +772,7 @@ public ApiResponse queryVectorsWithHttpInfo(QueryRequest queryReq /** * Search with a vector (asynchronously) - * Search a namespace using a query vector. It retrieves the ids of the most similar items in a namespace, along with their similarity scores. For guidance and examples, see [Query data](https://docs.pinecone.io/guides/data/query-data). + * Search a namespace using a query vector. It retrieves the ids of the most similar items in a namespace, along with their similarity scores. For guidance and examples, see [Search](https://docs.pinecone.io/guides/search/semantic-search). * @param queryRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -873,7 +873,7 @@ private okhttp3.Call searchRecordsNamespaceValidateBeforeCall(String namespace, /** * Search with text - * Search a namespace with a query text, query vector, or record ID and return the most similar records, along with their similarity scores. Optionally, rerank the initial results based on their relevance to the query. Searching with text is supported only for [indexes with integrated embedding](https://docs.pinecone.io/guides/indexes/create-an-index#integrated-embedding). Searching with a query vector or record ID is supported for all indexes. For guidance and examples, see [Query data](https://docs.pinecone.io/guides/data/query-data). + * Search a namespace with a query text, query vector, or record ID and return the most similar records, along with their similarity scores. Optionally, rerank the initial results based on their relevance to the query. Searching with text is supported only for [indexes with integrated embedding](https://docs.pinecone.io/guides/indexes/create-an-index#integrated-embedding). Searching with a query vector or record ID is supported for all indexes. For guidance and examples, see [Search](https://docs.pinecone.io/guides/search/semantic-search). * @param namespace The namespace to search. (required) * @param searchRecordsRequest (required) * @return SearchRecordsResponse @@ -894,7 +894,7 @@ public SearchRecordsResponse searchRecordsNamespace(String namespace, SearchReco /** * Search with text - * Search a namespace with a query text, query vector, or record ID and return the most similar records, along with their similarity scores. Optionally, rerank the initial results based on their relevance to the query. Searching with text is supported only for [indexes with integrated embedding](https://docs.pinecone.io/guides/indexes/create-an-index#integrated-embedding). Searching with a query vector or record ID is supported for all indexes. For guidance and examples, see [Query data](https://docs.pinecone.io/guides/data/query-data). + * Search a namespace with a query text, query vector, or record ID and return the most similar records, along with their similarity scores. Optionally, rerank the initial results based on their relevance to the query. Searching with text is supported only for [indexes with integrated embedding](https://docs.pinecone.io/guides/indexes/create-an-index#integrated-embedding). Searching with a query vector or record ID is supported for all indexes. For guidance and examples, see [Search](https://docs.pinecone.io/guides/search/semantic-search). * @param namespace The namespace to search. (required) * @param searchRecordsRequest (required) * @return ApiResponse<SearchRecordsResponse> @@ -916,7 +916,7 @@ public ApiResponse searchRecordsNamespaceWithHttpInfo(Str /** * Search with text (asynchronously) - * Search a namespace with a query text, query vector, or record ID and return the most similar records, along with their similarity scores. Optionally, rerank the initial results based on their relevance to the query. Searching with text is supported only for [indexes with integrated embedding](https://docs.pinecone.io/guides/indexes/create-an-index#integrated-embedding). Searching with a query vector or record ID is supported for all indexes. For guidance and examples, see [Query data](https://docs.pinecone.io/guides/data/query-data). + * Search a namespace with a query text, query vector, or record ID and return the most similar records, along with their similarity scores. Optionally, rerank the initial results based on their relevance to the query. Searching with text is supported only for [indexes with integrated embedding](https://docs.pinecone.io/guides/indexes/create-an-index#integrated-embedding). Searching with a query vector or record ID is supported for all indexes. For guidance and examples, see [Search](https://docs.pinecone.io/guides/search/semantic-search). * @param namespace The namespace to search. (required) * @param searchRecordsRequest (required) * @param _callback The callback to be executed when the API call finishes @@ -1011,7 +1011,7 @@ private okhttp3.Call updateVectorValidateBeforeCall(UpdateRequest updateRequest, /** * Update a vector - * Update a vector in a namespace. If a value is included, it will overwrite the previous value. If a `set_metadata` is included, the values of the fields specified in it will be added or overwrite the previous value. For guidance and examples, see [Update data](https://docs.pinecone.io/guides/data/update-data). + * Update a vector in a namespace. If a value is included, it will overwrite the previous value. If a `set_metadata` is included, the values of the fields specified in it will be added or overwrite the previous value. For guidance and examples, see [Update data](https://docs.pinecone.io/guides/manage-data/update-data). * @param updateRequest (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1031,7 +1031,7 @@ public Object updateVector(UpdateRequest updateRequest) throws ApiException { /** * Update a vector - * Update a vector in a namespace. If a value is included, it will overwrite the previous value. If a `set_metadata` is included, the values of the fields specified in it will be added or overwrite the previous value. For guidance and examples, see [Update data](https://docs.pinecone.io/guides/data/update-data). + * Update a vector in a namespace. If a value is included, it will overwrite the previous value. If a `set_metadata` is included, the values of the fields specified in it will be added or overwrite the previous value. For guidance and examples, see [Update data](https://docs.pinecone.io/guides/manage-data/update-data). * @param updateRequest (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1052,7 +1052,7 @@ public ApiResponse updateVectorWithHttpInfo(UpdateRequest updateRequest) /** * Update a vector (asynchronously) - * Update a vector in a namespace. If a value is included, it will overwrite the previous value. If a `set_metadata` is included, the values of the fields specified in it will be added or overwrite the previous value. For guidance and examples, see [Update data](https://docs.pinecone.io/guides/data/update-data). + * Update a vector in a namespace. If a value is included, it will overwrite the previous value. If a `set_metadata` is included, the values of the fields specified in it will be added or overwrite the previous value. For guidance and examples, see [Update data](https://docs.pinecone.io/guides/manage-data/update-data). * @param updateRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1153,7 +1153,7 @@ private okhttp3.Call upsertRecordsNamespaceValidateBeforeCall(String namespace, /** * Upsert text - * Upsert text into a namespace. Pinecone converts the text to vectors automatically using the hosted embedding model associated with the index. Upserting text is supported only for [indexes with integrated embedding](https://docs.pinecone.io/reference/api/2025-01/control-plane/create_for_model). For guidance and examples, see [Upsert data](https://docs.pinecone.io/guides/data/upsert-data#upsert-text). + * Upsert text into a namespace. Pinecone converts the text to vectors automatically using the hosted embedding model associated with the index. Upserting text is supported only for [indexes with integrated embedding](https://docs.pinecone.io/reference/api/2025-01/control-plane/create_for_model). For guidance and examples, see [Upsert data](https://docs.pinecone.io/guides/index-data/upsert-data#upsert-text). * @param namespace The namespace to upsert records into. (required) * @param upsertRecord (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1172,7 +1172,7 @@ public void upsertRecordsNamespace(String namespace, List upsertRe /** * Upsert text - * Upsert text into a namespace. Pinecone converts the text to vectors automatically using the hosted embedding model associated with the index. Upserting text is supported only for [indexes with integrated embedding](https://docs.pinecone.io/reference/api/2025-01/control-plane/create_for_model). For guidance and examples, see [Upsert data](https://docs.pinecone.io/guides/data/upsert-data#upsert-text). + * Upsert text into a namespace. Pinecone converts the text to vectors automatically using the hosted embedding model associated with the index. Upserting text is supported only for [indexes with integrated embedding](https://docs.pinecone.io/reference/api/2025-01/control-plane/create_for_model). For guidance and examples, see [Upsert data](https://docs.pinecone.io/guides/index-data/upsert-data#upsert-text). * @param namespace The namespace to upsert records into. (required) * @param upsertRecord (required) * @return ApiResponse<Void> @@ -1193,7 +1193,7 @@ public ApiResponse upsertRecordsNamespaceWithHttpInfo(String namespace, Li /** * Upsert text (asynchronously) - * Upsert text into a namespace. Pinecone converts the text to vectors automatically using the hosted embedding model associated with the index. Upserting text is supported only for [indexes with integrated embedding](https://docs.pinecone.io/reference/api/2025-01/control-plane/create_for_model). For guidance and examples, see [Upsert data](https://docs.pinecone.io/guides/data/upsert-data#upsert-text). + * Upsert text into a namespace. Pinecone converts the text to vectors automatically using the hosted embedding model associated with the index. Upserting text is supported only for [indexes with integrated embedding](https://docs.pinecone.io/reference/api/2025-01/control-plane/create_for_model). For guidance and examples, see [Upsert data](https://docs.pinecone.io/guides/index-data/upsert-data#upsert-text). * @param namespace The namespace to upsert records into. (required) * @param upsertRecord (required) * @param _callback The callback to be executed when the API call finishes @@ -1287,7 +1287,7 @@ private okhttp3.Call upsertVectorsValidateBeforeCall(UpsertRequest upsertRequest /** * Upsert vectors - * Upsert vectors into a namespace. If a new value is upserted for an existing vector ID, it will overwrite the previous value. For guidance and examples, see [Upsert data](https://docs.pinecone.io/guides/data/upsert-data#upsert-vectors). + * Upsert vectors into a namespace. If a new value is upserted for an existing vector ID, it will overwrite the previous value. For guidance and examples, see [Upsert data](https://docs.pinecone.io/guides/index-data/upsert-data#upsert-vectors). * @param upsertRequest (required) * @return UpsertResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1307,7 +1307,7 @@ public UpsertResponse upsertVectors(UpsertRequest upsertRequest) throws ApiExcep /** * Upsert vectors - * Upsert vectors into a namespace. If a new value is upserted for an existing vector ID, it will overwrite the previous value. For guidance and examples, see [Upsert data](https://docs.pinecone.io/guides/data/upsert-data#upsert-vectors). + * Upsert vectors into a namespace. If a new value is upserted for an existing vector ID, it will overwrite the previous value. For guidance and examples, see [Upsert data](https://docs.pinecone.io/guides/index-data/upsert-data#upsert-vectors). * @param upsertRequest (required) * @return ApiResponse<UpsertResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1328,7 +1328,7 @@ public ApiResponse upsertVectorsWithHttpInfo(UpsertRequest upser /** * Upsert vectors (asynchronously) - * Upsert vectors into a namespace. If a new value is upserted for an existing vector ID, it will overwrite the previous value. For guidance and examples, see [Upsert data](https://docs.pinecone.io/guides/data/upsert-data#upsert-vectors). + * Upsert vectors into a namespace. If a new value is upserted for an existing vector ID, it will overwrite the previous value. For guidance and examples, see [Upsert data](https://docs.pinecone.io/guides/index-data/upsert-data#upsert-vectors). * @param upsertRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call diff --git a/src/main/java/org/openapitools/db_data/client/auth/ApiKeyAuth.java b/src/main/java/org/openapitools/db_data/client/auth/ApiKeyAuth.java index 3111a56e..21b0a552 100644 --- a/src/main/java/org/openapitools/db_data/client/auth/ApiKeyAuth.java +++ b/src/main/java/org/openapitools/db_data/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/org/openapitools/db_data/client/auth/HttpBearerAuth.java b/src/main/java/org/openapitools/db_data/client/auth/HttpBearerAuth.java index 340b48e1..0b8f4a8f 100644 --- a/src/main/java/org/openapitools/db_data/client/auth/HttpBearerAuth.java +++ b/src/main/java/org/openapitools/db_data/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/src/main/java/org/openapitools/db_data/client/model/AbstractOpenApiSchema.java b/src/main/java/org/openapitools/db_data/client/model/AbstractOpenApiSchema.java index 77c3c8d8..7a64b0cc 100644 --- a/src/main/java/org/openapitools/db_data/client/model/AbstractOpenApiSchema.java +++ b/src/main/java/org/openapitools/db_data/client/model/AbstractOpenApiSchema.java @@ -23,7 +23,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/org/openapitools/db_data/client/model/DeleteRequest.java b/src/main/java/org/openapitools/db_data/client/model/DeleteRequest.java index 2da1d0b9..1bfde9b4 100644 --- a/src/main/java/org/openapitools/db_data/client/model/DeleteRequest.java +++ b/src/main/java/org/openapitools/db_data/client/model/DeleteRequest.java @@ -51,7 +51,7 @@ /** * The request for the `delete` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class DeleteRequest { public static final String SERIALIZED_NAME_IDS = "ids"; @SerializedName(SERIALIZED_NAME_IDS) @@ -150,7 +150,7 @@ public DeleteRequest filter(Object filter) { } /** - * If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive with specifying ids to delete in the ids param or using delete_all=True. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). Serverless indexes do not support delete by metadata. Instead, you can use the `list` operation to fetch the vector IDs based on their common ID prefix and then delete the records by ID. + * If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive with specifying ids to delete in the ids param or using delete_all=True. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata). Serverless indexes do not support delete by metadata. Instead, you can use the `list` operation to fetch the vector IDs based on their common ID prefix and then delete the records by ID. * @return filter **/ @javax.annotation.Nullable diff --git a/src/main/java/org/openapitools/db_data/client/model/DescribeIndexStatsRequest.java b/src/main/java/org/openapitools/db_data/client/model/DescribeIndexStatsRequest.java index c5202748..7db02ffd 100644 --- a/src/main/java/org/openapitools/db_data/client/model/DescribeIndexStatsRequest.java +++ b/src/main/java/org/openapitools/db_data/client/model/DescribeIndexStatsRequest.java @@ -49,7 +49,7 @@ /** * The request for the `describe_index_stats` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class DescribeIndexStatsRequest { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -65,7 +65,7 @@ public DescribeIndexStatsRequest filter(Object filter) { } /** - * If this parameter is present, the operation only returns statistics for vectors that satisfy the filter. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). Serverless indexes do not support filtering `describe_index_stats` by metadata. + * If this parameter is present, the operation only returns statistics for vectors that satisfy the filter. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata). Serverless indexes do not support filtering `describe_index_stats` by metadata. * @return filter **/ @javax.annotation.Nullable diff --git a/src/main/java/org/openapitools/db_data/client/model/FetchResponse.java b/src/main/java/org/openapitools/db_data/client/model/FetchResponse.java index bd46fa93..2a3e1a05 100644 --- a/src/main/java/org/openapitools/db_data/client/model/FetchResponse.java +++ b/src/main/java/org/openapitools/db_data/client/model/FetchResponse.java @@ -53,7 +53,7 @@ /** * The response for the `fetch` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class FetchResponse { public static final String SERIALIZED_NAME_VECTORS = "vectors"; @SerializedName(SERIALIZED_NAME_VECTORS) diff --git a/src/main/java/org/openapitools/db_data/client/model/Hit.java b/src/main/java/org/openapitools/db_data/client/model/Hit.java index 2def28ff..7b8d01b3 100644 --- a/src/main/java/org/openapitools/db_data/client/model/Hit.java +++ b/src/main/java/org/openapitools/db_data/client/model/Hit.java @@ -49,7 +49,7 @@ /** * A record whose vector values are similar to the provided search query. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class Hit { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/org/openapitools/db_data/client/model/ImportErrorMode.java b/src/main/java/org/openapitools/db_data/client/model/ImportErrorMode.java index 5fd90971..6fb8f885 100644 --- a/src/main/java/org/openapitools/db_data/client/model/ImportErrorMode.java +++ b/src/main/java/org/openapitools/db_data/client/model/ImportErrorMode.java @@ -49,7 +49,7 @@ /** * Indicates how to respond to errors during the import process. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class ImportErrorMode { /** * Indicates how to respond to errors during the import process. diff --git a/src/main/java/org/openapitools/db_data/client/model/ImportModel.java b/src/main/java/org/openapitools/db_data/client/model/ImportModel.java index fd12d648..a3eb13c5 100644 --- a/src/main/java/org/openapitools/db_data/client/model/ImportModel.java +++ b/src/main/java/org/openapitools/db_data/client/model/ImportModel.java @@ -50,7 +50,7 @@ /** * The model for an import operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class ImportModel { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/org/openapitools/db_data/client/model/IndexDescription.java b/src/main/java/org/openapitools/db_data/client/model/IndexDescription.java index 9efe92f0..d824cf86 100644 --- a/src/main/java/org/openapitools/db_data/client/model/IndexDescription.java +++ b/src/main/java/org/openapitools/db_data/client/model/IndexDescription.java @@ -52,7 +52,7 @@ /** * The response for the `describe_index_stats` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class IndexDescription { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) diff --git a/src/main/java/org/openapitools/db_data/client/model/ListImportsResponse.java b/src/main/java/org/openapitools/db_data/client/model/ListImportsResponse.java index 116e3d4c..11839919 100644 --- a/src/main/java/org/openapitools/db_data/client/model/ListImportsResponse.java +++ b/src/main/java/org/openapitools/db_data/client/model/ListImportsResponse.java @@ -53,7 +53,7 @@ /** * The response for the `list_imports` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class ListImportsResponse { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) diff --git a/src/main/java/org/openapitools/db_data/client/model/ListItem.java b/src/main/java/org/openapitools/db_data/client/model/ListItem.java index 2d25fa3e..43a85af4 100644 --- a/src/main/java/org/openapitools/db_data/client/model/ListItem.java +++ b/src/main/java/org/openapitools/db_data/client/model/ListItem.java @@ -49,7 +49,7 @@ /** * ListItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class ListItem { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/org/openapitools/db_data/client/model/ListNamespacesResponse.java b/src/main/java/org/openapitools/db_data/client/model/ListNamespacesResponse.java index 56ee988f..3585e335 100644 --- a/src/main/java/org/openapitools/db_data/client/model/ListNamespacesResponse.java +++ b/src/main/java/org/openapitools/db_data/client/model/ListNamespacesResponse.java @@ -53,7 +53,7 @@ /** * ListNamespacesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class ListNamespacesResponse { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) diff --git a/src/main/java/org/openapitools/db_data/client/model/ListResponse.java b/src/main/java/org/openapitools/db_data/client/model/ListResponse.java index 3a01b032..5d3b65aa 100644 --- a/src/main/java/org/openapitools/db_data/client/model/ListResponse.java +++ b/src/main/java/org/openapitools/db_data/client/model/ListResponse.java @@ -54,7 +54,7 @@ /** * The response for the `list` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class ListResponse { public static final String SERIALIZED_NAME_VECTORS = "vectors"; @SerializedName(SERIALIZED_NAME_VECTORS) diff --git a/src/main/java/org/openapitools/db_data/client/model/NamespaceDescription.java b/src/main/java/org/openapitools/db_data/client/model/NamespaceDescription.java index 287f42b0..f3c9b464 100644 --- a/src/main/java/org/openapitools/db_data/client/model/NamespaceDescription.java +++ b/src/main/java/org/openapitools/db_data/client/model/NamespaceDescription.java @@ -49,7 +49,7 @@ /** * A description of a namespace, including the name and record count. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class NamespaceDescription { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/org/openapitools/db_data/client/model/NamespaceSummary.java b/src/main/java/org/openapitools/db_data/client/model/NamespaceSummary.java index 11de8502..87b1852a 100644 --- a/src/main/java/org/openapitools/db_data/client/model/NamespaceSummary.java +++ b/src/main/java/org/openapitools/db_data/client/model/NamespaceSummary.java @@ -49,7 +49,7 @@ /** * A summary of the contents of a namespace. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class NamespaceSummary { public static final String SERIALIZED_NAME_VECTOR_COUNT = "vectorCount"; @SerializedName(SERIALIZED_NAME_VECTOR_COUNT) diff --git a/src/main/java/org/openapitools/db_data/client/model/Pagination.java b/src/main/java/org/openapitools/db_data/client/model/Pagination.java index 61ec2b7f..2ec3efb4 100644 --- a/src/main/java/org/openapitools/db_data/client/model/Pagination.java +++ b/src/main/java/org/openapitools/db_data/client/model/Pagination.java @@ -49,7 +49,7 @@ /** * Pagination */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class Pagination { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) diff --git a/src/main/java/org/openapitools/db_data/client/model/ProtobufAny.java b/src/main/java/org/openapitools/db_data/client/model/ProtobufAny.java index c23af214..4d3467fa 100644 --- a/src/main/java/org/openapitools/db_data/client/model/ProtobufAny.java +++ b/src/main/java/org/openapitools/db_data/client/model/ProtobufAny.java @@ -49,7 +49,7 @@ /** * ProtobufAny */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class ProtobufAny { public static final String SERIALIZED_NAME_TYPE_URL = "typeUrl"; @SerializedName(SERIALIZED_NAME_TYPE_URL) diff --git a/src/main/java/org/openapitools/db_data/client/model/QueryRequest.java b/src/main/java/org/openapitools/db_data/client/model/QueryRequest.java index f80538ee..441fec35 100644 --- a/src/main/java/org/openapitools/db_data/client/model/QueryRequest.java +++ b/src/main/java/org/openapitools/db_data/client/model/QueryRequest.java @@ -53,7 +53,7 @@ /** * The request for the `query` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class QueryRequest { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -146,7 +146,7 @@ public QueryRequest filter(Object filter) { } /** - * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). + * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata). * @return filter **/ @javax.annotation.Nullable diff --git a/src/main/java/org/openapitools/db_data/client/model/QueryResponse.java b/src/main/java/org/openapitools/db_data/client/model/QueryResponse.java index 3c29434d..22436c96 100644 --- a/src/main/java/org/openapitools/db_data/client/model/QueryResponse.java +++ b/src/main/java/org/openapitools/db_data/client/model/QueryResponse.java @@ -54,7 +54,7 @@ /** * The response for the `query` operation. These are the matches found for a particular query vector. The matches are ordered from most similar to least similar. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class QueryResponse { public static final String SERIALIZED_NAME_RESULTS = "results"; @Deprecated diff --git a/src/main/java/org/openapitools/db_data/client/model/QueryVector.java b/src/main/java/org/openapitools/db_data/client/model/QueryVector.java index 4924805c..6773fa7e 100644 --- a/src/main/java/org/openapitools/db_data/client/model/QueryVector.java +++ b/src/main/java/org/openapitools/db_data/client/model/QueryVector.java @@ -54,7 +54,7 @@ * @deprecated */ @Deprecated -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class QueryVector { public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) diff --git a/src/main/java/org/openapitools/db_data/client/model/RpcStatus.java b/src/main/java/org/openapitools/db_data/client/model/RpcStatus.java index 93c1e7c6..20bb1dfe 100644 --- a/src/main/java/org/openapitools/db_data/client/model/RpcStatus.java +++ b/src/main/java/org/openapitools/db_data/client/model/RpcStatus.java @@ -52,7 +52,7 @@ /** * RpcStatus */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class RpcStatus { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) diff --git a/src/main/java/org/openapitools/db_data/client/model/ScoredVector.java b/src/main/java/org/openapitools/db_data/client/model/ScoredVector.java index cc168af2..5410bb08 100644 --- a/src/main/java/org/openapitools/db_data/client/model/ScoredVector.java +++ b/src/main/java/org/openapitools/db_data/client/model/ScoredVector.java @@ -52,7 +52,7 @@ /** * ScoredVector */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class ScoredVector { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequest.java b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequest.java index bc6d865d..8c8e6562 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequest.java +++ b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequest.java @@ -53,7 +53,7 @@ /** * A search request for records in a specific namespace. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class SearchRecordsRequest { public static final String SERIALIZED_NAME_QUERY = "query"; @SerializedName(SERIALIZED_NAME_QUERY) diff --git a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequestQuery.java b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequestQuery.java index 5b3ca945..2a65d9d6 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequestQuery.java +++ b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequestQuery.java @@ -50,7 +50,7 @@ /** * . */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class SearchRecordsRequestQuery { public static final String SERIALIZED_NAME_TOP_K = "top_k"; @SerializedName(SERIALIZED_NAME_TOP_K) @@ -103,7 +103,7 @@ public SearchRecordsRequestQuery filter(Object filter) { } /** - * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). + * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata). * @return filter **/ @javax.annotation.Nullable diff --git a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequestRerank.java b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequestRerank.java index a27738d6..08388bd5 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequestRerank.java +++ b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequestRerank.java @@ -53,7 +53,7 @@ /** * Parameters for reranking the initial search results. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class SearchRecordsRequestRerank { public static final String SERIALIZED_NAME_MODEL = "model"; @SerializedName(SERIALIZED_NAME_MODEL) @@ -85,7 +85,7 @@ public SearchRecordsRequestRerank model(String model) { } /** - * The name of the [reranking model](https://docs.pinecone.io/guides/inference/understanding-inference#reranking-models) to use. + * The name of the [reranking model](https://docs.pinecone.io/guides/search/rerank-results#reranking-models) to use. * @return model **/ @javax.annotation.Nonnull @@ -114,7 +114,7 @@ public SearchRecordsRequestRerank addRankFieldsItem(String rankFieldsItem) { } /** - * The field(s) to consider for reranking. If not provided, the default is `[\"text\"]`. The number of fields supported is [model-specific](https://docs.pinecone.io/guides/inference/understanding-inference#reranking-models). + * The field(s) to consider for reranking. If not provided, the default is `[\"text\"]`. The number of fields supported is [model-specific](https://docs.pinecone.io/guides/search/rerank-results#reranking-models). * @return rankFields **/ @javax.annotation.Nonnull @@ -164,7 +164,7 @@ public SearchRecordsRequestRerank putParametersItem(String key, Object parameter } /** - * Additional model-specific parameters. Refer to the [model guide](https://docs.pinecone.io/guides/inference/understanding-inference#reranking-models) for available model parameters. + * Additional model-specific parameters. Refer to the [model guide](https://docs.pinecone.io/guides/search/rerank-results#reranking-models) for available model parameters. * @return parameters **/ @javax.annotation.Nullable diff --git a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsResponse.java b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsResponse.java index 9256da39..1afe35ef 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsResponse.java +++ b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsResponse.java @@ -51,7 +51,7 @@ /** * The records search response. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class SearchRecordsResponse { public static final String SERIALIZED_NAME_RESULT = "result"; @SerializedName(SERIALIZED_NAME_RESULT) diff --git a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsResponseResult.java b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsResponseResult.java index e2299a5e..7d1642f6 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsResponseResult.java +++ b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsResponseResult.java @@ -52,7 +52,7 @@ /** * SearchRecordsResponseResult */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class SearchRecordsResponseResult { public static final String SERIALIZED_NAME_HITS = "hits"; @SerializedName(SERIALIZED_NAME_HITS) diff --git a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsVector.java b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsVector.java index 13abafdd..43f169d2 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsVector.java +++ b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsVector.java @@ -51,7 +51,7 @@ /** * SearchRecordsVector */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class SearchRecordsVector { public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) diff --git a/src/main/java/org/openapitools/db_data/client/model/SearchUsage.java b/src/main/java/org/openapitools/db_data/client/model/SearchUsage.java index 46340abe..49250b12 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SearchUsage.java +++ b/src/main/java/org/openapitools/db_data/client/model/SearchUsage.java @@ -49,7 +49,7 @@ /** * SearchUsage */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class SearchUsage { public static final String SERIALIZED_NAME_READ_UNITS = "read_units"; @SerializedName(SERIALIZED_NAME_READ_UNITS) diff --git a/src/main/java/org/openapitools/db_data/client/model/SearchVector.java b/src/main/java/org/openapitools/db_data/client/model/SearchVector.java index 6def6e55..fb9f8b68 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SearchVector.java +++ b/src/main/java/org/openapitools/db_data/client/model/SearchVector.java @@ -51,7 +51,7 @@ /** * SearchVector */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class SearchVector { public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) diff --git a/src/main/java/org/openapitools/db_data/client/model/SingleQueryResults.java b/src/main/java/org/openapitools/db_data/client/model/SingleQueryResults.java index 7fd90358..bf6684af 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SingleQueryResults.java +++ b/src/main/java/org/openapitools/db_data/client/model/SingleQueryResults.java @@ -52,7 +52,7 @@ /** * SingleQueryResults */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class SingleQueryResults { public static final String SERIALIZED_NAME_MATCHES = "matches"; @SerializedName(SERIALIZED_NAME_MATCHES) diff --git a/src/main/java/org/openapitools/db_data/client/model/SparseValues.java b/src/main/java/org/openapitools/db_data/client/model/SparseValues.java index 892ee1d2..67a87bb2 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SparseValues.java +++ b/src/main/java/org/openapitools/db_data/client/model/SparseValues.java @@ -51,7 +51,7 @@ /** * Vector sparse data. Represented as a list of indices and a list of corresponded values, which must be with the same length. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class SparseValues { public static final String SERIALIZED_NAME_INDICES = "indices"; @SerializedName(SERIALIZED_NAME_INDICES) diff --git a/src/main/java/org/openapitools/db_data/client/model/StartImportRequest.java b/src/main/java/org/openapitools/db_data/client/model/StartImportRequest.java index 1beba434..3170abb1 100644 --- a/src/main/java/org/openapitools/db_data/client/model/StartImportRequest.java +++ b/src/main/java/org/openapitools/db_data/client/model/StartImportRequest.java @@ -50,7 +50,7 @@ /** * The request for the `start_import` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class StartImportRequest { public static final String SERIALIZED_NAME_INTEGRATION_ID = "integrationId"; @SerializedName(SERIALIZED_NAME_INTEGRATION_ID) @@ -95,7 +95,7 @@ public StartImportRequest uri(String uri) { } /** - * The [URI prefix](https://docs.pinecone.io/guides/data/understanding-imports#directory-structure) under which the data to import is available. All data within this prefix will be listed then imported into the target index. Currently only `s3://` URIs are supported. + * The [URI prefix](https://docs.pinecone.io/guides/index-data/import-data#prepare-your-data) under which the data to import is available. All data within this prefix will be listed then imported into the target index. Currently only `s3://` URIs are supported. * @return uri **/ @javax.annotation.Nonnull diff --git a/src/main/java/org/openapitools/db_data/client/model/StartImportResponse.java b/src/main/java/org/openapitools/db_data/client/model/StartImportResponse.java index 296a5f6d..2519ee44 100644 --- a/src/main/java/org/openapitools/db_data/client/model/StartImportResponse.java +++ b/src/main/java/org/openapitools/db_data/client/model/StartImportResponse.java @@ -49,7 +49,7 @@ /** * The response for the `start_import` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class StartImportResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/org/openapitools/db_data/client/model/UpdateRequest.java b/src/main/java/org/openapitools/db_data/client/model/UpdateRequest.java index ca1258be..2769225b 100644 --- a/src/main/java/org/openapitools/db_data/client/model/UpdateRequest.java +++ b/src/main/java/org/openapitools/db_data/client/model/UpdateRequest.java @@ -52,7 +52,7 @@ /** * The request for the `update` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class UpdateRequest { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/org/openapitools/db_data/client/model/UpsertRecord.java b/src/main/java/org/openapitools/db_data/client/model/UpsertRecord.java index 2279c5d5..05833302 100644 --- a/src/main/java/org/openapitools/db_data/client/model/UpsertRecord.java +++ b/src/main/java/org/openapitools/db_data/client/model/UpsertRecord.java @@ -49,7 +49,7 @@ /** * The request for the `upsert` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class UpsertRecord { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/org/openapitools/db_data/client/model/UpsertRequest.java b/src/main/java/org/openapitools/db_data/client/model/UpsertRequest.java index 5ff70541..64e8da4f 100644 --- a/src/main/java/org/openapitools/db_data/client/model/UpsertRequest.java +++ b/src/main/java/org/openapitools/db_data/client/model/UpsertRequest.java @@ -52,7 +52,7 @@ /** * The request for the `upsert` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class UpsertRequest { public static final String SERIALIZED_NAME_VECTORS = "vectors"; @SerializedName(SERIALIZED_NAME_VECTORS) diff --git a/src/main/java/org/openapitools/db_data/client/model/UpsertResponse.java b/src/main/java/org/openapitools/db_data/client/model/UpsertResponse.java index 1c8350be..318cc107 100644 --- a/src/main/java/org/openapitools/db_data/client/model/UpsertResponse.java +++ b/src/main/java/org/openapitools/db_data/client/model/UpsertResponse.java @@ -49,7 +49,7 @@ /** * The response for the `upsert` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class UpsertResponse { public static final String SERIALIZED_NAME_UPSERTED_COUNT = "upsertedCount"; @SerializedName(SERIALIZED_NAME_UPSERTED_COUNT) diff --git a/src/main/java/org/openapitools/db_data/client/model/Usage.java b/src/main/java/org/openapitools/db_data/client/model/Usage.java index de36d87e..3d09eed8 100644 --- a/src/main/java/org/openapitools/db_data/client/model/Usage.java +++ b/src/main/java/org/openapitools/db_data/client/model/Usage.java @@ -49,7 +49,7 @@ /** * Usage */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class Usage { public static final String SERIALIZED_NAME_READ_UNITS = "readUnits"; @SerializedName(SERIALIZED_NAME_READ_UNITS) diff --git a/src/main/java/org/openapitools/db_data/client/model/Vector.java b/src/main/java/org/openapitools/db_data/client/model/Vector.java index caaf5dc6..23ea788e 100644 --- a/src/main/java/org/openapitools/db_data/client/model/Vector.java +++ b/src/main/java/org/openapitools/db_data/client/model/Vector.java @@ -52,7 +52,7 @@ /** * Vector */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:25.790649Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:22.496740Z[Etc/UTC]") public class Vector { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/org/openapitools/inference/client/ApiException.java b/src/main/java/org/openapitools/inference/client/ApiException.java index f8ea43f5..97224a48 100644 --- a/src/main/java/org/openapitools/inference/client/ApiException.java +++ b/src/main/java/org/openapitools/inference/client/ApiException.java @@ -21,7 +21,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/src/main/java/org/openapitools/inference/client/Configuration.java b/src/main/java/org/openapitools/inference/client/Configuration.java index dc60f4e3..0803810f 100644 --- a/src/main/java/org/openapitools/inference/client/Configuration.java +++ b/src/main/java/org/openapitools/inference/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.inference.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class Configuration { public static final String VERSION = "2025-04"; diff --git a/src/main/java/org/openapitools/inference/client/Pair.java b/src/main/java/org/openapitools/inference/client/Pair.java index 297dcb9e..60e5aad0 100644 --- a/src/main/java/org/openapitools/inference/client/Pair.java +++ b/src/main/java/org/openapitools/inference/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.inference.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/org/openapitools/inference/client/StringUtil.java b/src/main/java/org/openapitools/inference/client/StringUtil.java index c73cd920..5abe3ae4 100644 --- a/src/main/java/org/openapitools/inference/client/StringUtil.java +++ b/src/main/java/org/openapitools/inference/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/org/openapitools/inference/client/api/InferenceApi.java b/src/main/java/org/openapitools/inference/client/api/InferenceApi.java index 777539d0..b179f3b8 100644 --- a/src/main/java/org/openapitools/inference/client/api/InferenceApi.java +++ b/src/main/java/org/openapitools/inference/client/api/InferenceApi.java @@ -146,7 +146,7 @@ private okhttp3.Call embedValidateBeforeCall(EmbedRequest embedRequest, final Ap /** * Generate vectors - * Generate vector embeddings for input data. This endpoint uses [Pinecone Inference](https://docs.pinecone.io/guides/inference/understanding-inference). For guidance and examples, see [Embed data](https://docs.pinecone.io/guides/inference/generate-embeddings). + * Generate vector embeddings for input data. This endpoint uses Pinecone's [hosted embedding models](https://docs.pinecone.io/guides/index-data/create-an-index#embedding-models). * @param embedRequest Generate embeddings for inputs. (optional) * @return EmbeddingsList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -166,7 +166,7 @@ public EmbeddingsList embed(EmbedRequest embedRequest) throws ApiException { /** * Generate vectors - * Generate vector embeddings for input data. This endpoint uses [Pinecone Inference](https://docs.pinecone.io/guides/inference/understanding-inference). For guidance and examples, see [Embed data](https://docs.pinecone.io/guides/inference/generate-embeddings). + * Generate vector embeddings for input data. This endpoint uses Pinecone's [hosted embedding models](https://docs.pinecone.io/guides/index-data/create-an-index#embedding-models). * @param embedRequest Generate embeddings for inputs. (optional) * @return ApiResponse<EmbeddingsList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -187,7 +187,7 @@ public ApiResponse embedWithHttpInfo(EmbedRequest embedRequest) /** * Generate vectors (asynchronously) - * Generate vector embeddings for input data. This endpoint uses [Pinecone Inference](https://docs.pinecone.io/guides/inference/understanding-inference). For guidance and examples, see [Embed data](https://docs.pinecone.io/guides/inference/generate-embeddings). + * Generate vector embeddings for input data. This endpoint uses Pinecone's [hosted embedding models](https://docs.pinecone.io/guides/index-data/create-an-index#embedding-models). * @param embedRequest Generate embeddings for inputs. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -280,8 +280,8 @@ private okhttp3.Call getModelValidateBeforeCall(String modelName, final ApiCallb } /** - * Get available model details. - * Get model details. + * Describe a model + * Get a description of a model hosted by Pinecone. You can use hosted models as an integrated part of Pinecone operations or for standalone embedding and reranking. For more details, see [Vector embedding](https://docs.pinecone.io/guides/index-data/indexing-overview#vector-embedding) and [Rerank results](https://docs.pinecone.io/guides/search/rerank-results). * @param modelName The name of the model to look up. (required) * @return ModelInfo * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -300,8 +300,8 @@ public ModelInfo getModel(String modelName) throws ApiException { } /** - * Get available model details. - * Get model details. + * Describe a model + * Get a description of a model hosted by Pinecone. You can use hosted models as an integrated part of Pinecone operations or for standalone embedding and reranking. For more details, see [Vector embedding](https://docs.pinecone.io/guides/index-data/indexing-overview#vector-embedding) and [Rerank results](https://docs.pinecone.io/guides/search/rerank-results). * @param modelName The name of the model to look up. (required) * @return ApiResponse<ModelInfo> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -321,8 +321,8 @@ public ApiResponse getModelWithHttpInfo(String modelName) throws ApiE } /** - * Get available model details. (asynchronously) - * Get model details. + * Describe a model (asynchronously) + * Get a description of a model hosted by Pinecone. You can use hosted models as an integrated part of Pinecone operations or for standalone embedding and reranking. For more details, see [Vector embedding](https://docs.pinecone.io/guides/index-data/indexing-overview#vector-embedding) and [Rerank results](https://docs.pinecone.io/guides/search/rerank-results). * @param modelName The name of the model to look up. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -418,8 +418,8 @@ private okhttp3.Call listModelsValidateBeforeCall(String type, String vectorType } /** - * Get available models. - * Get available models. + * List available models + * List the embedding and reranking models hosted by Pinecone. You can use hosted models as an integrated part of Pinecone operations or for standalone embedding and reranking. For more details, see [Vector embedding](https://docs.pinecone.io/guides/index-data/indexing-overview#vector-embedding) and [Rerank results](https://docs.pinecone.io/guides/search/rerank-results). * @param type Filter models by type ('embed' or 'rerank'). (optional) * @param vectorType Filter embedding models by vector type ('dense' or 'sparse'). Only relevant when `type=embed`. (optional) * @return ModelInfoList @@ -439,8 +439,8 @@ public ModelInfoList listModels(String type, String vectorType) throws ApiExcept } /** - * Get available models. - * Get available models. + * List available models + * List the embedding and reranking models hosted by Pinecone. You can use hosted models as an integrated part of Pinecone operations or for standalone embedding and reranking. For more details, see [Vector embedding](https://docs.pinecone.io/guides/index-data/indexing-overview#vector-embedding) and [Rerank results](https://docs.pinecone.io/guides/search/rerank-results). * @param type Filter models by type ('embed' or 'rerank'). (optional) * @param vectorType Filter embedding models by vector type ('dense' or 'sparse'). Only relevant when `type=embed`. (optional) * @return ApiResponse<ModelInfoList> @@ -461,8 +461,8 @@ public ApiResponse listModelsWithHttpInfo(String type, String vec } /** - * Get available models. (asynchronously) - * Get available models. + * List available models (asynchronously) + * List the embedding and reranking models hosted by Pinecone. You can use hosted models as an integrated part of Pinecone operations or for standalone embedding and reranking. For more details, see [Vector embedding](https://docs.pinecone.io/guides/index-data/indexing-overview#vector-embedding) and [Rerank results](https://docs.pinecone.io/guides/search/rerank-results). * @param type Filter models by type ('embed' or 'rerank'). (optional) * @param vectorType Filter embedding models by vector type ('dense' or 'sparse'). Only relevant when `type=embed`. (optional) * @param _callback The callback to be executed when the API call finishes @@ -552,7 +552,7 @@ private okhttp3.Call rerankValidateBeforeCall(RerankRequest rerankRequest, final /** * Rerank documents - * Rerank documents according to their relevance to a query. For guidance and examples, see [Rerank documents](https://docs.pinecone.io/guides/inference/rerank). + * Rerank results according to their relevance to a query. For guidance and examples, see [Rerank results](https://docs.pinecone.io/guides/search/rerank-results). * @param rerankRequest Rerank documents for the given query (optional) * @return RerankResult * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -572,7 +572,7 @@ public RerankResult rerank(RerankRequest rerankRequest) throws ApiException { /** * Rerank documents - * Rerank documents according to their relevance to a query. For guidance and examples, see [Rerank documents](https://docs.pinecone.io/guides/inference/rerank). + * Rerank results according to their relevance to a query. For guidance and examples, see [Rerank results](https://docs.pinecone.io/guides/search/rerank-results). * @param rerankRequest Rerank documents for the given query (optional) * @return ApiResponse<RerankResult> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -593,7 +593,7 @@ public ApiResponse rerankWithHttpInfo(RerankRequest rerankRequest) /** * Rerank documents (asynchronously) - * Rerank documents according to their relevance to a query. For guidance and examples, see [Rerank documents](https://docs.pinecone.io/guides/inference/rerank). + * Rerank results according to their relevance to a query. For guidance and examples, see [Rerank results](https://docs.pinecone.io/guides/search/rerank-results). * @param rerankRequest Rerank documents for the given query (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call diff --git a/src/main/java/org/openapitools/inference/client/auth/ApiKeyAuth.java b/src/main/java/org/openapitools/inference/client/auth/ApiKeyAuth.java index 3bda958b..8478956a 100644 --- a/src/main/java/org/openapitools/inference/client/auth/ApiKeyAuth.java +++ b/src/main/java/org/openapitools/inference/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/org/openapitools/inference/client/auth/HttpBearerAuth.java b/src/main/java/org/openapitools/inference/client/auth/HttpBearerAuth.java index 6d2cf1c2..9ce5e372 100644 --- a/src/main/java/org/openapitools/inference/client/auth/HttpBearerAuth.java +++ b/src/main/java/org/openapitools/inference/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/src/main/java/org/openapitools/inference/client/model/AbstractOpenApiSchema.java b/src/main/java/org/openapitools/inference/client/model/AbstractOpenApiSchema.java index fa14a00d..aeed339c 100644 --- a/src/main/java/org/openapitools/inference/client/model/AbstractOpenApiSchema.java +++ b/src/main/java/org/openapitools/inference/client/model/AbstractOpenApiSchema.java @@ -23,7 +23,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/org/openapitools/inference/client/model/DenseEmbedding.java b/src/main/java/org/openapitools/inference/client/model/DenseEmbedding.java index 3deefc01..e020495d 100644 --- a/src/main/java/org/openapitools/inference/client/model/DenseEmbedding.java +++ b/src/main/java/org/openapitools/inference/client/model/DenseEmbedding.java @@ -23,7 +23,6 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.inference.client.model.VectorType; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -52,7 +51,7 @@ /** * A dense embedding of a single input */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class DenseEmbedding { public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) @@ -60,7 +59,7 @@ public class DenseEmbedding { public static final String SERIALIZED_NAME_VECTOR_TYPE = "vector_type"; @SerializedName(SERIALIZED_NAME_VECTOR_TYPE) - private VectorType vectorType; + private String vectorType; public DenseEmbedding() { } @@ -94,23 +93,23 @@ public void setValues(List values) { } - public DenseEmbedding vectorType(VectorType vectorType) { + public DenseEmbedding vectorType(String vectorType) { this.vectorType = vectorType; return this; } /** - * Get vectorType + * Indicates whether this is a 'dense' or 'sparse' embedding. * @return vectorType **/ @javax.annotation.Nonnull - public VectorType getVectorType() { + public String getVectorType() { return vectorType; } - public void setVectorType(VectorType vectorType) { + public void setVectorType(String vectorType) { this.vectorType = vectorType; } @@ -243,6 +242,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } else if (!jsonObj.get("values").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } + if (!jsonObj.get("vector_type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `vector_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("vector_type").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/org/openapitools/inference/client/model/EmbedRequest.java b/src/main/java/org/openapitools/inference/client/model/EmbedRequest.java index 8851abe0..2593c714 100644 --- a/src/main/java/org/openapitools/inference/client/model/EmbedRequest.java +++ b/src/main/java/org/openapitools/inference/client/model/EmbedRequest.java @@ -54,7 +54,7 @@ /** * EmbedRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class EmbedRequest { public static final String SERIALIZED_NAME_MODEL = "model"; @SerializedName(SERIALIZED_NAME_MODEL) @@ -78,7 +78,7 @@ public EmbedRequest model(String model) { } /** - * The [model](https://docs.pinecone.io/guides/inference/understanding-inference#embedding-models) to use for embedding generation. + * The [model](https://docs.pinecone.io/guides/index-data/create-an-index#embedding-models) to use for embedding generation. * @return model **/ @javax.annotation.Nonnull @@ -107,7 +107,7 @@ public EmbedRequest putParametersItem(String key, Object parametersItem) { } /** - * Additional model-specific parameters. Refer to the [model guide](https://docs.pinecone.io/guides/inference/understanding-inference#embedding-models) for available model parameters. + * Additional model-specific parameters. Refer to the [model guide](https://docs.pinecone.io/guides/index-data/create-an-index#embedding-models) for available model parameters. * @return parameters **/ @javax.annotation.Nullable diff --git a/src/main/java/org/openapitools/inference/client/model/EmbedRequestInputsInner.java b/src/main/java/org/openapitools/inference/client/model/EmbedRequestInputsInner.java index 1fd4bf75..4fbd7e7f 100644 --- a/src/main/java/org/openapitools/inference/client/model/EmbedRequestInputsInner.java +++ b/src/main/java/org/openapitools/inference/client/model/EmbedRequestInputsInner.java @@ -49,7 +49,7 @@ /** * EmbedRequestInputsInner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class EmbedRequestInputsInner { public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) diff --git a/src/main/java/org/openapitools/inference/client/model/Embedding.java b/src/main/java/org/openapitools/inference/client/model/Embedding.java index dafaaa65..84529d3d 100644 --- a/src/main/java/org/openapitools/inference/client/model/Embedding.java +++ b/src/main/java/org/openapitools/inference/client/model/Embedding.java @@ -25,7 +25,6 @@ import java.util.List; import org.openapitools.inference.client.model.DenseEmbedding; import org.openapitools.inference.client.model.SparseEmbedding; -import org.openapitools.inference.client.model.VectorType; @@ -62,7 +61,7 @@ import org.openapitools.inference.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class Embedding extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Embedding.class.getName()); diff --git a/src/main/java/org/openapitools/inference/client/model/EmbeddingsList.java b/src/main/java/org/openapitools/inference/client/model/EmbeddingsList.java index bdf97f2d..e2575f00 100644 --- a/src/main/java/org/openapitools/inference/client/model/EmbeddingsList.java +++ b/src/main/java/org/openapitools/inference/client/model/EmbeddingsList.java @@ -53,7 +53,7 @@ /** * Embeddings generated for the input. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class EmbeddingsList { public static final String SERIALIZED_NAME_MODEL = "model"; @SerializedName(SERIALIZED_NAME_MODEL) diff --git a/src/main/java/org/openapitools/inference/client/model/EmbeddingsListUsage.java b/src/main/java/org/openapitools/inference/client/model/EmbeddingsListUsage.java index 01a68813..f8e16f57 100644 --- a/src/main/java/org/openapitools/inference/client/model/EmbeddingsListUsage.java +++ b/src/main/java/org/openapitools/inference/client/model/EmbeddingsListUsage.java @@ -49,7 +49,7 @@ /** * Usage statistics for the model inference. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class EmbeddingsListUsage { public static final String SERIALIZED_NAME_TOTAL_TOKENS = "total_tokens"; @SerializedName(SERIALIZED_NAME_TOTAL_TOKENS) diff --git a/src/main/java/org/openapitools/inference/client/model/ErrorResponse.java b/src/main/java/org/openapitools/inference/client/model/ErrorResponse.java index 9f64e6e4..cc0b33af 100644 --- a/src/main/java/org/openapitools/inference/client/model/ErrorResponse.java +++ b/src/main/java/org/openapitools/inference/client/model/ErrorResponse.java @@ -50,7 +50,7 @@ /** * The response shape used for all error responses. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class ErrorResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/src/main/java/org/openapitools/inference/client/model/ErrorResponseError.java b/src/main/java/org/openapitools/inference/client/model/ErrorResponseError.java index 16291611..35a1be2b 100644 --- a/src/main/java/org/openapitools/inference/client/model/ErrorResponseError.java +++ b/src/main/java/org/openapitools/inference/client/model/ErrorResponseError.java @@ -49,7 +49,7 @@ /** * Detailed information about the error that occurred. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class ErrorResponseError { /** * Gets or Sets code diff --git a/src/main/java/org/openapitools/inference/client/model/ModelInfo.java b/src/main/java/org/openapitools/inference/client/model/ModelInfo.java index 1e6eca8e..15bfd0a8 100644 --- a/src/main/java/org/openapitools/inference/client/model/ModelInfo.java +++ b/src/main/java/org/openapitools/inference/client/model/ModelInfo.java @@ -53,117 +53,23 @@ /** * Represents the model configuration including model type, supported parameters, and other model details. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class ModelInfo { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; + public static final String SERIALIZED_NAME_MODEL = "model"; + @SerializedName(SERIALIZED_NAME_MODEL) + private String model; public static final String SERIALIZED_NAME_SHORT_DESCRIPTION = "short_description"; @SerializedName(SERIALIZED_NAME_SHORT_DESCRIPTION) private String shortDescription; - /** - * The type of model (e.g. 'embed' or 'rerank'). - */ - @JsonAdapter(TypeEnum.Adapter.class) - public enum TypeEnum { - EMBED("embed"), - - RERANK("rerank"); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return TypeEnum.fromValue(value); - } - } - } - public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - private TypeEnum type; - - /** - * Whether the embedding model produces 'dense' or 'sparse' embeddings. - */ - @JsonAdapter(VectorTypeEnum.Adapter.class) - public enum VectorTypeEnum { - DENSE("dense"), - - SPARSE("sparse"); - - private String value; - - VectorTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static VectorTypeEnum fromValue(String value) { - for (VectorTypeEnum b : VectorTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final VectorTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public VectorTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return VectorTypeEnum.fromValue(value); - } - } - } + private String type; public static final String SERIALIZED_NAME_VECTOR_TYPE = "vector_type"; @SerializedName(SERIALIZED_NAME_VECTOR_TYPE) - private VectorTypeEnum vectorType; + private String vectorType; public static final String SERIALIZED_NAME_DEFAULT_DIMENSION = "default_dimension"; @SerializedName(SERIALIZED_NAME_DEFAULT_DIMENSION) @@ -200,24 +106,24 @@ public VectorTypeEnum read(final JsonReader jsonReader) throws IOException { public ModelInfo() { } - public ModelInfo name(String name) { + public ModelInfo model(String model) { - this.name = name; + this.model = model; return this; } /** * The name of the model. - * @return name + * @return model **/ @javax.annotation.Nonnull - public String getName() { - return name; + public String getModel() { + return model; } - public void setName(String name) { - this.name = name; + public void setModel(String model) { + this.model = model; } @@ -242,7 +148,7 @@ public void setShortDescription(String shortDescription) { } - public ModelInfo type(TypeEnum type) { + public ModelInfo type(String type) { this.type = type; return this; @@ -253,17 +159,17 @@ public ModelInfo type(TypeEnum type) { * @return type **/ @javax.annotation.Nonnull - public TypeEnum getType() { + public String getType() { return type; } - public void setType(TypeEnum type) { + public void setType(String type) { this.type = type; } - public ModelInfo vectorType(VectorTypeEnum vectorType) { + public ModelInfo vectorType(String vectorType) { this.vectorType = vectorType; return this; @@ -274,12 +180,12 @@ public ModelInfo vectorType(VectorTypeEnum vectorType) { * @return vectorType **/ @javax.annotation.Nullable - public VectorTypeEnum getVectorType() { + public String getVectorType() { return vectorType; } - public void setVectorType(VectorTypeEnum vectorType) { + public void setVectorType(String vectorType) { this.vectorType = vectorType; } @@ -534,7 +440,7 @@ public boolean equals(Object o) { return false; } ModelInfo modelInfo = (ModelInfo) o; - return Objects.equals(this.name, modelInfo.name) && + return Objects.equals(this.model, modelInfo.model) && Objects.equals(this.shortDescription, modelInfo.shortDescription) && Objects.equals(this.type, modelInfo.type) && Objects.equals(this.vectorType, modelInfo.vectorType) && @@ -551,14 +457,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(name, shortDescription, type, vectorType, defaultDimension, modality, maxSequenceLength, maxBatchSize, providerName, supportedDimensions, supportedMetrics, supportedParameters, additionalProperties); + return Objects.hash(model, shortDescription, type, vectorType, defaultDimension, modality, maxSequenceLength, maxBatchSize, providerName, supportedDimensions, supportedMetrics, supportedParameters, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ModelInfo {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); sb.append(" shortDescription: ").append(toIndentedString(shortDescription)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" vectorType: ").append(toIndentedString(vectorType)).append("\n"); @@ -593,7 +499,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("name"); + openapiFields.add("model"); openapiFields.add("short_description"); openapiFields.add("type"); openapiFields.add("vector_type"); @@ -608,7 +514,7 @@ private String toIndentedString(Object o) { // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields.add("model"); openapiRequiredFields.add("short_description"); openapiRequiredFields.add("type"); openapiRequiredFields.add("supported_parameters"); @@ -634,8 +540,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + if (!jsonObj.get("model").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `model` to be a primitive type in the JSON string but got `%s`", jsonObj.get("model").toString())); } if (!jsonObj.get("short_description").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `short_description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("short_description").toString())); diff --git a/src/main/java/org/openapitools/inference/client/model/ModelInfoList.java b/src/main/java/org/openapitools/inference/client/model/ModelInfoList.java index ef4b2f9b..13167360 100644 --- a/src/main/java/org/openapitools/inference/client/model/ModelInfoList.java +++ b/src/main/java/org/openapitools/inference/client/model/ModelInfoList.java @@ -52,7 +52,7 @@ /** * The list of available models. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class ModelInfoList { public static final String SERIALIZED_NAME_MODELS = "models"; @SerializedName(SERIALIZED_NAME_MODELS) diff --git a/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameter.java b/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameter.java index b9ebab2d..a6283480 100644 --- a/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameter.java +++ b/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameter.java @@ -54,7 +54,7 @@ /** * Describes a parameter supported by the model, including parameter value constraints. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class ModelInfoSupportedParameter { public static final String SERIALIZED_NAME_PARAMETER = "parameter"; @SerializedName(SERIALIZED_NAME_PARAMETER) diff --git a/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameterAllowedValuesInner.java b/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameterAllowedValuesInner.java index 17483fab..258ebfd3 100644 --- a/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameterAllowedValuesInner.java +++ b/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameterAllowedValuesInner.java @@ -50,7 +50,7 @@ import org.openapitools.inference.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class ModelInfoSupportedParameterAllowedValuesInner extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ModelInfoSupportedParameterAllowedValuesInner.class.getName()); diff --git a/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameterDefault.java b/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameterDefault.java index cd95f3b0..f97259c0 100644 --- a/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameterDefault.java +++ b/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameterDefault.java @@ -50,7 +50,7 @@ import org.openapitools.inference.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class ModelInfoSupportedParameterDefault extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ModelInfoSupportedParameterDefault.class.getName()); diff --git a/src/main/java/org/openapitools/inference/client/model/RankedDocument.java b/src/main/java/org/openapitools/inference/client/model/RankedDocument.java index 8a2f5efa..e5be95d1 100644 --- a/src/main/java/org/openapitools/inference/client/model/RankedDocument.java +++ b/src/main/java/org/openapitools/inference/client/model/RankedDocument.java @@ -52,7 +52,7 @@ /** * A ranked document with a relevance score and an index position. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class RankedDocument { public static final String SERIALIZED_NAME_INDEX = "index"; @SerializedName(SERIALIZED_NAME_INDEX) diff --git a/src/main/java/org/openapitools/inference/client/model/RerankRequest.java b/src/main/java/org/openapitools/inference/client/model/RerankRequest.java index d30b6c8b..ff83ac28 100644 --- a/src/main/java/org/openapitools/inference/client/model/RerankRequest.java +++ b/src/main/java/org/openapitools/inference/client/model/RerankRequest.java @@ -53,7 +53,7 @@ /** * RerankRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class RerankRequest { public static final String SERIALIZED_NAME_MODEL = "model"; @SerializedName(SERIALIZED_NAME_MODEL) @@ -93,7 +93,7 @@ public RerankRequest model(String model) { } /** - * The [model](https://docs.pinecone.io/guides/inference/understanding-inference#reranking-models) to use for reranking. + * The [model](https://docs.pinecone.io/guides/search/rerank-results#reranking-models) to use for reranking. * @return model **/ @javax.annotation.Nonnull @@ -185,7 +185,7 @@ public RerankRequest addRankFieldsItem(String rankFieldsItem) { } /** - * The field(s) to consider for reranking. If not provided, the default is `[\"text\"]`. The number of fields supported is [model-specific](https://docs.pinecone.io/guides/inference/understanding-inference#reranking-models). + * The field(s) to consider for reranking. If not provided, the default is `[\"text\"]`. The number of fields supported is [model-specific](https://docs.pinecone.io/guides/search/rerank-results#reranking-models). * @return rankFields **/ @javax.annotation.Nullable @@ -243,7 +243,7 @@ public RerankRequest putParametersItem(String key, Object parametersItem) { } /** - * Additional model-specific parameters. Refer to the [model guide](https://docs.pinecone.io/guides/inference/understanding-inference#reranking-models) for available model parameters. + * Additional model-specific parameters. Refer to the [model guide](https://docs.pinecone.io/guides/search/rerank-results#reranking-models) for available model parameters. * @return parameters **/ @javax.annotation.Nullable diff --git a/src/main/java/org/openapitools/inference/client/model/RerankResult.java b/src/main/java/org/openapitools/inference/client/model/RerankResult.java index e82341a4..84c42e9c 100644 --- a/src/main/java/org/openapitools/inference/client/model/RerankResult.java +++ b/src/main/java/org/openapitools/inference/client/model/RerankResult.java @@ -53,7 +53,7 @@ /** * The result of a reranking request. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class RerankResult { public static final String SERIALIZED_NAME_MODEL = "model"; @SerializedName(SERIALIZED_NAME_MODEL) diff --git a/src/main/java/org/openapitools/inference/client/model/RerankResultUsage.java b/src/main/java/org/openapitools/inference/client/model/RerankResultUsage.java index e5345a34..7e2e99ee 100644 --- a/src/main/java/org/openapitools/inference/client/model/RerankResultUsage.java +++ b/src/main/java/org/openapitools/inference/client/model/RerankResultUsage.java @@ -49,7 +49,7 @@ /** * Usage statistics for the model inference. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class RerankResultUsage { public static final String SERIALIZED_NAME_RERANK_UNITS = "rerank_units"; @SerializedName(SERIALIZED_NAME_RERANK_UNITS) diff --git a/src/main/java/org/openapitools/inference/client/model/SparseEmbedding.java b/src/main/java/org/openapitools/inference/client/model/SparseEmbedding.java index 09530401..b280fe88 100644 --- a/src/main/java/org/openapitools/inference/client/model/SparseEmbedding.java +++ b/src/main/java/org/openapitools/inference/client/model/SparseEmbedding.java @@ -23,7 +23,6 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.inference.client.model.VectorType; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -52,7 +51,7 @@ /** * A sparse embedding of a single input */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-29T13:39:27.757942Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T16:07:32.070880Z[Etc/UTC]") public class SparseEmbedding { public static final String SERIALIZED_NAME_SPARSE_VALUES = "sparse_values"; @SerializedName(SERIALIZED_NAME_SPARSE_VALUES) @@ -68,7 +67,7 @@ public class SparseEmbedding { public static final String SERIALIZED_NAME_VECTOR_TYPE = "vector_type"; @SerializedName(SERIALIZED_NAME_VECTOR_TYPE) - private VectorType vectorType; + private String vectorType; public SparseEmbedding() { } @@ -160,23 +159,23 @@ public void setSparseTokens(List sparseTokens) { } - public SparseEmbedding vectorType(VectorType vectorType) { + public SparseEmbedding vectorType(String vectorType) { this.vectorType = vectorType; return this; } /** - * Get vectorType + * Indicates whether this is a 'dense' or 'sparse' embedding. * @return vectorType **/ @javax.annotation.Nonnull - public VectorType getVectorType() { + public String getVectorType() { return vectorType; } - public void setVectorType(VectorType vectorType) { + public void setVectorType(String vectorType) { this.vectorType = vectorType; } @@ -326,6 +325,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("sparse_tokens") != null && !jsonObj.get("sparse_tokens").isJsonNull() && !jsonObj.get("sparse_tokens").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `sparse_tokens` to be an array in the JSON string but got `%s`", jsonObj.get("sparse_tokens").toString())); } + if (!jsonObj.get("vector_type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `vector_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("vector_type").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/org/openapitools/inference/client/model/VectorType.java b/src/main/java/org/openapitools/inference/client/model/VectorType.java deleted file mode 100644 index a45a8bb3..00000000 --- a/src/main/java/org/openapitools/inference/client/model/VectorType.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Pinecone Inference API - * Pinecone is a vector database that makes it easy to search and retrieve billions of high-dimensional vectors. - * - * The version of the OpenAPI document: 2025-04 - * Contact: support@pinecone.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package org.openapitools.inference.client.model; - -import java.util.Objects; -import com.google.gson.annotations.SerializedName; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * Indicates whether this is a 'dense' or 'sparse' embedding. - */ -@JsonAdapter(VectorType.Adapter.class) -public enum VectorType { - - DENSE("dense"), - - SPARSE("sparse"); - - private String value; - - VectorType(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static VectorType fromValue(String value) { - for (VectorType b : VectorType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final VectorType enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public VectorType read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return VectorType.fromValue(value); - } - } -} -