Skip to content

Commit

Permalink
docs: Adding resource group grounding label (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinRiedelsheimer authored Feb 3, 2025
1 parent 5c248a1 commit ec6a0a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/document-grounding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ $ npm install @sap-ai-sdk/document-grounding
The examples below demonstrate the usage of the most commonly used APIs in SAP AI Core document grounding service.
In addition to the examples below, you can find more **sample code** [here](https://github.com/SAP/ai-sdk-js/blob/main/sample-code/src/document-grounding.ts).

> Ensure that if you define your own resource group, it has the correct label to use the document grounding service.
> When creating the resource group on SAP AI Launchpad, add the key-value pair label: `document-grounding: true`.
> Alternatively, you can create the resource group via the orchestration API.
> For more details, refer to the [Creating a Resource Group for Grounding](https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/create-resource-group-for-ai-data-management?locale=en-US) guide.
### Create a Collection

```ts
Expand All @@ -51,7 +56,7 @@ const response =
{
title: 'ai-sdk-js-e2e',
embeddingConfig: {
modelName: 'text-embedding-ada-002-v2'
modelName: 'text-embedding-ada-002'
},
metadata: []
},
Expand Down

0 comments on commit ec6a0a4

Please sign in to comment.