sap-genai-hub-with-sap-hana-cloud-vector-engine
A hands-on workshop that works through SAP HANA CloudSAP HANA CloudThe managed database under most of this: CAP's default target, the store Datasphere and Analytics Cloud sit on, and a service with plans and components.sap official, btp's vector engine, SAP Generative AI Hub and the Python LangChain framework in one Jupyter notebook.
The workshop puts three pieces together and uses them on unstructured and semi-structured data: SAP HANA CloudSAP HANA CloudThe managed database under most of this: CAP's default target, the store Datasphere and Analytics Cloud sit on, and a service with plans and components.sap official, btp's vector engine, SAP Generative AI Hub and the Python LangChain framework. Setup runs in SAP Business Application StudioSAP Business Application StudioSAP's development environment for business applications, delivered as a cloud service and opened in a browser, where work happens in preconfigured dev spaces.sap official, btp with the notebook the repository provides, installing hdbcli for the SAP HANASAP HANASAP’s relational database platform, which stores application data and executes SQL and SQLScript in the database, available on-premise and as the managed service SAP HANA Cloud.sap official, btp database connection, generative-ai-hub-sdk for calling models such as ChatGPT through the hub, and Folium for showing results on a map; the kernel needs a restart afterwards. It asks for an SAP HANA Cloud Introduction Academy or Basic Trial registration, and the repository does not accept community contributions.
Facts
Where it sits
Who is behind it
In the atlas: maintains 222@SAP-samplesmaintainerChris BezuidenhoutContributes to this
In the atlas: contributes to 1@boefbrakJames FitzpatrickContributes to this
In the atlas: contributes to 1@fitzgin2 contributors
What it declares
Every artifact
- Type
- Sample
- Origin
- By SAP
- Use as
- A reference
As a sample
- Form
- Workshop or CodeJam material
Connections
Grounding a model's answer in data retrieved at question time
Managed SAP HANA database service on BTP
Download
README
quoted from SAP-samples/sap-genai-hub-with-sap-hana-cloud-vector-engine under Apache-2.0, readSAP HANA Cloud with Vector Engine and GenAI Hub
Description
In this use case, we will embark on a journey to explore the capabilities of SAP HANA Cloud vector engine, SAP Generative AI Hub and the Python Langchain Framework. The goal is to equip you with the knowledge and skills to handle unstructured and semi-structured data and build efficient applications.

Requirements
SAP HANA Cloud Introduction Academy or Basic Trial registration.
Setup and Installation
Beginning with setup via SAP Business Application Studio (BAS) and Jupyter notebook provided, execute the Python code installing libraries needed.
- hdbcli
The Python Database API Specification v2.0 (PEP 249) defines a set of methods that provides a consistent database interface independent of the actual database being used. The Python extension module for SAP HANA implements PEP 249. Once you install the module, you can access and change the information in SAP HANA databases from Python.
- generative-ai-hub-sdk
With this SAP python SDK you can leverage the power of generative Models like ChatGPT available in SAP Generative AI Hub.
- Folium
Folium builds on the data wrangling strengths of the Python ecosystem and the mapping strengths of the Leaflet.js library. Manipulate your data in Python, then visualize it in a Leaflet map via folium.
- Generative AI Hub configuration
Configure client access to SAP BTP Generative AI foundation-models.
Note Jupyter Notebook kernel needs a restart after installation of libraries.
Known Issues
No known issues.
Contributing
We currently do not accept community contributions.
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.
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
Contributors
History in the atlas
- First seen.
For your agent
- Ref
artifact:sap-samples-sap-genai-hub-with-sap-hana-cloud-vector-engine- JSON
- /artifacts/sap-samples-sap-genai-hub-with-sap-hana-cloud-vector-engine.json
- MCP
- Connecting an agent