Skip to content

Commit 7a0a6da

Browse files
authored
alignment with comments
1 parent 38dfa34 commit 7a0a6da

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

tutorials/ai-core-orchestration-consumption/ai-core-orchestration-consumption.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,15 @@ console.log(process.env.AICORE_SERVICE_KEY);
8787

8888
[Create a service key](https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/create-service-key) for your AI Core instance and copy the JSON object.
8989

90-
• Create a `.env` file in the **working directory** from which you run the code. Add the following line using the copied JSON:
90+
• Create a `.env` file in the **working directory from which you run the code**. Add the following line using the copied JSON:
9191

9292
```txt
9393
AICORE_SERVICE_KEY={"clientid": "...", "clientsecret": "...", "url": "...", "serviceurls": { "AI_API_URL": "..." } }
9494
```
9595
> [!IMPORTANT]
9696
The value of `AICORE_SERVICE_KEY` must be a single line, so remove any line breaks from the service key JSON.
9797

98-
• For other options of access configuration and detailed information on installation and usage of the **SAP Cloud SDK for AI (for Java)**, visit the official
99-
[GitHub repository](https://github.com/SAP/ai-sdk-java). This page provides comprehensive steps to set up and integrate the SDK effectively in your projects.
98+
• For other options of access configuration and detailed information on installation and usage of the **SAP Cloud SDK for AI (for Java)**, visit the official [GitHub repository](https://github.com/SAP/ai-sdk-java). This page provides comprehensive steps to set up and integrate the SDK effectively in your projects.
10099

101100
[OPTION END]
102101

@@ -349,7 +348,7 @@ orchestrationConfig;
349348

350349
[OPTION BEGIN [Java SDK]]
351350

352-
In this step, we will create an orchestration configuration using the core module of the SAP Cloud SDK for Java in a maven project. This configuration integrates various parameters needed for orchestration, such as the executable ID and scenario ID.
351+
In this step, we will create an orchestration configuration using the core module of the [SAP Cloud SDK for Java](https://github.com/SAP/cloud-sdk-java) in a maven project. This configuration integrates various parameters needed for orchestration, such as the executable ID and scenario ID.
353352

354353
• Add the following dependencies to your `pom.xml` file:
355354

@@ -564,7 +563,7 @@ export async function deployOrchestration(
564563

565564
[OPTION BEGIN [Java SDK]]
566565

567-
In this step, we will create a deployment from the configuration created in the last step using the core module of the SAP Cloud SDK for Java.
566+
In this step, we will create a deployment from the configuration created in the previous step using the core module of the [SAP Cloud SDK for Java](https://github.com/SAP/cloud-sdk-java).
568567

569568
• Add the following code to your project to create an orchestration deployment:
570569

@@ -1059,9 +1058,10 @@ Data masking and content filtering are available to enhance data privacy and saf
10591058

10601059
[OPTION BEGIN [Java SDK]]
10611060

1062-
In this step, we will consume an LLM through the orchestration service with the created deployment, using the core and orchestration module of the SAP Cloud SDK for Java.
1061+
In this step, we will consume an LLM through the orchestration service with the created deployment, using the core and orchestration module of the [SAP Cloud SDK for Java](https://github.com/SAP/cloud-sdk-java).
1062+
1063+
To begin the consumption process, follow the steps below:
10631064

1064-
To begin the consumption process for the orchestration you’ve deployed, follow the steps below:
10651065

10661066
**Prepare the CV File**
10671067

@@ -1113,15 +1113,15 @@ We can define model parameters and a list of models to use. Only use those model
11131113

11141114
// Map of model parameters, can be adapted if desired
11151115
Map<String, Object> modelParams = Map.of(
1116-
"max_tokens", 1000,
1117-
"temperature", 0.6
1116+
"max_tokens", 1000,
1117+
"temperature", 0.6
11181118
);
11191119

11201120
// List of models to iterate through, can be adapted if desired
11211121
var models = List.of(
1122-
OrchestrationAiModel.GPT_4O.withParams(modelParams),
1123-
OrchestrationAiModel.MISTRAL_LARGE_INSTRUCT.withParams(modelParams),
1124-
OrchestrationAiModel.CLAUDE_3_5_SONNET.withParams(modelParams)
1122+
OrchestrationAiModel.GPT_4O.withParams(modelParams),
1123+
OrchestrationAiModel.MISTRAL_LARGE_INSTRUCT.withParams(modelParams),
1124+
OrchestrationAiModel.CLAUDE_3_5_SONNET.withParams(modelParams)
11251125
);
11261126

11271127
```
@@ -1179,7 +1179,6 @@ for (var model: models) {
11791179
createFileFromResponses(responses);
11801180
```
11811181

1182-
11831182
**Important Note**
11841183

11851184
Ensure at least one orchestration deployment is ready to be consumed during this process.

0 commit comments

Comments
 (0)