Skip to content

Commit 1e0d99a

Browse files
committed
update cmt
1 parent a8a9953 commit 1e0d99a

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

docs/IDE-Rebuild-Test-Data.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
!!! pied-piper ":bulb: TL;DR - Rebuild Test Data"
22

3-
Proper rule operation requires existing data be correct - see [Data ModelD esign](Data-Model-Design){:target="_blank" rel="noopener"}.
3+
Proper rule operation requires existing data be correct - see [Data ModelD esign](Data-Model-Design){:target="_blank" rel="noopener"}.
44

5-
ChatGPT sometimes fails to properly compute the tests data. You can rebuild your test data to match the derivation rules by using `genai-utils --rebuild-test-data`.
5+
ChatGPT sometimes fails to properly compute the tests data. You can rebuild your test data to match the derivation rules by using `genai-utils --rebuild-test-data`.
66

77

8+
## Overview
9+
Basic operation:
10+
11+
1. Builds database/test_data/test_data.py from docs/response.json
12+
2. Runs it to create database/test_data/db.sqlite
13+
3. Copies database/test_data/db.sqlite to database/db.sqlite
14+
15+
 
16+
17+
## Example
18+
819
Fixes project issues by rebuilding the database to conform to the derivation rules:
920

1021
1. Create genai_demo: `als genai --using=system/genai/examples/genai_demo/genai_demo.prompt --project-name=genai_demo`
@@ -13,5 +24,5 @@ Fixes project issues by rebuilding the database to conform to the derivation rul
1324
cd genai_demo
1425
als genai-utils --rebuild-test-data
1526
```
16-
27+
1728
 

0 commit comments

Comments
 (0)