@datarobot/pulumi-datarobot 0.1.32 → 0.1.34
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 +13 -3
- package/applicationSource.d.ts +22 -10
- package/applicationSource.js +7 -8
- package/applicationSource.js.map +1 -1
- package/customApplication.d.ts +3 -3
- package/customApplication.js +3 -3
- package/customModel.d.ts +60 -0
- package/customModel.js +60 -0
- package/customModel.js.map +1 -1
- package/llmBlueprint.d.ts +50 -0
- package/llmBlueprint.js +18 -0
- package/llmBlueprint.js.map +1 -1
- package/package.json +1 -1
- package/registeredModel.d.ts +12 -0
- package/registeredModel.js +2 -0
- package/registeredModel.js.map +1 -1
- package/types/input.d.ts +48 -0
- package/types/output.d.ts +48 -0
package/README.md
CHANGED
|
@@ -16,11 +16,21 @@ To use from Python, install using `pip`:
|
|
|
16
16
|
pip install pulumi_datarobot
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
###
|
|
19
|
+
### Javscript/Typescript
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
To use from JavaScript or TypeScript in Node.js, install using either `npm`:
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
```bash
|
|
24
|
+
npm install @datarobot/pulumi-datarobot
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
or `yarn`:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
yarn add @datarobot/pulumi-datarobot
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Go
|
|
24
34
|
|
|
25
35
|
Coming soon...
|
|
26
36
|
|
package/applicationSource.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ import * as outputs from "./types/output";
|
|
|
10
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
11
11
|
* import * as datarobot from "@datarobot/pulumi-datarobot";
|
|
12
12
|
*
|
|
13
|
-
* const example = new datarobot.ApplicationSource("example", {
|
|
14
|
-
* "start-app.sh",
|
|
15
|
-
* "streamlit-app.py",
|
|
13
|
+
* const example = new datarobot.ApplicationSource("example", {files: [
|
|
14
|
+
* ["start-app.sh"],
|
|
15
|
+
* ["streamlit-app.py"],
|
|
16
16
|
* ]});
|
|
17
17
|
* export const datarobotApplicationSourceId = example.id;
|
|
18
18
|
* export const datarobotApplicationSourceVersionId = example.versionId;
|
|
@@ -35,9 +35,13 @@ export declare class ApplicationSource extends pulumi.CustomResource {
|
|
|
35
35
|
*/
|
|
36
36
|
static isInstance(obj: any): obj is ApplicationSource;
|
|
37
37
|
/**
|
|
38
|
-
* The list of local file
|
|
38
|
+
* The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
|
|
39
39
|
*/
|
|
40
|
-
readonly
|
|
40
|
+
readonly files: pulumi.Output<any | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
|
|
43
|
+
*/
|
|
44
|
+
readonly folderPath: pulumi.Output<string | undefined>;
|
|
41
45
|
/**
|
|
42
46
|
* The name of the Application Source.
|
|
43
47
|
*/
|
|
@@ -61,16 +65,20 @@ export declare class ApplicationSource extends pulumi.CustomResource {
|
|
|
61
65
|
* @param args The arguments to use to populate this resource's properties.
|
|
62
66
|
* @param opts A bag of options that control this resource's behavior.
|
|
63
67
|
*/
|
|
64
|
-
constructor(name: string, args
|
|
68
|
+
constructor(name: string, args?: ApplicationSourceArgs, opts?: pulumi.CustomResourceOptions);
|
|
65
69
|
}
|
|
66
70
|
/**
|
|
67
71
|
* Input properties used for looking up and filtering ApplicationSource resources.
|
|
68
72
|
*/
|
|
69
73
|
export interface ApplicationSourceState {
|
|
70
74
|
/**
|
|
71
|
-
* The list of local file
|
|
75
|
+
* The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
|
|
76
|
+
*/
|
|
77
|
+
files?: any;
|
|
78
|
+
/**
|
|
79
|
+
* The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
|
|
72
80
|
*/
|
|
73
|
-
|
|
81
|
+
folderPath?: pulumi.Input<string>;
|
|
74
82
|
/**
|
|
75
83
|
* The name of the Application Source.
|
|
76
84
|
*/
|
|
@@ -93,9 +101,13 @@ export interface ApplicationSourceState {
|
|
|
93
101
|
*/
|
|
94
102
|
export interface ApplicationSourceArgs {
|
|
95
103
|
/**
|
|
96
|
-
* The list of local file
|
|
104
|
+
* The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
|
|
105
|
+
*/
|
|
106
|
+
files?: any;
|
|
107
|
+
/**
|
|
108
|
+
* The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
|
|
97
109
|
*/
|
|
98
|
-
|
|
110
|
+
folderPath?: pulumi.Input<string>;
|
|
99
111
|
/**
|
|
100
112
|
* The name of the Application Source.
|
|
101
113
|
*/
|
package/applicationSource.js
CHANGED
|
@@ -14,9 +14,9 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as datarobot from "@datarobot/pulumi-datarobot";
|
|
16
16
|
*
|
|
17
|
-
* const example = new datarobot.ApplicationSource("example", {
|
|
18
|
-
* "start-app.sh",
|
|
19
|
-
* "streamlit-app.py",
|
|
17
|
+
* const example = new datarobot.ApplicationSource("example", {files: [
|
|
18
|
+
* ["start-app.sh"],
|
|
19
|
+
* ["streamlit-app.py"],
|
|
20
20
|
* ]});
|
|
21
21
|
* export const datarobotApplicationSourceId = example.id;
|
|
22
22
|
* export const datarobotApplicationSourceVersionId = example.versionId;
|
|
@@ -50,7 +50,8 @@ class ApplicationSource extends pulumi.CustomResource {
|
|
|
50
50
|
opts = opts || {};
|
|
51
51
|
if (opts.id) {
|
|
52
52
|
const state = argsOrState;
|
|
53
|
-
resourceInputs["
|
|
53
|
+
resourceInputs["files"] = state ? state.files : undefined;
|
|
54
|
+
resourceInputs["folderPath"] = state ? state.folderPath : undefined;
|
|
54
55
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
55
56
|
resourceInputs["resourceSettings"] = state ? state.resourceSettings : undefined;
|
|
56
57
|
resourceInputs["runtimeParameterValues"] = state ? state.runtimeParameterValues : undefined;
|
|
@@ -58,10 +59,8 @@ class ApplicationSource extends pulumi.CustomResource {
|
|
|
58
59
|
}
|
|
59
60
|
else {
|
|
60
61
|
const args = argsOrState;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
resourceInputs["localFiles"] = args ? args.localFiles : undefined;
|
|
62
|
+
resourceInputs["files"] = args ? args.files : undefined;
|
|
63
|
+
resourceInputs["folderPath"] = args ? args.folderPath : undefined;
|
|
65
64
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
66
65
|
resourceInputs["resourceSettings"] = args ? args.resourceSettings : undefined;
|
|
67
66
|
resourceInputs["runtimeParameterValues"] = args ? args.runtimeParameterValues : undefined;
|
package/applicationSource.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicationSource.js","sourceRoot":"","sources":["../applicationSource.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,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BAAgB;AACO,8BAAY,GAAG,qDAAqD,CAAC"}
|
package/customApplication.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
9
|
* import * as datarobot from "@datarobot/pulumi-datarobot";
|
|
10
10
|
*
|
|
11
|
-
* const exampleApplicationSource = new datarobot.ApplicationSource("exampleApplicationSource", {
|
|
12
|
-
* "start-app.sh",
|
|
13
|
-
* "streamlit-app.py",
|
|
11
|
+
* const exampleApplicationSource = new datarobot.ApplicationSource("exampleApplicationSource", {files: [
|
|
12
|
+
* ["start-app.sh"],
|
|
13
|
+
* ["streamlit-app.py"],
|
|
14
14
|
* ]});
|
|
15
15
|
* const exampleCustomApplication = new datarobot.CustomApplication("exampleCustomApplication", {
|
|
16
16
|
* sourceVersionId: exampleApplicationSource.versionId,
|
package/customApplication.js
CHANGED
|
@@ -14,9 +14,9 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as datarobot from "@datarobot/pulumi-datarobot";
|
|
16
16
|
*
|
|
17
|
-
* const exampleApplicationSource = new datarobot.ApplicationSource("exampleApplicationSource", {
|
|
18
|
-
* "start-app.sh",
|
|
19
|
-
* "streamlit-app.py",
|
|
17
|
+
* const exampleApplicationSource = new datarobot.ApplicationSource("exampleApplicationSource", {files: [
|
|
18
|
+
* ["start-app.sh"],
|
|
19
|
+
* ["streamlit-app.py"],
|
|
20
20
|
* ]});
|
|
21
21
|
* const exampleCustomApplication = new datarobot.CustomApplication("exampleCustomApplication", {
|
|
22
22
|
* sourceVersionId: exampleApplicationSource.versionId,
|
package/customModel.d.ts
CHANGED
|
@@ -3,6 +3,66 @@ import * as inputs from "./types/input";
|
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
5
|
* Data set from file
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as datarobot from "@datarobot/pulumi-datarobot";
|
|
12
|
+
*
|
|
13
|
+
* const exampleRemoteRepository = new datarobot.RemoteRepository("exampleRemoteRepository", {
|
|
14
|
+
* description: "GitHub repository with Datarobot user models",
|
|
15
|
+
* location: "https://github.com/datarobot/datarobot-user-models",
|
|
16
|
+
* sourceType: "github",
|
|
17
|
+
* });
|
|
18
|
+
* // set the credential id for private repositories
|
|
19
|
+
* // credential_id = datarobot_api_token_credential.example.id
|
|
20
|
+
* const exampleCustomModel = new datarobot.CustomModel("exampleCustomModel", {
|
|
21
|
+
* description: "An example custom model from GitHub repository",
|
|
22
|
+
* files: [
|
|
23
|
+
* "file1.py",
|
|
24
|
+
* "file2.py",
|
|
25
|
+
* ],
|
|
26
|
+
* targetType: "Binary",
|
|
27
|
+
* targetName: "my_label",
|
|
28
|
+
* baseEnvironmentName: "[GenAI] Python 3.11 with Moderations",
|
|
29
|
+
* });
|
|
30
|
+
* // Optional
|
|
31
|
+
* // source_remote_repositories = [
|
|
32
|
+
* // {
|
|
33
|
+
* // id = datarobot_remote_repository.example.id
|
|
34
|
+
* // ref = "master"
|
|
35
|
+
* // source_paths = [
|
|
36
|
+
* // "model_templates/python3_dummy_binary",
|
|
37
|
+
* // ]
|
|
38
|
+
* // }
|
|
39
|
+
* // ]
|
|
40
|
+
* // guard_configurations = [
|
|
41
|
+
* // {
|
|
42
|
+
* // template_name = "Rouge 1"
|
|
43
|
+
* // name = "Rouge 1 response"
|
|
44
|
+
* // stages = ["response"]
|
|
45
|
+
* // intervention = {
|
|
46
|
+
* // action = "block"
|
|
47
|
+
* // message = "response has been blocked by Rogue 1 guard"
|
|
48
|
+
* // condition = {
|
|
49
|
+
* // comparand = 0.8
|
|
50
|
+
* // comparator = "lessThan"
|
|
51
|
+
* // }
|
|
52
|
+
* // }
|
|
53
|
+
* // },
|
|
54
|
+
* // ]
|
|
55
|
+
* // overall_moderation_configuration = {
|
|
56
|
+
* // timeout_sec = 120
|
|
57
|
+
* // timeout_action = "score"
|
|
58
|
+
* // }
|
|
59
|
+
* // resource_settings = {
|
|
60
|
+
* // memory_mb = 512
|
|
61
|
+
* // replicas = 2
|
|
62
|
+
* // network_access = "NONE"
|
|
63
|
+
* // }
|
|
64
|
+
* export const exampleId = exampleCustomModel.id;
|
|
65
|
+
* ```
|
|
6
66
|
*/
|
|
7
67
|
export declare class CustomModel extends pulumi.CustomResource {
|
|
8
68
|
/**
|
package/customModel.js
CHANGED
|
@@ -7,6 +7,66 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* Data set from file
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as datarobot from "@datarobot/pulumi-datarobot";
|
|
16
|
+
*
|
|
17
|
+
* const exampleRemoteRepository = new datarobot.RemoteRepository("exampleRemoteRepository", {
|
|
18
|
+
* description: "GitHub repository with Datarobot user models",
|
|
19
|
+
* location: "https://github.com/datarobot/datarobot-user-models",
|
|
20
|
+
* sourceType: "github",
|
|
21
|
+
* });
|
|
22
|
+
* // set the credential id for private repositories
|
|
23
|
+
* // credential_id = datarobot_api_token_credential.example.id
|
|
24
|
+
* const exampleCustomModel = new datarobot.CustomModel("exampleCustomModel", {
|
|
25
|
+
* description: "An example custom model from GitHub repository",
|
|
26
|
+
* files: [
|
|
27
|
+
* "file1.py",
|
|
28
|
+
* "file2.py",
|
|
29
|
+
* ],
|
|
30
|
+
* targetType: "Binary",
|
|
31
|
+
* targetName: "my_label",
|
|
32
|
+
* baseEnvironmentName: "[GenAI] Python 3.11 with Moderations",
|
|
33
|
+
* });
|
|
34
|
+
* // Optional
|
|
35
|
+
* // source_remote_repositories = [
|
|
36
|
+
* // {
|
|
37
|
+
* // id = datarobot_remote_repository.example.id
|
|
38
|
+
* // ref = "master"
|
|
39
|
+
* // source_paths = [
|
|
40
|
+
* // "model_templates/python3_dummy_binary",
|
|
41
|
+
* // ]
|
|
42
|
+
* // }
|
|
43
|
+
* // ]
|
|
44
|
+
* // guard_configurations = [
|
|
45
|
+
* // {
|
|
46
|
+
* // template_name = "Rouge 1"
|
|
47
|
+
* // name = "Rouge 1 response"
|
|
48
|
+
* // stages = ["response"]
|
|
49
|
+
* // intervention = {
|
|
50
|
+
* // action = "block"
|
|
51
|
+
* // message = "response has been blocked by Rogue 1 guard"
|
|
52
|
+
* // condition = {
|
|
53
|
+
* // comparand = 0.8
|
|
54
|
+
* // comparator = "lessThan"
|
|
55
|
+
* // }
|
|
56
|
+
* // }
|
|
57
|
+
* // },
|
|
58
|
+
* // ]
|
|
59
|
+
* // overall_moderation_configuration = {
|
|
60
|
+
* // timeout_sec = 120
|
|
61
|
+
* // timeout_action = "score"
|
|
62
|
+
* // }
|
|
63
|
+
* // resource_settings = {
|
|
64
|
+
* // memory_mb = 512
|
|
65
|
+
* // replicas = 2
|
|
66
|
+
* // network_access = "NONE"
|
|
67
|
+
* // }
|
|
68
|
+
* export const exampleId = exampleCustomModel.id;
|
|
69
|
+
* ```
|
|
10
70
|
*/
|
|
11
71
|
class CustomModel extends pulumi.CustomResource {
|
|
12
72
|
/**
|
package/customModel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customModel.js","sourceRoot":"","sources":["../customModel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"customModel.js","sourceRoot":"","sources":["../customModel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,6BAA6B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC,CAAC,SAAS,CAAC;YACpG,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACvD,cAAc,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1D,cAAc,CAAC,0BAA0B,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/D,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAvNL,kCAwNC;AA1MG,gBAAgB;AACO,wBAAY,GAAG,yCAAyC,CAAC"}
|
package/llmBlueprint.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
2
4
|
/**
|
|
3
5
|
* LLMBlueprint
|
|
4
6
|
*
|
|
@@ -17,7 +19,19 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
17
19
|
* description: "Description for the example LLM blueprint",
|
|
18
20
|
* playgroundId: examplePlayground.id,
|
|
19
21
|
* llmId: "azure-openai-gpt-3.5-turbo",
|
|
22
|
+
* promptType: "ONE_TIME_PROMPT",
|
|
20
23
|
* });
|
|
24
|
+
* // Optional
|
|
25
|
+
* // llm_settings {
|
|
26
|
+
* // max_completion_length = 1000
|
|
27
|
+
* // temperature = 0.5
|
|
28
|
+
* // top_p = 0.9
|
|
29
|
+
* // system_prompt = "My Prompt:"
|
|
30
|
+
* // }
|
|
31
|
+
* // vector_database_settings = {
|
|
32
|
+
* // max_documents_retrieved_per_prompt = 5
|
|
33
|
+
* // max_tokens = 1000
|
|
34
|
+
* // }
|
|
21
35
|
* export const exampleId = exampleLlmBlueprint.id;
|
|
22
36
|
* ```
|
|
23
37
|
*/
|
|
@@ -45,6 +59,10 @@ export declare class LlmBlueprint extends pulumi.CustomResource {
|
|
|
45
59
|
* The id of the LLM for the LLM Blueprint.
|
|
46
60
|
*/
|
|
47
61
|
readonly llmId: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* The LLM settings for the LLM Blueprint.
|
|
64
|
+
*/
|
|
65
|
+
readonly llmSettings: pulumi.Output<outputs.LlmBlueprintLlmSettings | undefined>;
|
|
48
66
|
/**
|
|
49
67
|
* The name of the LLM Blueprint.
|
|
50
68
|
*/
|
|
@@ -53,10 +71,18 @@ export declare class LlmBlueprint extends pulumi.CustomResource {
|
|
|
53
71
|
* The id of the Playground for the LLM Blueprint.
|
|
54
72
|
*/
|
|
55
73
|
readonly playgroundId: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The prompt type for the LLM Blueprint.
|
|
76
|
+
*/
|
|
77
|
+
readonly promptType: pulumi.Output<string>;
|
|
56
78
|
/**
|
|
57
79
|
* The id of the Vector Database for the LLM Blueprint.
|
|
58
80
|
*/
|
|
59
81
|
readonly vectorDatabaseId: pulumi.Output<string | undefined>;
|
|
82
|
+
/**
|
|
83
|
+
* The Vector Database settings for the LLM Blueprint.
|
|
84
|
+
*/
|
|
85
|
+
readonly vectorDatabaseSettings: pulumi.Output<outputs.LlmBlueprintVectorDatabaseSettings | undefined>;
|
|
60
86
|
/**
|
|
61
87
|
* Create a LlmBlueprint resource with the given unique name, arguments, and options.
|
|
62
88
|
*
|
|
@@ -78,6 +104,10 @@ export interface LlmBlueprintState {
|
|
|
78
104
|
* The id of the LLM for the LLM Blueprint.
|
|
79
105
|
*/
|
|
80
106
|
llmId?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* The LLM settings for the LLM Blueprint.
|
|
109
|
+
*/
|
|
110
|
+
llmSettings?: pulumi.Input<inputs.LlmBlueprintLlmSettings>;
|
|
81
111
|
/**
|
|
82
112
|
* The name of the LLM Blueprint.
|
|
83
113
|
*/
|
|
@@ -86,10 +116,18 @@ export interface LlmBlueprintState {
|
|
|
86
116
|
* The id of the Playground for the LLM Blueprint.
|
|
87
117
|
*/
|
|
88
118
|
playgroundId?: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* The prompt type for the LLM Blueprint.
|
|
121
|
+
*/
|
|
122
|
+
promptType?: pulumi.Input<string>;
|
|
89
123
|
/**
|
|
90
124
|
* The id of the Vector Database for the LLM Blueprint.
|
|
91
125
|
*/
|
|
92
126
|
vectorDatabaseId?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* The Vector Database settings for the LLM Blueprint.
|
|
129
|
+
*/
|
|
130
|
+
vectorDatabaseSettings?: pulumi.Input<inputs.LlmBlueprintVectorDatabaseSettings>;
|
|
93
131
|
}
|
|
94
132
|
/**
|
|
95
133
|
* The set of arguments for constructing a LlmBlueprint resource.
|
|
@@ -103,6 +141,10 @@ export interface LlmBlueprintArgs {
|
|
|
103
141
|
* The id of the LLM for the LLM Blueprint.
|
|
104
142
|
*/
|
|
105
143
|
llmId: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* The LLM settings for the LLM Blueprint.
|
|
146
|
+
*/
|
|
147
|
+
llmSettings?: pulumi.Input<inputs.LlmBlueprintLlmSettings>;
|
|
106
148
|
/**
|
|
107
149
|
* The name of the LLM Blueprint.
|
|
108
150
|
*/
|
|
@@ -111,8 +153,16 @@ export interface LlmBlueprintArgs {
|
|
|
111
153
|
* The id of the Playground for the LLM Blueprint.
|
|
112
154
|
*/
|
|
113
155
|
playgroundId: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* The prompt type for the LLM Blueprint.
|
|
158
|
+
*/
|
|
159
|
+
promptType?: pulumi.Input<string>;
|
|
114
160
|
/**
|
|
115
161
|
* The id of the Vector Database for the LLM Blueprint.
|
|
116
162
|
*/
|
|
117
163
|
vectorDatabaseId?: pulumi.Input<string>;
|
|
164
|
+
/**
|
|
165
|
+
* The Vector Database settings for the LLM Blueprint.
|
|
166
|
+
*/
|
|
167
|
+
vectorDatabaseSettings?: pulumi.Input<inputs.LlmBlueprintVectorDatabaseSettings>;
|
|
118
168
|
}
|
package/llmBlueprint.js
CHANGED
|
@@ -23,7 +23,19 @@ const utilities = require("./utilities");
|
|
|
23
23
|
* description: "Description for the example LLM blueprint",
|
|
24
24
|
* playgroundId: examplePlayground.id,
|
|
25
25
|
* llmId: "azure-openai-gpt-3.5-turbo",
|
|
26
|
+
* promptType: "ONE_TIME_PROMPT",
|
|
26
27
|
* });
|
|
28
|
+
* // Optional
|
|
29
|
+
* // llm_settings {
|
|
30
|
+
* // max_completion_length = 1000
|
|
31
|
+
* // temperature = 0.5
|
|
32
|
+
* // top_p = 0.9
|
|
33
|
+
* // system_prompt = "My Prompt:"
|
|
34
|
+
* // }
|
|
35
|
+
* // vector_database_settings = {
|
|
36
|
+
* // max_documents_retrieved_per_prompt = 5
|
|
37
|
+
* // max_tokens = 1000
|
|
38
|
+
* // }
|
|
27
39
|
* export const exampleId = exampleLlmBlueprint.id;
|
|
28
40
|
* ```
|
|
29
41
|
*/
|
|
@@ -57,9 +69,12 @@ class LlmBlueprint extends pulumi.CustomResource {
|
|
|
57
69
|
const state = argsOrState;
|
|
58
70
|
resourceInputs["description"] = state ? state.description : undefined;
|
|
59
71
|
resourceInputs["llmId"] = state ? state.llmId : undefined;
|
|
72
|
+
resourceInputs["llmSettings"] = state ? state.llmSettings : undefined;
|
|
60
73
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
61
74
|
resourceInputs["playgroundId"] = state ? state.playgroundId : undefined;
|
|
75
|
+
resourceInputs["promptType"] = state ? state.promptType : undefined;
|
|
62
76
|
resourceInputs["vectorDatabaseId"] = state ? state.vectorDatabaseId : undefined;
|
|
77
|
+
resourceInputs["vectorDatabaseSettings"] = state ? state.vectorDatabaseSettings : undefined;
|
|
63
78
|
}
|
|
64
79
|
else {
|
|
65
80
|
const args = argsOrState;
|
|
@@ -71,9 +86,12 @@ class LlmBlueprint extends pulumi.CustomResource {
|
|
|
71
86
|
}
|
|
72
87
|
resourceInputs["description"] = args ? args.description : undefined;
|
|
73
88
|
resourceInputs["llmId"] = args ? args.llmId : undefined;
|
|
89
|
+
resourceInputs["llmSettings"] = args ? args.llmSettings : undefined;
|
|
74
90
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
75
91
|
resourceInputs["playgroundId"] = args ? args.playgroundId : undefined;
|
|
92
|
+
resourceInputs["promptType"] = args ? args.promptType : undefined;
|
|
76
93
|
resourceInputs["vectorDatabaseId"] = args ? args.vectorDatabaseId : undefined;
|
|
94
|
+
resourceInputs["vectorDatabaseSettings"] = args ? args.vectorDatabaseSettings : undefined;
|
|
77
95
|
}
|
|
78
96
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
79
97
|
super(LlmBlueprint.__pulumiType, name, resourceInputs, opts);
|
package/llmBlueprint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llmBlueprint.js","sourceRoot":"","sources":["../llmBlueprint.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"llmBlueprint.js","sourceRoot":"","sources":["../llmBlueprint.ts"],"names":[],"mappings":";A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,CAAC;YACtD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7F;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AArGL,oCAsGC;AAxFG,gBAAgB;AACO,yBAAY,GAAG,2CAA2C,CAAC"}
|
package/package.json
CHANGED
package/registeredModel.d.ts
CHANGED
|
@@ -59,6 +59,10 @@ export declare class RegisteredModel extends pulumi.CustomResource {
|
|
|
59
59
|
* The ID of the Registered Model Version.
|
|
60
60
|
*/
|
|
61
61
|
readonly versionId: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* The name of the Registered Model Version.
|
|
64
|
+
*/
|
|
65
|
+
readonly versionName: pulumi.Output<string>;
|
|
62
66
|
/**
|
|
63
67
|
* Create a RegisteredModel resource with the given unique name, arguments, and options.
|
|
64
68
|
*
|
|
@@ -88,6 +92,10 @@ export interface RegisteredModelState {
|
|
|
88
92
|
* The ID of the Registered Model Version.
|
|
89
93
|
*/
|
|
90
94
|
versionId?: pulumi.Input<string>;
|
|
95
|
+
/**
|
|
96
|
+
* The name of the Registered Model Version.
|
|
97
|
+
*/
|
|
98
|
+
versionName?: pulumi.Input<string>;
|
|
91
99
|
}
|
|
92
100
|
/**
|
|
93
101
|
* The set of arguments for constructing a RegisteredModel resource.
|
|
@@ -105,4 +113,8 @@ export interface RegisteredModelArgs {
|
|
|
105
113
|
* The name of the Registered Model.
|
|
106
114
|
*/
|
|
107
115
|
name?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* The name of the Registered Model Version.
|
|
118
|
+
*/
|
|
119
|
+
versionName?: pulumi.Input<string>;
|
|
108
120
|
}
|
package/registeredModel.js
CHANGED
|
@@ -65,6 +65,7 @@ class RegisteredModel extends pulumi.CustomResource {
|
|
|
65
65
|
resourceInputs["description"] = state ? state.description : undefined;
|
|
66
66
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
67
67
|
resourceInputs["versionId"] = state ? state.versionId : undefined;
|
|
68
|
+
resourceInputs["versionName"] = state ? state.versionName : undefined;
|
|
68
69
|
}
|
|
69
70
|
else {
|
|
70
71
|
const args = argsOrState;
|
|
@@ -74,6 +75,7 @@ class RegisteredModel extends pulumi.CustomResource {
|
|
|
74
75
|
resourceInputs["customModelVersionId"] = args ? args.customModelVersionId : undefined;
|
|
75
76
|
resourceInputs["description"] = args ? args.description : undefined;
|
|
76
77
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
78
|
+
resourceInputs["versionName"] = args ? args.versionName : undefined;
|
|
77
79
|
resourceInputs["versionId"] = undefined /*out*/;
|
|
78
80
|
}
|
|
79
81
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/registeredModel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registeredModel.js","sourceRoot":"","sources":["../registeredModel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cA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AC,SAAS,CAAC;YACpE,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAhFL,0CAiFC;AAnEG,gBAAgB;AACO,4BAAY,GAAG,iDAAiD,CAAC"}
|
package/types/input.d.ts
CHANGED
|
@@ -33,10 +33,26 @@ export interface CustomModelGuardConfiguration {
|
|
|
33
33
|
* The intervention for the guard configuration.
|
|
34
34
|
*/
|
|
35
35
|
intervention: pulumi.Input<inputs.CustomModelGuardConfigurationIntervention>;
|
|
36
|
+
/**
|
|
37
|
+
* The LLM type for this guard.
|
|
38
|
+
*/
|
|
39
|
+
llmType?: pulumi.Input<string>;
|
|
36
40
|
/**
|
|
37
41
|
* The name of the guard configuration.
|
|
38
42
|
*/
|
|
39
43
|
name: pulumi.Input<string>;
|
|
44
|
+
/**
|
|
45
|
+
* The OpenAI API base URL for this guard.
|
|
46
|
+
*/
|
|
47
|
+
openaiApiBase?: pulumi.Input<string>;
|
|
48
|
+
/**
|
|
49
|
+
* The ID of an OpenAI credential for this guard.
|
|
50
|
+
*/
|
|
51
|
+
openaiCredential?: pulumi.Input<string>;
|
|
52
|
+
/**
|
|
53
|
+
* The ID of an OpenAI deployment for this guard.
|
|
54
|
+
*/
|
|
55
|
+
openaiDeploymentId?: pulumi.Input<string>;
|
|
40
56
|
/**
|
|
41
57
|
* The output column name of this guard.
|
|
42
58
|
*/
|
|
@@ -153,6 +169,10 @@ export interface DeploymentSettingsAssociationId {
|
|
|
153
169
|
* The name of the feature to use as the association ID.
|
|
154
170
|
*/
|
|
155
171
|
featureName: pulumi.Input<string>;
|
|
172
|
+
/**
|
|
173
|
+
* Whether the association ID is required in prediction requests.
|
|
174
|
+
*/
|
|
175
|
+
requiredInPredictionRequests: pulumi.Input<boolean>;
|
|
156
176
|
}
|
|
157
177
|
export interface DeploymentSettingsPredictionsSettings {
|
|
158
178
|
/**
|
|
@@ -168,6 +188,34 @@ export interface DeploymentSettingsPredictionsSettings {
|
|
|
168
188
|
*/
|
|
169
189
|
realTime: pulumi.Input<boolean>;
|
|
170
190
|
}
|
|
191
|
+
export interface LlmBlueprintLlmSettings {
|
|
192
|
+
/**
|
|
193
|
+
* The maximum number of tokens allowed in the completion. The combined count of this value and prompt tokens must be below the model's maximum context size, where prompt token count is comprised of system prompt, user prompt, recent chat history, and vector database citations.
|
|
194
|
+
*/
|
|
195
|
+
maxCompletionLength?: pulumi.Input<number>;
|
|
196
|
+
/**
|
|
197
|
+
* Guides the style of the LLM response. It is a 'universal' prompt, prepended to all individual prompts.
|
|
198
|
+
*/
|
|
199
|
+
systemPrompt?: pulumi.Input<string>;
|
|
200
|
+
/**
|
|
201
|
+
* Controls the randomness of model output, where higher values return more diverse output and lower values return more deterministic results.
|
|
202
|
+
*/
|
|
203
|
+
temperature?: pulumi.Input<number>;
|
|
204
|
+
/**
|
|
205
|
+
* Threshold that controls the selection of words included in the response, based on a cumulative probability cutoff for token selection. Higher numbers return more diverse options for outputs.
|
|
206
|
+
*/
|
|
207
|
+
topP?: pulumi.Input<number>;
|
|
208
|
+
}
|
|
209
|
+
export interface LlmBlueprintVectorDatabaseSettings {
|
|
210
|
+
/**
|
|
211
|
+
* The maximum number of documents to retrieve from the Vector Database.
|
|
212
|
+
*/
|
|
213
|
+
maxDocumentsRetrievedPerPrompt?: pulumi.Input<number>;
|
|
214
|
+
/**
|
|
215
|
+
* The maximum number of tokens to retrieve from the Vector Database.
|
|
216
|
+
*/
|
|
217
|
+
maxTokens?: pulumi.Input<number>;
|
|
218
|
+
}
|
|
171
219
|
export interface VectorDatabaseChunkingParameters {
|
|
172
220
|
/**
|
|
173
221
|
* The percentage of overlap between chunks.
|
package/types/output.d.ts
CHANGED
|
@@ -32,10 +32,26 @@ export interface CustomModelGuardConfiguration {
|
|
|
32
32
|
* The intervention for the guard configuration.
|
|
33
33
|
*/
|
|
34
34
|
intervention: outputs.CustomModelGuardConfigurationIntervention;
|
|
35
|
+
/**
|
|
36
|
+
* The LLM type for this guard.
|
|
37
|
+
*/
|
|
38
|
+
llmType?: string;
|
|
35
39
|
/**
|
|
36
40
|
* The name of the guard configuration.
|
|
37
41
|
*/
|
|
38
42
|
name: string;
|
|
43
|
+
/**
|
|
44
|
+
* The OpenAI API base URL for this guard.
|
|
45
|
+
*/
|
|
46
|
+
openaiApiBase?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The ID of an OpenAI credential for this guard.
|
|
49
|
+
*/
|
|
50
|
+
openaiCredential?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The ID of an OpenAI deployment for this guard.
|
|
53
|
+
*/
|
|
54
|
+
openaiDeploymentId?: string;
|
|
39
55
|
/**
|
|
40
56
|
* The output column name of this guard.
|
|
41
57
|
*/
|
|
@@ -152,6 +168,10 @@ export interface DeploymentSettingsAssociationId {
|
|
|
152
168
|
* The name of the feature to use as the association ID.
|
|
153
169
|
*/
|
|
154
170
|
featureName: string;
|
|
171
|
+
/**
|
|
172
|
+
* Whether the association ID is required in prediction requests.
|
|
173
|
+
*/
|
|
174
|
+
requiredInPredictionRequests: boolean;
|
|
155
175
|
}
|
|
156
176
|
export interface DeploymentSettingsPredictionsSettings {
|
|
157
177
|
/**
|
|
@@ -167,6 +187,34 @@ export interface DeploymentSettingsPredictionsSettings {
|
|
|
167
187
|
*/
|
|
168
188
|
realTime: boolean;
|
|
169
189
|
}
|
|
190
|
+
export interface LlmBlueprintLlmSettings {
|
|
191
|
+
/**
|
|
192
|
+
* The maximum number of tokens allowed in the completion. The combined count of this value and prompt tokens must be below the model's maximum context size, where prompt token count is comprised of system prompt, user prompt, recent chat history, and vector database citations.
|
|
193
|
+
*/
|
|
194
|
+
maxCompletionLength?: number;
|
|
195
|
+
/**
|
|
196
|
+
* Guides the style of the LLM response. It is a 'universal' prompt, prepended to all individual prompts.
|
|
197
|
+
*/
|
|
198
|
+
systemPrompt?: string;
|
|
199
|
+
/**
|
|
200
|
+
* Controls the randomness of model output, where higher values return more diverse output and lower values return more deterministic results.
|
|
201
|
+
*/
|
|
202
|
+
temperature?: number;
|
|
203
|
+
/**
|
|
204
|
+
* Threshold that controls the selection of words included in the response, based on a cumulative probability cutoff for token selection. Higher numbers return more diverse options for outputs.
|
|
205
|
+
*/
|
|
206
|
+
topP?: number;
|
|
207
|
+
}
|
|
208
|
+
export interface LlmBlueprintVectorDatabaseSettings {
|
|
209
|
+
/**
|
|
210
|
+
* The maximum number of documents to retrieve from the Vector Database.
|
|
211
|
+
*/
|
|
212
|
+
maxDocumentsRetrievedPerPrompt?: number;
|
|
213
|
+
/**
|
|
214
|
+
* The maximum number of tokens to retrieve from the Vector Database.
|
|
215
|
+
*/
|
|
216
|
+
maxTokens?: number;
|
|
217
|
+
}
|
|
170
218
|
export interface VectorDatabaseChunkingParameters {
|
|
171
219
|
/**
|
|
172
220
|
* The percentage of overlap between chunks.
|