Skip to content

Commit b9dbc95

Browse files
committed
genai_demo notes
1 parent 884d0bd commit b9dbc95

File tree

4 files changed

+11
-14
lines changed

4 files changed

+11
-14
lines changed

Marketing/Articles.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ Issues:
2121
1. Incorrect (chg part, move order)
2222
2. Inefficient (pull all kids)
2323
3. Debug?
24+
4. Omits Data Access, Transactions
2425

25-
Observe:
26+
Also:
2627

2728
1. Obscures intent
28-
2. Omits Data Access, Transactions
29+
2930

3031
### Declarative Logic as DSL
3132

docs/Sample-Genai.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ To create a microservice, identify an existing database, or provide a natural la
2424

2525
Include a notes field for orders.
2626

27-
Enforce the Check Credit requirement (do not generate check constraints):
28-
27+
Use LogicBank to create declare_logic() to enforce the Check Credit requirement (do not generate check constraints):
2928
1. Customer.balance <= credit_limit
3029
2. Customer.balance = Sum(Order.amount_total where date_shipped is null)
3130
3. Order.amount_total = Sum(Item.amount)
@@ -101,7 +100,9 @@ The development environment is also standard: your IDE, standard languages, stan
101100

102101
* **Standard Python:** e.g, to create a new custom endpoint, and send a Kafka message
103102

104-
Explore these below.
103+
> Note: projects are model-driven, resulting in a very small amount of code. This simlifies debugging and customizing your system.
104+
105+
Explore rules and Python customization below.
105106

106107
&nbsp;
107108

@@ -111,16 +112,11 @@ To explore rules:
111112

112113
1. Open `logic/declare_logic.py`
113114

114-
2. Copy the comments to your Copilot window, starting with the line with **GenAI:**
115-
116-
3. Paste them into the Copilot Chat windows
117-
118-
4. Paste the generated code back into `logic/declare_logic.py`. You will need to make a few small repairs:
115+
2. View the Python-based rules created by GenAI
119116

120-
* change *import models* to *import database.models*, and
121-
* change *as_formula* to *as_expression*
117+
> You can add more rules, with Python (code completion), and/or GenAI.
122118
123-
![Add Rules](images/sample-ai/copilot/add-rules.png)
119+
![Add Rules](images/sample-ai/genai/genai-rules.png)
124120

125121
&nbsp;
126122

docs/WebGenAI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Use LogicBank to create declare_logic() to enforce the Check Credit requirement
157157

158158
You can verify this by altering a sample order/item with a very high quantity, and verifying the credit limit is checked. (Note this is not trivial - 3 table transaction.)
159159

160-
> Note: at the time of this writing, the sample data sometimes does not totally reflect the derivation rules. This is under investigation.
160+
> Note: at the time of this writing, the sample data sometimes does not totally reflect the derivation rules. This is under investigation. You can sometimes resolve this using iterations, eg, `please initialize the customer balance properly`.
161161
162162
&nbsp;
163163

740 KB
Loading

0 commit comments

Comments
 (0)