Skip to content

Commit f530ddf

Browse files
bot-sdk-jsCharlesDuboisSAPnewtork
authored
feat: [DevOps] Update grounding specification (#489)
* Update grounding based on main * temp fix * fixed * fixed * final * Update grounding based on main * Address unfixed API change * Fix missing final * finito * release notes --------- Co-authored-by: I538344 <[email protected]> Co-authored-by: Alexander Dümont <[email protected]>
1 parent af5aec4 commit f530ddf

File tree

93 files changed

+8814
-1647
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+8814
-1647
lines changed

core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/PipelinesApi.java

Lines changed: 637 additions & 41 deletions
Large diffs are not rendered by default.

core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/RetrievalApi.java

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import com.google.common.annotations.Beta;
44
import com.sap.ai.sdk.grounding.model.DataRepositories;
55
import com.sap.ai.sdk.grounding.model.DataRepository;
6-
import com.sap.ai.sdk.grounding.model.RetievalSearchResults;
76
import com.sap.ai.sdk.grounding.model.RetrievalSearchInput;
7+
import com.sap.ai.sdk.grounding.model.RetrievalSearchResults;
88
import com.sap.cloud.sdk.cloudplatform.connectivity.Destination;
99
import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient;
1010
import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService;
@@ -24,13 +24,17 @@
2424
import org.springframework.web.util.UriComponentsBuilder;
2525

2626
/**
27-
* Document Grounding Pipeline API in version 0.1.0.
27+
* Grounding in version 0.1.0.
2828
*
29-
* <p>SAP AI Core - API Specification AI Data Management api's
29+
* <p>Grounding is a service designed to handle data-related tasks, such as grounding and retrieval,
30+
* using vector databases. It provides specialized data retrieval through these databases, grounding
31+
* the retrieval process with your own external and context-relevant data. Grounding combines
32+
* generative AI capabilities with the ability to use real-time, precise data to improve
33+
* decision-making and business operations for specific AI-driven business solutions.
3034
*/
3135
public class RetrievalApi extends AbstractOpenApiService {
3236
/**
33-
* Instantiates this API class to invoke operations on the Document Grounding Pipeline API.
37+
* Instantiates this API class to invoke operations on the Grounding.
3438
*
3539
* @param httpDestination The destination that API should be used with
3640
*/
@@ -39,8 +43,8 @@ public RetrievalApi(@Nonnull final Destination httpDestination) {
3943
}
4044

4145
/**
42-
* Instantiates this API class to invoke operations on the Document Grounding Pipeline API based
43-
* on a given {@link ApiClient}.
46+
* Instantiates this API class to invoke operations on the Grounding based on a given {@link
47+
* ApiClient}.
4448
*
4549
* @param apiClient ApiClient to invoke the API on
4650
*/
@@ -52,13 +56,13 @@ public RetrievalApi(@Nonnull final ApiClient apiClient) {
5256
/**
5357
* List all DataRepository objects.
5458
*
55-
* <p>List all DataRepository objects.
59+
* <p>List all Data Repositories
5660
*
5761
* <p><b>200</b> - Successful Response
5862
*
5963
* <p><b>400</b> - The specification of the resource was incorrect
6064
*
61-
* @param aiResourceGroup (required) The value for the parameter aiResourceGroup
65+
* @param aiResourceGroup (required) Resource Group ID
6266
* @param $top (optional) Number of results to display
6367
* @param $skip (optional) Number of results to be skipped from the ordered list of results
6468
* @param $count (optional) When the $count field is set to false, the response contains a count
@@ -124,13 +128,13 @@ public DataRepositories getDataRepositories(
124128
/**
125129
* List all DataRepository objects.
126130
*
127-
* <p>List all DataRepository objects.
131+
* <p>List all Data Repositories
128132
*
129133
* <p><b>200</b> - Successful Response
130134
*
131135
* <p><b>400</b> - The specification of the resource was incorrect
132136
*
133-
* @param aiResourceGroup The value for the parameter aiResourceGroup
137+
* @param aiResourceGroup Resource Group ID
134138
* @return DataRepositories
135139
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
136140
*/
@@ -143,7 +147,7 @@ public DataRepositories getDataRepositories(@Nonnull final String aiResourceGrou
143147
/**
144148
* List single DataRepository object.
145149
*
146-
* <p>List single DataRepository object.
150+
* <p>List data repository by id
147151
*
148152
* <p><b>200</b> - Successful Response
149153
*
@@ -153,8 +157,8 @@ public DataRepositories getDataRepositories(@Nonnull final String aiResourceGrou
153157
*
154158
* <p><b>404</b> - The specification of the resource was incorrect
155159
*
156-
* @param aiResourceGroup The value for the parameter aiResourceGroup
157-
* @param repositoryId The value for the parameter repositoryId
160+
* @param aiResourceGroup Resource Group ID
161+
* @param repositoryId Repository ID
158162
* @return DataRepository
159163
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
160164
*/
@@ -216,7 +220,7 @@ public DataRepository getDataRepositoryById(
216220
}
217221

218222
/**
219-
* Retrieve relevant content given a query string.
223+
* Retrieve relevant content
220224
*
221225
* <p>Retrieve relevant content given a query string.
222226
*
@@ -226,13 +230,13 @@ public DataRepository getDataRepositoryById(
226230
*
227231
* <p><b>422</b> - There are validation issues with the data.
228232
*
229-
* @param aiResourceGroup The value for the parameter aiResourceGroup
233+
* @param aiResourceGroup Resource Group ID
230234
* @param retrievalSearchInput The value for the parameter retrievalSearchInput
231-
* @return RetievalSearchResults
235+
* @return RetrievalSearchResults
232236
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
233237
*/
234238
@Nonnull
235-
public RetievalSearchResults search(
239+
public RetrievalSearchResults search(
236240
@Nonnull final String aiResourceGroup,
237241
@Nonnull final RetrievalSearchInput retrievalSearchInput)
238242
throws OpenApiRequestException {
@@ -269,8 +273,8 @@ public RetievalSearchResults search(
269273

270274
final String[] localVarAuthNames = new String[] {};
271275

272-
final ParameterizedTypeReference<RetievalSearchResults> localVarReturnType =
273-
new ParameterizedTypeReference<RetievalSearchResults>() {};
276+
final ParameterizedTypeReference<RetrievalSearchResults> localVarReturnType =
277+
new ParameterizedTypeReference<RetrievalSearchResults>() {};
274278
return apiClient.invokeAPI(
275279
localVarPath,
276280
HttpMethod.POST,

core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/VectorApi.java

Lines changed: 37 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,17 @@
3333
import org.springframework.web.util.UriComponentsBuilder;
3434

3535
/**
36-
* Document Grounding Pipeline API in version 0.1.0.
36+
* Grounding in version 0.1.0.
3737
*
38-
* <p>SAP AI Core - API Specification AI Data Management api's
38+
* <p>Grounding is a service designed to handle data-related tasks, such as grounding and retrieval,
39+
* using vector databases. It provides specialized data retrieval through these databases, grounding
40+
* the retrieval process with your own external and context-relevant data. Grounding combines
41+
* generative AI capabilities with the ability to use real-time, precise data to improve
42+
* decision-making and business operations for specific AI-driven business solutions.
3943
*/
4044
public class VectorApi extends AbstractOpenApiService {
4145
/**
42-
* Instantiates this API class to invoke operations on the Document Grounding Pipeline API.
46+
* Instantiates this API class to invoke operations on the Grounding.
4347
*
4448
* @param httpDestination The destination that API should be used with
4549
*/
@@ -48,8 +52,8 @@ public VectorApi(@Nonnull final Destination httpDestination) {
4852
}
4953

5054
/**
51-
* Instantiates this API class to invoke operations on the Document Grounding Pipeline API based
52-
* on a given {@link ApiClient}.
55+
* Instantiates this API class to invoke operations on the Grounding based on a given {@link
56+
* ApiClient}.
5357
*
5458
* @param apiClient ApiClient to invoke the API on
5559
*/
@@ -70,7 +74,7 @@ public VectorApi(@Nonnull final ApiClient apiClient) {
7074
*
7175
* <p><b>422</b> - There are validation issues with the data.
7276
*
73-
* @param aiResourceGroup The value for the parameter aiResourceGroup
77+
* @param aiResourceGroup Resource Group ID
7478
* @param collectionRequest The value for the parameter collectionRequest
7579
* @return An OpenApiResponse containing the status code of the HttpResponse.
7680
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
@@ -142,8 +146,8 @@ public OpenApiResponse createCollection(
142146
*
143147
* <p><b>422</b> - There are validation issues with the data.
144148
*
145-
* @param aiResourceGroup The value for the parameter aiResourceGroup
146-
* @param collectionId The value for the parameter collectionId
149+
* @param aiResourceGroup Resource Group ID
150+
* @param collectionId Collection ID
147151
* @param documentCreateRequest The value for the parameter documentCreateRequest
148152
* @return DocumentsListResponse
149153
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
@@ -227,8 +231,8 @@ public DocumentsListResponse createDocuments(
227231
*
228232
* <p><b>422</b> - There are validation issues with the data.
229233
*
230-
* @param aiResourceGroup The value for the parameter aiResourceGroup
231-
* @param collectionId The value for the parameter collectionId
234+
* @param aiResourceGroup Resource Group ID
235+
* @param collectionId Collection ID
232236
* @return An OpenApiResponse containing the status code of the HttpResponse.
233237
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
234238
*/
@@ -303,9 +307,9 @@ public OpenApiResponse deleteCollectionById(
303307
*
304308
* <p><b>422</b> - There are validation issues with the data.
305309
*
306-
* @param aiResourceGroup The value for the parameter aiResourceGroup
307-
* @param collectionId The value for the parameter collectionId
308-
* @param documentId The value for the parameter documentId
310+
* @param aiResourceGroup Resource Group ID
311+
* @param collectionId Collection ID
312+
* @param documentId Document ID
309313
* @return An OpenApiResponse containing the status code of the HttpResponse.
310314
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
311315
*/
@@ -385,7 +389,7 @@ public OpenApiResponse deleteDocumentById(
385389
*
386390
* <p><b>400</b> - The specification of the resource was incorrect
387391
*
388-
* @param aiResourceGroup (required) The value for the parameter aiResourceGroup
392+
* @param aiResourceGroup (required) Resource Group ID
389393
* @param $top (optional) Number of results to display
390394
* @param $skip (optional) Number of results to be skipped from the ordered list of results
391395
* @param $count (optional) When the $count field is set to false, the response contains a count
@@ -457,7 +461,7 @@ public CollectionsListResponse getAllCollections(
457461
*
458462
* <p><b>400</b> - The specification of the resource was incorrect
459463
*
460-
* @param aiResourceGroup The value for the parameter aiResourceGroup
464+
* @param aiResourceGroup Resource Group ID
461465
* @return CollectionsListResponse
462466
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
463467
*/
@@ -480,8 +484,8 @@ public CollectionsListResponse getAllCollections(@Nonnull final String aiResourc
480484
*
481485
* <p><b>422</b> - There are validation issues with the data.
482486
*
483-
* @param aiResourceGroup (required) The value for the parameter aiResourceGroup
484-
* @param collectionId (required) The value for the parameter collectionId
487+
* @param aiResourceGroup (required) Resource Group ID
488+
* @param collectionId (required) Collection ID
485489
* @param $top (optional) Number of results to display
486490
* @param $skip (optional) Number of results to be skipped from the ordered list of results
487491
* @param $count (optional) When the $count field is set to false, the response contains a count
@@ -569,8 +573,8 @@ public Documents getAllDocuments(
569573
*
570574
* <p><b>422</b> - There are validation issues with the data.
571575
*
572-
* @param aiResourceGroup The value for the parameter aiResourceGroup
573-
* @param collectionId The value for the parameter collectionId
576+
* @param aiResourceGroup Resource Group ID
577+
* @param collectionId Collection ID
574578
* @return Documents
575579
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
576580
*/
@@ -594,8 +598,8 @@ public Documents getAllDocuments(
594598
*
595599
* <p><b>422</b> - There are validation issues with the data.
596600
*
597-
* @param aiResourceGroup The value for the parameter aiResourceGroup
598-
* @param collectionId The value for the parameter collectionId
601+
* @param aiResourceGroup Resource Group ID
602+
* @param collectionId Collection ID
599603
* @return Collection
600604
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
601605
*/
@@ -669,8 +673,8 @@ public Collection getCollectionById(
669673
*
670674
* <p><b>422</b> - There are validation issues with the data.
671675
*
672-
* @param aiResourceGroup The value for the parameter aiResourceGroup
673-
* @param id The value for the parameter id
676+
* @param aiResourceGroup Resource Group ID
677+
* @param id Collection ID
674678
* @return VectorV1VectorEndpointsGetCollectionCreationStatus200Response
675679
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
676680
*/
@@ -746,8 +750,8 @@ public VectorV1VectorEndpointsGetCollectionCreationStatus200Response getCollecti
746750
*
747751
* <p><b>422</b> - There are validation issues with the data.
748752
*
749-
* @param aiResourceGroup The value for the parameter aiResourceGroup
750-
* @param id The value for the parameter id
753+
* @param aiResourceGroup Resource Group ID
754+
* @param id Collection ID
751755
* @return VectorV1VectorEndpointsGetCollectionDeletionStatus200Response
752756
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
753757
*/
@@ -823,9 +827,9 @@ public VectorV1VectorEndpointsGetCollectionDeletionStatus200Response getCollecti
823827
*
824828
* <p><b>422</b> - There are validation issues with the data.
825829
*
826-
* @param aiResourceGroup The value for the parameter aiResourceGroup
827-
* @param collectionId The value for the parameter collectionId
828-
* @param documentId The value for the parameter documentId
830+
* @param aiResourceGroup Resource Group ID
831+
* @param collectionId Collection ID
832+
* @param documentId Document ID
829833
* @return DocumentResponse
830834
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
831835
*/
@@ -898,7 +902,7 @@ public DocumentResponse getDocumentById(
898902
/**
899903
* Search chunk by vector
900904
*
901-
* <p>Search chunk by vector
905+
* <p>Search chunks
902906
*
903907
* <p><b>200</b> - Successful Response
904908
*
@@ -908,7 +912,7 @@ public DocumentResponse getDocumentById(
908912
*
909913
* <p><b>422</b> - There are validation issues with the data.
910914
*
911-
* @param aiResourceGroup The value for the parameter aiResourceGroup
915+
* @param aiResourceGroup Resource Group ID
912916
* @param textSearchRequest The value for the parameter textSearchRequest
913917
* @return SearchResults
914918
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
@@ -928,7 +932,7 @@ public SearchResults search(
928932
// verify the required parameter 'textSearchRequest' is set
929933
if (textSearchRequest == null) {
930934
throw new OpenApiRequestException(
931-
"Missing the required parameter 'textSearchRequest' when calling vectorV1VectorEndpointsSearch");
935+
"Missing the required parameter 'textSearchRequest' when calling vectorV1VectorEndpointsSearchChunk");
932936
}
933937

934938
final String localVarPath =
@@ -978,8 +982,8 @@ public SearchResults search(
978982
*
979983
* <p><b>422</b> - There are validation issues with the data.
980984
*
981-
* @param aiResourceGroup The value for the parameter aiResourceGroup
982-
* @param collectionId The value for the parameter collectionId
985+
* @param aiResourceGroup Resource Group ID
986+
* @param collectionId Collection ID
983987
* @param documentUpdateRequest The value for the parameter documentUpdateRequest
984988
* @return DocumentsListResponse
985989
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API

core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ApiError.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Document Grounding Pipeline API
3-
* SAP AI Core - API Specification AI Data Management api's
2+
* Grounding
3+
* Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
44
*
55
*
66
*

core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/BaseDocument.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Document Grounding Pipeline API
3-
* SAP AI Core - API Specification AI Data Management api's
2+
* Grounding
3+
* Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
44
*
55
*
66
*

0 commit comments

Comments
 (0)