CapabilityAI & AgentsJava, read from its artifacts

RAG on CDS

Answering a question from your own data rather than from what a model remembers — embeddings stored beside the records they describe, and a similarity search that runs where the data already is.

Showing artifacts, examples and content with confirmed Java applicability. View All CAP

Overview

SAP SHIPS

No SAP artifact is confirmed here for Java.

A Java coverage assessment has not been written. View all flavors

THE COMMUNITY ADDS

No community artifact is confirmed here for Java.

A Java coverage assessment has not been written. View all flavors

Licence1

LicenceSAP Developer License Agreement 3.2 CAP§ 3AlwaysCovered SAP materials or a covered CAP customer application are included in training data, model development or model refinement.
  • § 3 Artificial Intelligence Training. The agreement prohibits use of the covered materials and customer applications for training artificial-intelligence models or systems.

Retrieval and inference are not automatically AI training. The section becomes relevant if the indexed or retrieved covered material is instead used for training, developing or refining the model or system.

SAP Developer License Agreement 3.2 CAP →

Artifacts2

2 of 2 artifacts
ArtifactSignals
Services2
SAP AI CoreAI runtime on BTP with the Generative AI Hub
Signals
none
SAP HANA CloudManaged SAP HANA database service on BTP
Signals
Functional boundary

Details

What changed — and what it makes stale1
CAP Java 4.9.0, CAP, Java

Before this, the core's similarity function was HANA's alone, and turning text into a vector at query time meant calling SAP HANA's VECTOR_EMBEDDING directly rather than through a CQL function. CAP Java gained CQL.vectorEmbedding, which calls VECTOR_EMBEDDING for you, and CQL.cosineSimilarity / CQL.l2Distance now work — per capire — as 'Retrieval-augmented generation (RAG) with vector embeddings on all the four databases,' not just HANA. It ships Beta and CAP-Java-only; Node.js has no equivalent. CAP Java 4.9.0 reached Maven Central on 2026-04-23.

Makes stale:

Guidance that the CAP-modelled similarity function only ever runs against HANA, or that turning text into a query-time vector always means a raw HANA call outside CQL — true for CAP Java before April 2026, not since. It does not touch Node.js, and it does not touch chunking or the embed-on-write pipeline, which is still every entry in this capability's own job.

SourceCAP Release April 26 — capirechecked
Coverage
stateunmapped, CAP, Java, derived
also inABAP, BTP/BAIP
Designs that place it1
Integrating and Extending JouleIntegrating and Extending Joulereference architecturedocument grounding in customer-owned content
For your agent
Ref
capability:retrieval-augmented-generation
JSON
/capabilities/retrieval-augmented-generation.json
MCP
Connecting an agent