-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabricks.yml
More file actions
194 lines (184 loc) · 6.04 KB
/
databricks.yml
File metadata and controls
194 lines (184 loc) · 6.04 KB
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
bundle:
name: coco-agent
variables:
unique_id:
description: "Short identifier to namespace all resources (e.g. your initials)"
default: dev
catalog:
description: "Unity Catalog name for CoCo resources"
default: coco_demo
schema:
description: "Schema for tables and volumes (namespaced by unique_id)"
default: cohort_builder_${var.unique_id}
warehouse_id:
description: "SQL Warehouse ID for query execution"
default: ""
lakebase_instance:
description: "Lakebase instance name for session store"
default: coco-lb-${var.unique_id}
lakebase_database:
description: "Lakebase database name"
default: coco_${var.unique_id}
vs_endpoint:
description: "Vector Search endpoint name (namespaced)"
default: coco-vs-${var.unique_id}
agent_endpoint:
description: "Model Serving endpoint name (namespaced)"
default: coco-agent-${var.unique_id}
app_name:
description: "Databricks App name (namespaced)"
default: coco-${var.unique_id}
environment:
description: "Deployment environment (demo, dev, staging, prod)"
default: demo
num_patients:
description: "Number of patients for synthetic data generation"
default: "10000"
agent_endpoint_url:
description: "URL of the agent Model Serving endpoint (filled per target)"
default: ""
minimal:
description: "If 'true', skip optional resources (Lakebase, Vector Search). Agent deploys against the core stack only — no session persistence, no knowledge RAG."
default: "false"
resources:
jobs:
setup_workspace:
name: CoCo Setup (${var.unique_id})
environments:
- environment_key: default
spec:
client: "1"
tasks:
- task_key: setup
notebook_task:
notebook_path: notebooks/00_setup_workspace.py
base_parameters:
catalog: ${var.catalog}
schema: ${var.schema}
warehouse_id: ${var.warehouse_id}
lakebase_instance: ${var.lakebase_instance}
vs_endpoint: ${var.vs_endpoint}
agent_endpoint: ${var.agent_endpoint}
app_name: ${var.app_name}
agent_repo_volume: ${workspace.file_path}
minimal: ${var.minimal}
environment_key: default
timeout_seconds: 3600
max_concurrent_runs: 1
tags:
workload: coco
env: ${var.environment}
unique_id: ${var.unique_id}
owner: ${workspace.current_user.userName}
run_evaluation:
name: CoCo Evaluation (${var.unique_id})
environments:
- environment_key: default
spec:
client: "1"
schedule:
quartz_cron_expression: "0 0 2 ? * SUN"
timezone_id: UTC
pause_status: PAUSED
tasks:
- task_key: evaluate
notebook_task:
notebook_path: notebooks/02_evaluate.py
base_parameters:
catalog: ${var.catalog}
schema: ${var.schema}
warehouse_id: ${var.warehouse_id}
agent_endpoint: ${var.agent_endpoint}
category: ""
difficulty: ""
environment_key: default
timeout_seconds: 3600
max_concurrent_runs: 1
tags:
workload: coco
env: ${var.environment}
unique_id: ${var.unique_id}
owner: ${workspace.current_user.userName}
teardown_workspace:
name: CoCo Teardown (${var.unique_id})
environments:
- environment_key: default
spec:
client: "1"
tasks:
- task_key: teardown
notebook_task:
notebook_path: notebooks/99_teardown.py
base_parameters:
catalog: ${var.catalog}
schema: ${var.schema}
lakebase_instance: ${var.lakebase_instance}
vs_endpoint: ${var.vs_endpoint}
agent_endpoint: ${var.agent_endpoint}
app_name: ${var.app_name}
confirm_teardown: "YES"
delete_vs_endpoint: "NO"
delete_catalog: "NO"
environment_key: default
timeout_seconds: 1800
max_concurrent_runs: 1
tags:
workload: coco
env: ${var.environment}
unique_id: ${var.unique_id}
owner: ${workspace.current_user.userName}
optimize_dspy:
name: CoCo DSPy Optimization (${var.unique_id})
environments:
- environment_key: default
spec:
client: "1"
schedule:
quartz_cron_expression: "0 0 2 ? * SUN"
timezone_id: UTC
pause_status: PAUSED
tasks:
- task_key: optimize
notebook_task:
notebook_path: notebooks/03_optimize_dspy.py
base_parameters:
catalog: ${var.catalog}
schema: ${var.schema}
warehouse_id: ${var.warehouse_id}
lakebase_instance: ${var.lakebase_instance}
environment_key: default
timeout_seconds: 3600
max_concurrent_runs: 1
tags:
workload: coco
env: ${var.environment}
unique_id: ${var.unique_id}
owner: ${workspace.current_user.userName}
dashboards:
coco_cost_attribution:
display_name: CoCo Cost Attribution (${var.unique_id})
file_path: ./docs/cost-attribution/coco_cost_attribution.lvdash.json
warehouse_id: ${var.warehouse_id}
# parent_path must exist before the bundle Terraform apply runs.
# Pointing at the bundle's own workspace root (auto-created by
# `bundle deploy` itself) avoids the "Path doesn't exist" error
# that every first-time deployer hits on the nested dashboards/
# subfolder.
parent_path: /Workspace/Users/${workspace.current_user.userName}/.bundle/${bundle.name}/${bundle.target}/files
targets:
demo:
default: true
variables:
environment: demo
dev:
variables:
environment: dev
staging:
variables:
environment: staging
prod:
run_as:
service_principal_name: coco-service-principal
variables:
environment: prod
unique_id: prd