You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/ai-core-orchestration-grounding/ai-core-orchestration-grounding.md
+75-7Lines changed: 75 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -895,6 +895,81 @@ After you have built your orchestration workflow, you can test it to generate ou
895
895
896
896
[OPTION END]
897
897
898
+
[OPTION BEGIN [JavaScript SDK]]
899
+
900
+
We are configuring an AI Orchestration Pipeline using SAP AI Core. The pipeline integrates multiple AI modules to process and refine inputs efficiently. This setup enables **document grounding, LLM processing, templating, and content filtering**, ensuring accurate and safe AI-generated responses.
901
+
902
+
The configuration defines a document grounding module that retrieves relevant context from a vector-based repository, a GPT-4o model for response generation, a templating module to structure responses, and Azure Content Safety filters to ensure compliance and content moderation. This orchestration streamlines AI-driven summarization while maintaining reliability and security.
903
+
904
+
```javascript
905
+
// Create an orchestration module config for the model gpt-4o with grounding and filtering
// Create a grounding prompt which will combine the provided user message with the grounding output
964
+
groundingRequest:'Is there any complaint?'
965
+
}
966
+
});
967
+
968
+
console.log(groundingResult.getContent());
969
+
```
970
+
971
+
[OPTION END]
972
+
898
973
[OPTION BEGIN [Java SDK]]
899
974
900
975
We are configuring an AI Orchestration Pipeline using SAP AI Core. The pipeline integrates multiple AI modules to process and refine inputs efficiently. This setup enables **document grounding, LLM processing, templating, and content filtering**, ensuring accurate and safe AI-generated responses.
Adding Grounding significantly enhances the model's ability to provide Accurate and Context-specific responses. Without Grounding, the model generates generic replies, while with grounding, it retrieves precise information from the uploaded document. Screenshots showcasing both responses are provided for comparison.
0 commit comments