Skip to content

In this SAP CodeJam we will look at the Generative AI Hub and how we can incorporate generative AI into our AI activities in SAP AI Core and SAP AI Launchpad.

License

Notifications You must be signed in to change notification settings

SAP-samples/generative-ai-codejam

CodeJam - Getting started with Generative AI Hub on SAP AI Core

REUSE status

Description

This repository contains the material for the "Getting started with the Generative AI Hub on SAP AI Core" CodeJam, brought to you by the Developer Advocates at SAP.

Overview

In this CodeJam you will learn how to use Generative AI Hub on SAP AI Core to implement a retrieval augmented generation (RAG) use case to improve the responses of large language models (LLMs) and reduce hallucinations. You will learn how to deploy an LLM on SAP AI Core and query it via SAP AI Launchpad and the Python SDK. Furthermore, you will learn about the most important genAI concepts and create and use text chunks and embeddings to improve your RAG response.

Requirements

The requirements necessary to complete the exercises in this repository, including hardware and software specifications, are outlined in the prerequisites file.

Exercises

You can find all exercises in the exercises folder. We will work through the exercises in the order shown here. From a session flow perspective, we are taking the "coordinated" approach:

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.

  1. Connect SAP AI Core and SAP AI Launchpad
  2. Deploy a Large Language Model (LLM) on SAP AI Core
  3. Explore the Prompt Editor in SAP AI Launchpad
  4. Setup your Python environment
  5. Prompt an LLM
  6. Create embeddings for your document chunks
  7. Store embeddings
  8. Implement the RAG use case
  9. Multimodal models
  10. Orchestration service
  11. Semantic chunking

Feedback

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!

Other CodeJams

CodeJam repositories

CodeJam Community

Acknowledgements

The exercise content in this repository is based on different sample repositories created by the SAP AI Core team.

The exercises related to the prerequisites and setting up BAS were copied and adjusted from my colleague Vitaliy's CodeJam - Getting Started with Machine Learning using SAP HANA and Python.

How to obtain support

Create an issue in this repository if you find a bug or have questions about the content.

For additional support, ask a question in SAP Community.

License

Copyright (c) 2024 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.

About

In this SAP CodeJam we will look at the Generative AI Hub and how we can incorporate generative AI into our AI activities in SAP AI Core and SAP AI Launchpad.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published