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
+106Lines changed: 106 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -667,6 +667,37 @@ These steps help inspect vector collections and documents to confirm successful
667
667
668
668
[OPTION END]
669
669
670
+
[OPTION BEGIN [JavaScript SDK]]
671
+
672
+
We are creating a document-grounding pipeline using SAP AI Core. The pipeline is configured to integrate with Microsoft SharePoint as a data source, enabling AI-driven document processing. This setup allows seamless ingestion of documents from a specified SharePoint site, ensuring efficient data retrieval and processing.
673
+
674
+
**Note:** For this step, we are using the [document grounding module](https://sap.github.io/ai-sdk/docs/js/ai-core/document-grounding) of the SDK so make sure to add the dependency to your project.
console.log('Created Pipeline with ID: ', pipeline.pipelineId);
697
+
```
698
+
699
+
[OPTION END]
700
+
670
701
[OPTION BEGIN [Java SDK]]
671
702
672
703
We are creating a document-grounding pipeline using SAP AI Core. The pipeline is configured to integrate with Microsoft SharePoint as a data source, enabling AI-driven document processing. This setup allows seamless ingestion of documents from a specified SharePoint site, ensuring efficient data retrieval and processing.
@@ -781,6 +812,81 @@ After you have built your orchestration workflow, you can test it to generate ou
781
812
782
813
[OPTION END]
783
814
815
+
[OPTION BEGIN [JavaScript SDK]]
816
+
817
+
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.
818
+
819
+
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.
820
+
821
+
```javascript
822
+
// 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
881
+
groundingRequest:'Is there any complaint?'
882
+
}
883
+
});
884
+
885
+
console.log(groundingResult.getContent());
886
+
```
887
+
888
+
[OPTION END]
889
+
784
890
[OPTION BEGIN [Java SDK]]
785
891
786
892
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.
0 commit comments