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.

Vectorstore

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

Self Query Retriever

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

Graph

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

Chains

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

Agents

A HanaSparqlQAAgent can generate and execute SPARQL queries iteratively over HanaRdfGraph, including ontology retrieval and self-correction. See a usage example.