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: docs/IDE-Import-WebGenAI.md
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -72,8 +72,11 @@ Imports are performed from with the dev project, using the `import-genai` CLI co
72
72
cd system/genai/examples/genai_demo/wg_dev_merge/dev_demo_no_logic_fixed
73
73
als genai-utils --import-genai --using=../wg_demo_no_logic_fixed
74
74
```
75
+
Observe:
76
+
1. The [data model](system/genai/examples/genai_demo/wg_dev_merge/dev_demo_no_logic_fixed/database) contains `Customer.balance` and `Product.carbon_neutral`
77
+
2. The test data has been updated to include these attributes, with proper values
75
78
76
-
That will leave things in this state:
79
+
In this example, `als genai-utils --import-genai ...` will leave things in this state:
* It is not advised to paste the code into `logic/declare_logic.py`
303
+
* The suggested logic may result in new data model attributes
304
+
* These are created automatically by running `als genai` (next step)
305
+
306
+
The [logic suggestions directory](genai_demo_no_logic/docs/logic_suggestions) now contains the prompts to create a new project with the suggested logic.
307
+
When you are ready to proceed:
308
+
1. Execute the following to create a *new project* (iteration), with suggested logic:
309
+
310
+
```bash title="4. Create a new project with the Rule Suggestions"
311
+
# 4. Create a new project with the Rule Suggestions
312
+
cd .. # important - back to manager root dir
313
+
als genai --project-name='genai_demo_with_logic' --using=genai_demo_no_logic/docs/logic_suggestions
314
+
```
315
+
316
+
Observe:
317
+
1. The created project has the rule suggestions in`logic/declare_logic.py`
318
+
2. A revised Data Model in`database/models.py` that includes attributes introduced by the logic suggestions
319
+
3. Revised test database, initialized to reflect the derivations in the suggested logic
0 commit comments