You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: markdown/sierra-digital-workshop/sierra-digital-workshop.md
+60-11Lines changed: 60 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,15 @@ We'll be tackling each of the components one-by-one with the above as the final
29
29
## Prerequisites
30
30
Duration: 0:10:00
31
31
32
-
Please ensure your environment is ready with the following:
32
+
If using GitHub Codespaces, the only requirement is you need a Github account and an LLM model/key. Navigate to this [GitHub Repo](https://github.com/SolaceDev/solace-developer-workshops/tree/main) to start the Codespace.
33
+
34
+

35
+
36
+
It will take a moment for the Codespace to start up, so let that run in the background.
37
+
38
+
39
+
40
+
If using your own laptop/environment, please ensure it is ready with the following:
33
41
* Solace Cloud trial account
34
42
* GitHub access
35
43
* LLM model & key
@@ -87,6 +95,7 @@ The SAM CLI provides the scaffolding commands to initialize and create SAM compo
87
95
> python --version
88
96
> ```
89
97
98
+
90
99
## Initialize SAM
91
100
Duration: 00:20:00
92
101
@@ -157,6 +166,19 @@ Now back to your terminal window, lets investigate the directories. Open your di
157
166
1. `.env`: environment variables
158
167
1. `.sam`: plugins templates
159
168
169
+
One change we need to make is the artifacts directory. Under your sam-workshop directory, create artifacts.
170
+
```
171
+
mkdir artifacts # < Create the artifacts directory
172
+
```
173
+
174
+
In the shared_config.yaml file, change the artifacts base_path on line 105 to our new directory.
175
+
```
176
+
# Default artifact service configuration
177
+
artifact_service: &default_artifact_service
178
+
type: "filesystem"
179
+
base_path: "artifacts" # < Modify this line
180
+
artifact_scope: namespace
181
+
```
160
182
161
183
## Running SAM
162
184
Duration: 00:10:00
@@ -199,7 +221,7 @@ This command:
199
221
* Installs the sam-sql-database plugin
200
222
* Creates a new agent configuration file at configs/agents/employee-info.yaml
201
223
202
-
In the configuration file, we need to modify the directory path so the agent can find the CSVs for our database tables. Update line 93-94 with the directory of your CSVs.
224
+
In the configuration file that was created with plugin installation, we need to modify the directory path so the agent can find the CSVs for our database tables. Update line 93-94 with the directory of your CSVs.
203
225
```
204
226
csv_files: # Optional: List of CSV file paths to import on startup
205
227
# - "/path/to/your/data/customers.csv"
@@ -208,7 +230,20 @@ In the configuration file, we need to modify the directory path so the agent can
208
230
- "employee-info" # < Add this line
209
231
```
210
232
211
-
The SQL database agent will take the CSVs in the configured directory and create a local SQLite database. Let's put our employees.csv in a directory called employee-info.
233
+
The SQL database agent will take the CSVs in the configured directory and create a local SQLite database. Let's put our employees.csv document in a directory with matching name.
234
+
```
235
+
mkdir employee-info # < Create the employee-info directory
0 commit comments