@sap-ai-sdk/document-grounding 1.7.1-20250203013111.0 → 1.7.1-20250204013104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -42,6 +42,11 @@ $ npm install @sap-ai-sdk/document-grounding
|
|
|
42
42
|
The examples below demonstrate the usage of the most commonly used APIs in SAP AI Core document grounding service.
|
|
43
43
|
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).
|
|
44
44
|
|
|
45
|
+
> Ensure that if you define your own resource group, it has the correct label to use the document grounding service.
|
|
46
|
+
> When creating the resource group on SAP AI Launchpad, add the key-value pair label: `document-grounding: true`.
|
|
47
|
+
> Alternatively, you can create the resource group via the orchestration API.
|
|
48
|
+
> 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.
|
|
49
|
+
|
|
45
50
|
### Create a Collection
|
|
46
51
|
|
|
47
52
|
```ts
|
|
@@ -51,7 +56,7 @@ const response =
|
|
|
51
56
|
{
|
|
52
57
|
title: 'ai-sdk-js-e2e',
|
|
53
58
|
embeddingConfig: {
|
|
54
|
-
modelName: 'text-embedding-ada-002
|
|
59
|
+
modelName: 'text-embedding-ada-002'
|
|
55
60
|
},
|
|
56
61
|
metadata: []
|
|
57
62
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ai-sdk/document-grounding",
|
|
3
|
-
"version": "1.7.1-
|
|
3
|
+
"version": "1.7.1-20250204013104.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"internal.d.ts"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@sap-ai-sdk/core": "^1.7.1-
|
|
23
|
+
"@sap-ai-sdk/core": "^1.7.1-20250204013104.0"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"compile": "tsc",
|