Skip to content

Commit 98bc743

Browse files
committed
Initial
1 parent 81e7996 commit 98bc743

File tree

1 file changed

+109
-0
lines changed

1 file changed

+109
-0
lines changed

docs/blog/Introducing.md

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# Introducing the SAP Cloud SDK for AI (Java) 🎉
2+
3+
SAP Managed Tags: Artificial Intelligence, JavaScript, SAP AI Core, SAP AI Launchpad, SAP Cloud SDK, SAP Business Technology Platform
4+
5+
---
6+
7+
We’re thrilled to present the initial release of the [SAP Cloud SDK for AI](https://github.com/SAP/ai-sdk-java#readme) for Java!
8+
This SDK enables integration of generative AI capabilities within your SAP Business Technology Platform (BTP) applications and allows you to utilize the [Generative AI Hub](https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/generative-ai-hub-in-sap-ai-core) in [SAP AI Core](https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/what-is-sap-ai-core).
9+
10+
For SAP BTP developers, the SAP Cloud SDK for AI is crafted to simplify AI integration and enhance application impact. With features that optimize deployment, improve content safety, and facilitate model orchestration, this SDK lets you bring advanced AI functionality to your applications swiftly and with minimal setup. Whether you need adaptable workflows, secure data handling, or smooth generative model integration, this SDK equips you with robust tools to embed AI-powered features in your SAP BTP solutions.
11+
12+
This post introduces the main artifacts and their features.
13+
## AI Orchestration
14+
15+
```xml
16+
<dependency>
17+
<groupId>com.sap.ai.sdk</groupId>
18+
<artifactId>orchestration</artifactId>
19+
<version>1.0.0</version>
20+
</dependency>
21+
```
22+
23+
Use the generative AI Hub orchestration service with our `orchestration` module to set up templating, content filtering, and data masking for your applications.
24+
The orchestration service streamlines AI interactions while ensuring adherence to content safety guidelines.
25+
26+
* Templating: Build dynamic prompts with placeholders to tailor AI interactions to user inputs.
27+
* Content Filtering: Apply filters to maintain compliance with content safety guidelines.
28+
* Data Masking: Anonymize and pseudonymize sensitive data.
29+
* Grounding: Add external data sources for contextually relevant information (planned for Q1 2025).
30+
31+
**Example:** Chat completion. ([more](https://github.com/SAP/ai-sdk-java/blob/main/docs/guides/ORCHESTRATION_CHAT_COMPLETION.md))
32+
```java
33+
var client = new OrchestrationClient();
34+
var config = new OrchestrationModuleConfig().withLlmConfig(LLMModuleConfig.create().modelName("gpt-35-turbo"));
35+
var prompt = new OrchestrationPrompt("Hello world! Why is this phrase so famous?");
36+
var result = client.chatCompletion(prompt, config);
37+
38+
String messageResult =
39+
result.getOrchestrationResult().getChoices().get(0).getMessage().getContent();
40+
```
41+
42+
## AI Management
43+
44+
```xml
45+
<dependency>
46+
<groupId>com.sap.ai.sdk</groupId>
47+
<artifactId>core</artifactId>
48+
<version>1.0.0</version>
49+
</dependency>
50+
```
51+
52+
Automate tasks such as creating artifacts, configurations, and deployments, executing batch inference jobs, as well as managing Docker registries and object storage for training data.
53+
The `core` module provides tools for workflow and scenario management within SAP AI Core.
54+
* Artifact Management: Register and organize datasets and model artifacts.
55+
* Configuration Management: Set up configurations for various models and use cases.
56+
* Deployment Management: Deploy AI models and manage their lifecycle within SAP AI Core.
57+
58+
**Example:** Create a deployment in SAP AI Core. ([more](https://github.com/SAP/ai-sdk-java/blob/main/docs/guides/AI_CORE_DEPLOYMENT.md))
59+
```java
60+
var api = new DeploymentApi();
61+
var resourceGroupId = "default";
62+
var request =
63+
AiDeploymentCreationRequest.create().configurationId("12345-123-123-123-123456abcdefg");
64+
65+
AiDeploymentCreationResponse deployment = api.create(resourceGroupId, request);
66+
String id = deployment.getId();
67+
AiExecutionStatus status = deployment.getStatus();
68+
```
69+
70+
## Generative AI with Foundation Models and OpenAI
71+
72+
```xml
73+
<dependency>
74+
<groupId>com.sap.ai.sdk.foundationmodels</groupId>
75+
<artifactId>openai</artifactId>
76+
<version>1.0.0</version>
77+
</dependency>
78+
```
79+
80+
The `openai` module, along with other artifacts in the `com.sap.ai.sdk.foundationmodels` group, enables streamlined access to specific generative AI models available through the Generative AI Hub.
81+
The module provides a simplified interface focused on direct model interactions, ideal for developers who require direct access to foundation models for inference and embedding requests without additional orchestration features.
82+
83+
**Example:** Simple chat completion. ([more](https://github.com/SAP/ai-sdk-java/blob/main/docs/guides/OPENAI_CHAT_COMPLETION.md))
84+
```java
85+
var result =
86+
OpenAiClient.forModel(GPT_35_TURBO)
87+
.withSystemPrompt("You are a helpful AI")
88+
.chatCompletion("Hello World! Why is this phrase so famous?");
89+
90+
String resultMessage = result.getContent();
91+
```
92+
93+
## Getting Started
94+
95+
You will need _Java 17_ or higher.
96+
_Spring Boot_ or _SAP CAP_ as a framework is recommended, but not required.
97+
To explore these packages further, check out [our sample project](https://github.com/SAP/ai-sdk-java/tree/main/sample-code/spring-app), which shows the usage of the various SDK packages.
98+
99+
## Support and Feedback
100+
101+
We’d love your feedback on this first release! For support or to share your ideas, feel free to open an issue on [GitHub](https://github.com/SAP/ai-sdk-java/pulls).
102+
103+
## Latest News
104+
* [SAP Cloud SDK for AI for JavaScript](https://community.sap.com/t5/technology-blogs-by-sap/introducing-the-sap-cloud-sdk-for-ai-javascript-typescript/ba-p/13892856) released in October 2024.
105+
* Visit [sap.com/ai](https://www.sap.com/products/artificial-intelligence.html) and explore our portfolio
106+
* Explore the available AI capabilities on [SAP Discovery Center](https://discovery-center.cloud.sap/serviceCatalog/sap-ai-core/?region=all).
107+
* Discover the latest announcements in the [SAP TechEd Press Release](https://news.sap.com/?p=228310) and the [SAP TechEd News Guide](https://www.sap.com/events/teched/news-guide.html%22%20/t%20%22_blank).
108+
* Review the [SAP Road Map Explorer](https://roadmaps.sap.com/board?range=FIRST-LAST&PRODUCT=73554900100800003641&PRODUCT=73555000100800003283%22%20\l%20%22Q3%202024%22%20\t%20%22_blank) for a detailed view of upcoming product innovations.
109+
* Join the [SAP Community](https://pages.community.sap.com/topics/ai-core-artificial-intelligence%22%20/t%20%22_blank) page to connect with experts and share knowledge.

0 commit comments

Comments
 (0)