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

Set up and use the Data Exploration Tools

This tutorial explains what the data exploration tools are, shows how they can be set up, and provides a few examples of using them in the SQL Console.

Overview

🎓 beginner 15 min. SAP HANA Cloud SAP HANA DatabaseSAP HANA CloudSqlBeginner

You will learn

  • โœ”How to set up the data exploration tools
  • โœ”How you can use these tools
  • โœ”How the data exploration tools make use of the SAP HANA Cloud Vector engine and Knowledge Graph to return answers to questions about your tables, views, and functions and the data returned by them using natural language.
Unknown U Unknown August 11, 2026
Created by July 9, 2026
Contributors

Prerequisites

Prerequisites

  • A productive SAP HANA Cloud instance that has enabled the Knowledge Graph (also known as a triple store) and the Natural Language Service (NLS)
  • Access to an AI Core instance or the ability to deploy and configure an instance of one

Steps

Overview

SAP HANA Cloud provides many features that make it well suited as a database for business AI. The data exploration tools make use of a few of these features which are further described below. The data exploration tools provide a database object discovery stored procedure that can be used to find objects and a data retrieval procedure that can be used to return query results from a prompt.

SAP HANA Cloud provides a vector engine and a set of vector functions to work with vectors. The ability to embed data as a vector data type and to provide a method to perform a similarity search on the embedded data is helpful in providing grounding data to an LLM. Retrieval Augmented Generation (RAG) is a pattern where instead of asking a large language model (LLM) to answer a question from memory alone, you first retrieve relevant context from a knowledge base (in this case the tables, views, and functions in your database) and then augment the LLM’s prompt with that context. The LLM generates a response grounded in your data rather than generating its response based only on the data it’s been trained with.

SAP HANA Cloud also provides the SAP HANA Database Knowledge Graph which can be used to store the relationships between objects. The data exploration tools as part of its configuration will create a knowledge graph containing information about the relationships between the database table, views, and functions that are specified during its configuration. Further details can also be found at From Preview to Production: Get Started with the SAP HANA Cloud’s Agentic Data Exploration Tools.


Step 1 SAP AI Core
โ€”

The data exploration tools require access to an orchestration model running in SAP AI Core. The following steps demonstrate how an SAP AI Core instance can be created and how SAP HANA Cloud can be configured to connect to the SAP AI Core instance.

  1. Open the SAP BTP Cockpit and in a region that supports the SAP AI Core, create an instance of it using the extended plan.

    create SAP AI Core
    create SAP AI Core

    specify values
    specify values

  2. Once the instance has been created, add a service key of type X.509 certificate. We will use this service key to enable SAP HANA Cloud to access the AI Core instance.

    create service key
    create service key

    Specify that the key should be an X.509 certificate by including the JSON below.

    JSON
    {
        "xsuaa": {
            "credential-type": "x509",
            "x509": {
            "key-length": 2048,
            "validity": 3,
            "validity-type": "MONTHS"
            }
        }
    }

    providing parameters to the service key
    providing parameters to the service key

    Additional details can be found at Create a Service Key.

  3. Download the service key.

    Download the service key
    Download the service key

  4. The following are optional steps for illustrative purposes only. The data exploration wizard shown in step 4 can be used to access the deployment ID and to create a remote source connection to the AI Core instance. Feel free to jump to step 4 Configure the data exploration tools.

    1. Create a second service key this time without providing the JSON. This will create a user name and password based service key that we will use to make a REST request against the SAP AI Core instance to determine its deployment ID.

    2. In the SAP BTP Cockpit, a subscription to the SAP AI Launchpad can be created. It can be used to examine one or more SAP AI Core instances and to start, stop, and delete models. It is shown below so that the deployment ID of the default orchestration model can be determined.

      SAP AI Launchpad subscription
      SAP AI Launchpad subscription

      After opening the UI, a connection can be made to the SAP AI Core instance.

      connect to the AI Core instance from the SAP AI Launchpad
      connect to the AI Core instance from the SAP AI Launchpad

      To view the list deployments first select a resource group. The data exploration tools use the default resource group.

      default resource group
      default resource group

      Next select the deployments which includes the deploymentID. By default a deployment of an orchestration model is included in each SAP AI Core instance. This is the model required by the data exploration tools.

      finding the deployment ID in the SAP AI Launchpad
      finding the deployment ID in the SAP AI Launchpad

      Above an additional model was added to support SAP RPT-1.

    3. Additionally, there is a REST API that can be used to interact with the SAP AI Core instance. The below shows an alternate method to access the deployment ID. If not already installed, add the REST Client extension from Marketplace after opening the extensions view.

      Install Rest client
      Install Rest client

      To try it out, create an HTTP file with the following content and open it in Visual Studio Code. Update the variable values to match those from the previously created user name and password service key.

      HTTP
      #REST CLIENT VARIABLES ---------------------------
      # instructions at https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/create-service-instance?locale=en-US
      # https://help.sap.com/docs/sap-ai-core/generative-ai/get-auth-token?locale=en-US
      # https://api.sap.com/api/AI_CORE_API
      
      @ai_api_url = https://api.ai.prod.us-east-1.aws.ml.hana.ondemand.com
      @auth_url = https://dan-van-leeuwen-aws.authentication.us10.hana.ondemand.com
      @client_id = sb-fccb40af...
      @client_secret = 0f12e678-6...
      @resource_group = default
      
      @oauth = oauth/token?grant_type=client_credentials
      
      #Generated by the request bearer token call.  Copy the access_token value from the result without the quotes
      @bearer = 
      #AUTHORIZATION REST API CALL ---------------------
      
      #Request Bearer Token
      GET {{auth_url}}/{{oauth}}
      Authorization: Basic {{client_id}}:{{client_secret}}
      
      ###
      
      #Request deployments
      GET {{ai_api_url}}/v2/lm/deployments
      Authorization: Bearer {{bearer}}
      AI-Resource-Group: {{resource_group}}
    4. Request a bearer token and copy that value into the bearer variable.

      request a bearer token
      request a bearer token

    5. Request the deployment ID from the AI Core instance. Write down the deployment ID. This can be used in a later optional step.

      request the deployment id
      request the deployment id

Step 2 Connect SAP HANA Cloud to SAP AI Core
+
Step 3 Configure the data exploration tools
+
Step 4 Understanding the objects created
+
Step 5 Using the functions with a different user
+
Step 6 Knowledge check
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 6
1. SAP AI Core 2. Connect SAP HANA Cloud to SAP AI Core 3. Configure the data exploration tools 4. Understanding the objects created 5. Using the functions with a different user 6. Knowledge check

Learn more →