Skip to main content
SAP SE(Wikipedia) is a German multinational software company. It develops enterprise software to manage business operation and customer relations. The company is the world’s leading enterprise resource planning (ERP) software vendor.

Installation and setup

We need to install the langchain-hana python package.
pip install langchain-hana

Vectorstore

SAP HANA Cloud Vector Engine is a vector store fully integrated into the SAP HANA Cloud database.
See a usage example.
from langchain_hana import HanaDB

Self Query Retriever

SAP HANA Cloud Vector Engine also provides a Self Query Retriever implementation using the HanaTranslator Class.
See a usage example.
from langchain_hana import HanaTranslator

Graph

SAP HANA Cloud Knowledge Graph Engine provides support to utilise knowledge graphs through the HanaRdfGraph Class.
See a usage example.
from langchain_hana import HanaRdfGraph

Chains

A SparqlQAChain is also provided which can be used with HanaRdfGraph for SPARQL-QA tasks. See a usage example.
from langchain_hana import HanaSparqlQAChain

Connect these docs to Claude, VSCode, and more via MCP for real-time answers.