Skip to content

About

Use of SAP AI SDK with RAG and AI Orchestration with Custom Grounding Pipelines

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SAP AI SDK - RAG with Data Masking Example

SAP AI SDK Tutorial Video

This project demonstrates a Document Grounding (RAG) pipeline with built-in Data Masking using the SAP AI SDK and Groq API (OpenAI compatible).

📺 Video Tutorial

Watch the step-by-step tutorial on YouTube:

Watch the video

Watch Tutorial on YouTube


🎓 Full Course: Learn AI Development for SAP Developers

Accelerate your career by mastering AI development in the SAP ecosystem.

AI Development Course

Enroll in the Course Here (Special Discount Included)


Quick Start

Get the RAG pipeline running in 1 minute! 🚀

Prerequisites

Step 1: Set API Key & Run

# Set your Groq API key
export GROQ_API_KEY="your-groq-api-key-here"

# Install dependencies
npm install

# Run demo
npm run start1

(Note: npm run start1 executes start_demo.ts)

Features

  • Grounding (RAG): Connect your LLM to local documentation for accurate, context-aware answers.
  • Data Masking: Automatically identify and mask PII (Emails, Names, IDs) before sending data to the LLM.
  • SAP AI SDK: Built using the foundational capabilities of the SAP AI SDK.
  • Groq Integration: Leverages Groq's ultra-fast, OpenAI-compatible API.

Project Structure

  • knowledge-base/: Contains the source documents (courses.md) used for grounding.
  • vector-store.ts: Simple vector-based retrieval logic.
  • data-masking-layer.ts: Logic for protecting sensitive data.
  • grounding-pipeline.ts: Orchestrates the flow between masking, retrieval, and the LLM.
  • start_demo.ts: The main entry point to see everything in action.

Customizing the Knowledge Base

You can add or modify content in knowledge-base/courses.md. Use the following format for chunks:

## chunk_id_001
**Component:** Subject Name
**Category:** Category Name
**Content:**
Your detailed documentation content here...

Need Help?


Built with ❤️ for the SAP Developer Community.

About

Use of SAP AI SDK with RAG and AI Orchestration with Custom Grounding Pipelines

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages