SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Prompt LLMs in the generative AI hub in SAP AI Core & Launchpad

Understand the principles of prompt engineering and learn to create effective prompts for AI models like ChatGPT. Prompt engineering is crucial for obtaining desired outputs from AI models. It helps in guiding the model's response in a particular direction.

Overview

🎓 beginner 20 min. SAP Ai CoreBeginnerMachine Learning

You will learn

  • How to deploy an LLM model.
  • How to use the models to execute different queries.

Prerequisites

Prerequisites

  • A BTP global account If you are an SAP Developer or SAP employee, please refer to the following links ( for internal SAP stakeholders only ) - How to create a BTP Account (internal) SAP AI Core If you are an external developer or a customer or a partner kindly refer to this tutorial
  • An Extended SAP AI Core service plan is required, as the Generative AI Hub is not available in the Free or Standard tiers. For more details, refer to SAP AI Core Service Plans
  • You have completed the client authorization for your preferred user interface.
  • Access to SAP AI Core instance with the Extended plan
  • Python and programming IDE (e.g. VSCode)
  • To follow the Bruno steps in this tutorial, download the Bruno collection file: Foundation-Models-Demo.json and import it into Bruno.

For more information, see SAP AI Core documentation.

Steps

Step 1 Provisioning SAP AI Core

Provision SAP AI Core in your global account

Open the SAP BTP cockpit and access your global account.

BTP Cockpit
BTP Cockpit

Check the entitlements for your account by clicking Entitlements and searching for SAP AI Core.

Check Entitlements
Check Entitlements

Click Configure Entitlements > Add Service Plans.

Set SAP AI Core as an entitlement
Set SAP AI Core as an entitlement
Set SAP AI Core as an entitlement
Set SAP AI Core as an entitlement

Select SAP AI Core and the extended service plan.

Set SAP AI Core as an entitlement
Set SAP AI Core as an entitlement

Save your new entitlement.

Save
Save

Run the booster for SAP AI Core

Choose Boosters from the navigation pane. Find and choose the booster for SAP AI Core from the selection.

Locate the SAP AI Core booster
Locate the SAP AI Core booster

The booster tile contains information about SAP AI Core. Click Start when you are ready.

When you start a booster, a wizard opens up which guides you through the required steps.

Start the booster
Start the booster

View your instances and create your keys

In the subaccount section of SAP BTP Cockpit, choose Services from the left navigation menu and Instances and subscriptions from the page.

View instances and subscriptions
View instances and subscriptions

To see the details of your new instance, click the chevron on the entry.

To create the keys that you need to access your instance, click the three dots > Create Service Key.

Create keys
Create keys

Enter a Key Name of your choice and click Create.

Create keys
Create keys
View new keys
View new keys

Once your keys have been created, you can view or download them at any time by locating the key and clicking the three dots and choosing from the available options.

Locate the keys in SAP AI Cockpit
Locate the keys in SAP AI Cockpit

Provision SAP AI Launchpad in your global account

Note: SAP AI Launchpad is optional, but is the recommended interface for use with SAP AI Core.

Configure your entitlement as before, but select SAP AI Launchpad.

Run the booster for SAP AI Launchpad

Choose Boosters from the navigation pane, and then choose the booster for SAP AI Launchpad from the selection.

Locate the booster for SAP AI Launchpad
Locate the booster for SAP AI Launchpad

Click Start when you are ready.

Start the booster
Start the booster

Step 2 Checking for foundation-models scenario
+
Step 3 Creating a configuration
+
Step 4 Creating a deployment
+
Step 5 Querying the LLMs
+
Step 6 Prompt Management
+
Step 7 Prompt Administration
+
Step 8 Text Summarization
+
Step 9 Question Answering
+
Step 10 Text Classification - Sentiment Analysis
+
Step 11 Expansion
+
Step 12 Tone adjustment
+
Step 13 Spell-check / Grammar-check
+
Step 14 Doing multiple tasks at once
+
Step 15 Few-Shot Prompting
+
Step 16 Zero-Shot prompting
+
Step 17 Visual Prompting
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 17
1. Provisioning SAP AI Core 2. Checking for foundation-models scenario 3. Creating a configuration 4. Creating a deployment 5. Querying the LLMs 6. Prompt Management 7. Prompt Administration 8. Text Summarization 9. Question Answering 10. Text Classification - Sentiment Analysis 11. Expansion 12. Tone adjustment 13. Spell-check / Grammar-check 14. Doing multiple tasks at once 15. Few-Shot Prompting 16. Zero-Shot prompting 17. Visual Prompting

Learn more →