Rebuild Test Data
TL;DR - Rebuild Test Data
Proper rule operation requires existing data be correct - see Data Model Design
ChatGPT sometimes fails to properly compute the test data. You can rebuild your test data to match the derivation rules by using genai-utils --rebuild-test-data
.
Overview
Basic operation:
- Builds
database/test_data/test_data.py
fromdocs/response.json
- Runs it to create
database/test_data/db.sqlite
- Copies
database/test_data/db.sqlite
todatabase/db.sqlite
Example
Fixes project issues by rebuilding the database to conform to the derivation rules:
-
Create genai_demo:
-
Rebuild: