Skip to main content

REUSE status

Generative AI Toolkit for SAP HANA Cloud

About this project

Generative AI Client for SAP HANA Cloud is an extension of the existing HANA ML Python client library, mainly focusing on GenAI and related use cases. It includes many leading-edge GenAI related open source libraries and provides seamless integration with HANA ML, HANA vector engine, and other SAP GenAI Hub SDK, see our Introduction, Notebook and Documentation.

Requirements and Setup

The prerequisites for using the Generative AI Toolkit for SAP HANA Cloud are listed at Prerequisites.

The Generative AI Toolkit for SAP HANA Cloud is available as a Python package. You can install it via pip:

pip install hana-ai

ContextAgent

The toolkit includes a file-based ContextAgent for conversational forecasting and data-preparation workflows with Markdown-backed memory, tool calling, and runtime-selectable skills.

Core ContextAgent skills include:

  • data_ingestion_and_dataset_preparation for CSV import and time-ordered train, test, and validation table creation
  • timeseries_data_profiling for dataset reports and statistical checks before model selection
  • timeseries_forecasting for single-series train, predict, score, and plot workflows
  • prediction_result_analysis for predicted-versus-actual comparison and quality analysis
  • outlier_detection_and_repair_prep for anomaly inspection before model training
  • massive_forecasting for grouped forecasting across many related series
  • model_lifecycle_and_artifacts for listing, deleting, and packaging saved models
  • hana_dataframe_fallback for SQL and restricted Python fallback transformations

Tools

The toolkit exposes HANAML-oriented tools for data preparation, profiling, forecasting, evaluation, artifact generation, and grouped forecasting workflows.

Core forecasting and analysis tools include:

  • import_csv_to_table, split_table_for_forecasting, fetch_data
  • ts_dataset_report, ts_check, stationarity_test, trend_test, seasonality_test, white_noise_test
  • automatic_timeseries_fit_and_save, automatic_timeseries_load_model_and_predict, automatic_timeseries_load_model_and_score
  • additive_model_forecast_fit_and_save, additive_model_forecast_load_model_and_predict, intermittent_forecast
  • ts_outlier_detection, ts_make_future_table, forecast_line_plot, accuracy_measure
  • list_models, delete_models, cap_artifacts, hdi_artifacts
  • SelectStatement_to_table, python_hanaml_exec

Grouped and massive forecasting tools include:

  • massive_ts_check, massive_ts_outlier_detection
  • massive_automatic_timeseries_fit_and_save, massive_automatic_timeseries_load_model_and_predict, massive_automatic_timeseries_load_model_and_score
  • massive_additive_model_forecast_fit_and_save, massive_additive_model_forecast_load_model_and_predict
  • ts_make_future_table_for_massive_forecast

See the ContextAgent notebook for an end-to-end example at nutest/testscripts/demo/e2e_scenarios/context_agent.ipynb.

Support, Feedback, Contributing

This project is open to feature requests/suggestions, bug reports etc. via GitHub issues. Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines.

Security / Disclosure

If you find any bug that may be a security problem, please follow our instructions at in our security policy on how to report it. Please do not create GitHub issues for security-related doubts or problems.

Code of Conduct

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.

Licensing

Copyright 2026 SAP SE or an SAP affiliate company and generative-ai-toolkit-for-sap-hana-cloud contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.

Metadata

Release files for hana-ai 1.1.26071400

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hana-ai 1.1.26071400
File Size Uploaded Provenance
hana_ai-1.1.26071400.tar.gz 415.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hana-ai 1.1.26071400
File Interpreter ABI Platform
hana_ai-1.1.26071400-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / hana_ai-1.1.26071400.tar.gz

Download URL hana_ai-1.1.26071400.tar.gz
Size 415.0 kB
Tags Source
SHA-256 checksum
How to use checksums
80c8ffe9f25f5a2468fe295f78a82be1d7351b776730ed07ee4d6a74ba60c37a
BLAKE2b-256 checksum
How to use checksums
e3223054739db01f1720006bb043d81e94fc69f33de5e978e3bbc686ddc11108
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 14, 2026.

Transparency log

Release files / hana_ai-1.1.26071400-py3-none-any.whl

Download URL hana_ai-1.1.26071400-py3-none-any.whl
Size 698.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2736e005744d1391bbff5a69fd2d0104d29099d1c4e731b87e08189123e6e19
BLAKE2b-256 checksum
How to use checksums
79780b110a4b350361c7101e66805d0917b9ee5bc0dbe1379056d9a2e51bb459
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 14, 2026.

Transparency log

Security for hana-ai 1.1.26071400

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hana_ai-1.1.26071400.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page