Skip to content

docs(#2810): HANA-native AI Core embedding setup + grant CREATE PSE - #2844

Merged
jung-thomas merged 1 commit into
DEVfrom
feat/2810-hana-aicore-embedding-setup
Oct 19, 2026
Merged

jung-thomas merged 1 commit into
DEVfrom
feat/2810-hana-aicore-embedding-setup

Conversation

@jung-thomas

Copy link
Copy Markdown
Contributor

Closes part of #2810 — the basic setup to connect our existing AI Core instance to the HANA DB and test VECTOR_EMBEDDING from the DB layer, before any rewrite of Node/CAP embeddings.

What this does

  • db/src/_grants.hdbgrants — grant CREATE PSE to the container user via the existing tutorials-kg-grantor UPS (same pattern as the SPARQL grants).
  • docs/developers/operations/hana-aicore-embeddings.md — setup runbook: built-in NLP tier, AI Core remote-source tier, PSE + sapgenaihub remote-source SQL with DEV worked values, PROD repeat checklist, and an auto-embedding appendix for the later rewrite.
  • docs/superpowers/specs/2026-10-19-…-design.md — design doc with the verified DEV facts.
  • CLAUDE.md — link the runbook.

Verified on DEV (tutorial-system/dev)

  • Tier A (built-in NLP) PROVEN: VECTOR_EMBEDDING('…','DOCUMENT','SAP_GXY.20250407') as the container _RT user → 768-dim REAL_VECTOR. The DB-layer path works today, no AI Core needed.
  • Privilege probe: the _RT user already holds CREATE REMOTE SOURCE; the only missing privilege is CREATE PSE — hence the one-line grant. A standalone CREATE CREDENTIAL object isn't needed for the X509-PSE form.
  • AI Core instance tutorials-aicore / dedicated x509 key hana-ai-core; remote source points at orchestration deployment da6d9c5e3fb50c3d (joule-chat-orchestration).

Not done here (deploy-gated / follow-up)

  • Tier B end-to-end is gated on the CREATE PSE grant actually landing via tutorials-db-deployer — which only succeeds if the grantor holds CREATE PSE WITH ADMIN OPTION. Runbook documents the failure signature + admin fallback. Not yet deployed.
  • PSE/remote source created imperatively are not HDI-managed; converting them to design-time artifacts is a flagged follow-up before any rewrite.

No application code changed; no rewrite of existing embedding features.

Basic setup to connect the existing tutorials-aicore instance to the
tutorials-hana container for DB-native VECTOR_EMBEDDING (issue #2810),
ahead of any rewrite.

- db/src/_grants.hdbgrants: grant CREATE PSE to the container user via
  the existing tutorials-kg-grantor UPS. Capability probe confirmed the
  _RT user already holds CREATE REMOTE SOURCE; CREATE PSE was the only
  missing privilege for the sapgenaihub remote source.
- docs/developers/operations/hana-aicore-embeddings.md: setup runbook
  (built-in NLP tier A, AI Core remote-source tier B, PSE+remote source
  SQL with DEV worked values, PROD checklist, auto-embedding appendix).
  PSE paste step described in prose (no literal PEM markers) to avoid a
  gitleaks private-key false positive.
- docs/superpowers/specs: design doc with verified DEV facts.
- CLAUDE.md: link the runbook in the deep-dive list.

Tier A (built-in SAP_GXY.20250407) verified on DEV: 768-dim vector.
Tier B deploy-gated on the CREATE PSE grant landing via db-deployer.
@jung-thomas
jung-thomas force-pushed the feat/2810-hana-aicore-embedding-setup branch from a47974d to 5e693b1 Compare October 19, 2026 14:47
@jung-thomas
jung-thomas merged commit 71e48fe into DEV Oct 19, 2026
5 checks passed
@jung-thomas
jung-thomas deleted the feat/2810-hana-aicore-embedding-setup branch October 19, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant