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

Generative AI Custom Evaluation - Quickstart

This tutorial demonstrates how to use SAP AI Core Custom Evaluation to benchmark Large Language Models (LLMs) using **Prompt Registry**. It guides you through environment setup, configuration creation, execution, and result analysis in a unified and simplified workflow.

Overview

🎓 beginner 45 min. SAP Ai CoreBeginnerArtificial IntelligenceMachine Learning

You will learn

  • โœ”How to prepare and organize datasets for evaluation.
  • โœ”How to configure and run evaluations in SAP AI Core.
  • โœ”How to analyze and interpret aggregated evaluation results.
Smita Naik S Smita Naik April 1, 2026
Created by January 16, 2026
Contributors

Prerequisites

Prerequisites

  1. BTP Account
    Set up your SAP Business Technology Platform (BTP) account.
    Create a BTP Account
  2. For SAP Developers or Employees
    Internal SAP stakeholders should refer to the following documentation: How to create BTP Account For Internal SAP Employee, SAP AI Core Internal Documentation
  3. For External Developers, Customers, or Partners
    Follow this tutorial to set up your environment and entitlements: External Developer Setup Tutorial, SAP AI Core External Documentation
  4. Create BTP Instance and Service Key for SAP AI Core
    Follow the steps to create an instance and generate a service key for SAP AI Core:
    Create Service Key and Instance
  5. AI Core Setup Guide
    Step-by-step guide to set up and get started with SAP AI Core:
    AI Core Setup Tutorial
  6. 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
  7. Orchestration Deployment Ensure at least one orchestration deployment is ready to be consumed during this process. Refer to this tutorial understand the basic consumption of GenAI models using orchestration.
  8. Basic Knowledge Familiarity with the orchestration workflow is recommended
  9. Install Dependencies Install the required Python packages using the requirements.txt file provided. Download requirements.txt

๐Ÿ’ก Right-click the link above and choose “Save link as…” to download it directly.

Steps

Pre-Read

This tutorial is designed for users who are unfamiliar with AI Core services and do not require flexibility in their use case. This tutorial is setup in a way that provides automatic setup for your evaluation where only the dataset is minimally required. It demonstrates a quick start simplified workflow for using AI Core’s custom evaluation capabilities to benchmark Large Language Models (LLMs), and evaluate different prompts for a specific use case. It utilizes the public MedicationQA dataset to showcase how to compute industry-standard metrics and assess the reliability of LLM-generated responses.

Step 1 Environment Variables Setup
โ€”

  • Navigate to your SAP AI Core Launchpad.

  • In the Workspaces section, click on “Add” to create a new workspace.

    • A workspace in SAP AI Core is a logical container that holds your resources (like models and pipelines) and provides the isolation needed for your projects.
  • When prompted, enter your AI Core credentials (such as Client ID, Client Secret, and Base URL).

    • Note: If you’re unsure about where to find these credentials, refer to this guide.
  • Once the workspace is successfully created, select your desired Resource Group to begin the evaluation process.

Refer to the screenshot below for guidance:

img
img

Step 2 Preparing Dataset Files
+
Step 3 Registering an Object Store Secret in AI Core
+
Step 4 Upload and Register Dataset
+
Step 5 Create a Prompt Template in Prompt Registry
+
Step 6 Providing Models and Metrics for Evaluation
+
Step 7 Define and Create Evaluation Configurations
+
Step 8 Create and Run Evaluation Execution
+
Step 9 View and Analyze Evaluation Results
+
Step 10 Delete Evaluation Artifacts and Configurations
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 10
1. Environment Variables Setup 2. Preparing Dataset Files 3. Registering an Object Store Secret in AI Core 4. Upload and Register Dataset 5. Create a Prompt Template in Prompt Registry 6. Providing Models and Metrics for Evaluation 7. Define and Create Evaluation Configurations 8. Create and Run Evaluation Execution 9. View and Analyze Evaluation Results 10. Delete Evaluation Artifacts and Configurations

Learn more →