-
Notifications
You must be signed in to change notification settings - Fork 38
/
config-schema.json
164 lines (164 loc) · 3.78 KB
/
config-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
{
"$defs": {
"OptimizerConfig": {
"properties": {
"model": {
"description": "Model configuration dictionary specifying the model name, parameters, and other settings used during optimization.",
"title": "Model",
"type": "object"
}
},
"required": [
"model"
],
"title": "OptimizerConfig",
"type": "object"
},
"PromptConfig": {
"properties": {
"identifier": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Identifier for a prompt from the hub repository. Mutually exclusive with prompt_str.",
"title": "Identifier"
},
"prompt_str": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Raw prompt string to optimize locally. Mutually exclusive with identifier.",
"title": "Prompt Str"
},
"model_config": {
"anyOf": [
{
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"description": "Configuration dictionary specifying model parameters for optimization.",
"title": "Model Config"
},
"which": {
"default": 0,
"description": "Index of the message to optimize within the prompt.",
"title": "Which",
"type": "integer"
}
},
"title": "PromptConfig",
"type": "object"
}
},
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"dataset": {
"title": "Dataset",
"type": "string"
},
"initial_prompt": {
"$ref": "#/$defs/PromptConfig"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": "",
"title": "Description"
},
"evaluator_descriptions": {
"anyOf": [
{
"type": "object"
},
{
"type": "null"
}
],
"title": "Evaluator Descriptions"
},
"baseline_experiment": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Baseline Experiment"
},
"optimizer": {
"anyOf": [
{
"$ref": "#/$defs/OptimizerConfig"
},
{
"type": "null"
}
],
"default": null,
"description": "Optimization configuration specifying model settings and hyperparameters. If None, default configuration will be used."
},
"evaluators": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Import path to evaluator functions in format 'file_path:variable_name'. The functions should evaluate prompt quality.\n\nExample:\n ./task/evaluators.py:evaluators",
"title": "Evaluators"
},
"system": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Import path to system configuration in format 'file_path:variable_name'. Defines how prompts are executed.\n\nExample:\n ./task/my_system.py:chain",
"title": "System"
}
},
"required": [
"name",
"dataset",
"initial_prompt",
"evaluators"
],
"title": "Config",
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#"
}