This repository contains the material for the "Expose SAP AI Core capabilities with the SAP Cloud Application Programming Model" CodeJam, which the SAP Developer Advocates brought to you.
NOTE: The state of the sample code in this repository is currently using the CAP-LLM-Plugin, we are working on updating this to the SAP Cloud SDK for AI.
This CodeJam introduces attendees to aspects of exposing generative artificial intelligence (genAI) capabilities to execute tasks in a business context.
During this event, you'll become acquainted with the theory behind genAI and SAP AI Core and learn how to use the SAP Cloud Application Programming Model to expose AI capabilities through your own service application.
While working through the exercises, you'll become comfortable creating CDS-based service definitions and integrating them into the SAP Business Technology Platform (BTP) and SAP AI Core Foundation Models.
Certain prerequisites must be sorted out before the day of the CodeJam in order to get the most from this CodeJam and work through the exercises.
The prerequisites are detailed in a separate prerequisites file. Please ensure you have everything ready before attending the CodeJam.
These are the exercises, each in their directory, sometimes with supporting files and scripts. We will work through the exercises in the order shown here. From a session flow perspective, we are taking the "coordinated" approach:
- Exercise 01 - Set up your workspace
- Exercise 02 - Use SAP AI Launchpad to deploy a Large Language Model with Generative AI Hub on SAP AI Core
- Exercise 03 - Explore Generative AI Hub in SAP AI Launchpad
- Exercise 04 - Explore the SAP HANA Cloud Vector Engine
- Exercise 05 - Learn how to use the destination service on SAP BTP to provide connection details for SAP AI Core
- Exercise 06 - Create the database schema for the CAP application
- Exercise 07 - Define the embeddings service
- Exercise 08 - Implement the embedding service
- Exercise 09 - Create the CAP-LLM-Plugin connection configuration
- Exercise 10 - Define the CAP documentation helper service
- Exercise 11 - Implement the CAP documentation helper service
The instructor will start you on the first exercise, and that's the only one you should do. You should only proceed to the next exercise once the instructor tells you to.
For the Surge event you will use this BTP subaccount
If you can spare a couple of minutes at the end of the session, please provide feedback to help us improve next time.
Use this Give feedback link to create a special "feedback" issue, and follow the instructions in there.
Thank you!
- Service integration with SAP Cloud Application Programming Model
- CodeJam - Getting Started with Machine Learning using SAP HANA and Python
- Hands-on with the btp CLI and APIs
- CodeJam - Combine SAP Cloud Application Programming Model with SAP HANA Cloud to Create Full-Stack Applications
- All CodeJams in one list
The exercise content in this repository is based on a sample repository created by the CAP team.
Support for the content in this repository is available during the CodeJam event for which this content has been designed.
Copyright (c) 2023 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0, except as noted otherwise in the LICENSE file.