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

Custom Evaluation for Generative AI – Comprehensive Guide

This tutorial demonstrates how to use SAP AI Core Custom Evaluation to benchmark Large Language Models (LLMs) using **Orchestration 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 February 26, 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

It extends the Quick Start tutorial and is intended for Application Developers and Data Scientists who already know the basics of GenAI workflows in SAP AI Core.

Pre-Read

This tutorial which showcases how a user can use AI Core custom evaluation to benchmark their large language models, evaluate orchestration configuration or prompts for their use case. It uses publicly available MedicationQA dataset which consists of commonly asked consumer questions about medications. The workload computes industry standard metrics to check the reliability of the response generate by llm.

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 Approach Selection – How to Provide Prompts (Read-Up)
+
Step 6 Create a Prompt Template in Orchestration Registry
+
Step 7 Understanding Metrics (Pre-Read)
+
Step 8 Providing Models and Metrics for Evaluation
+
Step 9 Define and Create Evaluation Configurations
+
Step 10 Create and Run Evaluation Execution
+
Step 11 View and Analyze Evaluation Results
+
Step 12 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 12
1. Environment Variables Setup 2. Preparing Dataset Files 3. Registering an Object Store Secret in AI Core 4. Upload and Register Dataset 5. Approach Selection – How to Provide Prompts (Read-Up) 6. Create a Prompt Template in Orchestration Registry 7. Understanding Metrics (Pre-Read) 8. Providing Models and Metrics for Evaluation 9. Define and Create Evaluation Configurations 10. Create and Run Evaluation Execution 11. View and Analyze Evaluation Results 12. Delete Evaluation Artifacts and Configurations

Learn more →