Important
Repository Under Construction - Please visit back for more updates
This repository aims to showcase a BTP-based use case empowered by Generative AI Hub so that can inspire you in building similar use cases. More details about the use case can be found here. The use case is around a fictitious city called "Sagenai City" facing challenges in managing and tracking maintenance in public areas. The city wants to improve the way they handle reported issues from the citizens, by analyzing social media posts & making informed decisions and so effectively tracking & managing issues in public spaces.
For this proof-of-concept, we have developed a prototype leveraging SAP Generative AI Hub to analyze social media posts & give relevant insights and prioritize maintenance requests, which in return will offer efficient resolution to incidents, and provide improved visibility on the city’s infrastructure status.
You can get the source code for the different modules implemented as part of our proof of concept in the folders shared in this repository:
File or Folder | Purpose |
---|---|
cap-app/ |
NodeJS (with TypeScript) CAP orchestrator app including SAP HANA Cloud, Vector Engine, Generative AI Hub integration, SAP S/4HANA Cloud Maintenance Notifications creation and Reddit APIs integration. |
build-app/ |
SAP Build Apps package containing the prototyped User Interface |
python-app/ |
A Python microservice app deployed on Cloud Foundry runtime. Simple Implementation of Retrieval Augmented Generation (RAG) using SAP HANA Vector Engine, Langchain and SAP Generative AI Hub SDK. |
python-helper/ |
Python scripts integrating with SAP's Generative AI Hub showing how to use the SAP's Generative AI Hub SDK along side with hana-ml to perform Embeddings & Similarity Search functions. The helper file helps to preload the HDI with vector data. |
rag-getting-started/ |
This repository provides some code examples that help you getting started with the vector engine. |