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/index.md
+93-3Lines changed: 93 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,6 @@ Then, **1 command** creates the project (you can also create from an existing da
70
70
als genai --using=genai_demo.prompt
71
71
```
72
72
73
-
74
73
75
74
<detailsmarkdown>
76
75
@@ -88,19 +87,110 @@ The system creates the database, and an executable project providing API and App
88
87
89
88
You can then **customize the project with Python in your IDE.** Create executable **spreadsheet-like rules** from our prompt - 40X more concise than code. Use Python to extend the rules (e.g, to send a Kafka message), and use the framework to create a custom endpoint:
90
89
90
+
<detailsmarkdown>
91
+
92
+
<summary>Customize the Logic and API</summary>
93
+
91
94

92
95
96
+
</details>
97
+
93
98
94
99
95
100
# Pick Up Where Others Leave Off
96
101
97
102
API Logic Server **differentiates** from traditional approaches:
98
103
104
+
* Unlike Frameworks, API Logic Servers preserves full flexibility and standard Dev Tools, with **automation** to eliminate weeks-to-months of complex development.
105
+
106
+
* Unlike Low Code, API Logic Server provides **logic automation,** and preserves the **framework flexibility.**
107
+
108
+
* For systems providing update, logic automation is critical. It's nearly half the effort. The promise of Low Code *requires logic automation.*
109
+
99
110
* Unlike basic GenAI, API Logic Server creates systems from prompts **at the business level**, instead of low-level framework details.
100
111
101
-
* Unlike frameworks, API Logic Servers preserves full flexibility and standard Dev Tools, with **automation** to eliminate weeks-to-months of complex development.
112
+
<detailsmarkdown>
113
+
114
+
<summary>Comparing GenAI with GenAI Automation</summary>
115
+
116
+
As noted above, nearly half the effort in a system is the logic. GenAI provides a simple way to create databases, but does not provide the automation to create the logic.
117
+
118
+
In most cases, AI responses simply ignore the logic requirement. Attempts to address it fall in 2 categories: triggers and Logic Bank code.
119
+
120
+
121
+
122
+
**Triggers**
123
+
124
+
125
+
126
+
The trigger solution typically looks something like this:
127
+
128
+
```sql
129
+
-- Note: The enforcement of the Check Credit requirement is complex and might be better handled in application logic.
130
+
-- However, you can create a stored procedure or use triggers to enforce these rules, keeping in mind the performance implications.
131
+
132
+
-- Example of a trigger to enforce Customer.balance <= credit_limit (simplified version)
133
+
DELIMITER //
134
+
CREATETRIGGERCheckCreditBeforeCustomerUpdate
135
+
BEFORE UPDATEON Customers
136
+
FOR EACH ROW
137
+
BEGIN
138
+
IF NEW.Balance>NEW.Credit_Limit THEN
139
+
SIGNAL SQLSTATE '45000'SET MESSAGE_TEXT ='Customer balance exceeds credit limit.';
140
+
END IF;
141
+
END;
142
+
//
143
+
DELIMITER ;
144
+
```
145
+
146
+
This is simply not a solution: it does not address the triggering event - some change to the order. By contrast, our logic automates about a dozen Use Cases, including:
102
147
103
-
* Unlike Low Code, API Logic Server provides **logic automation,** and preserves the **framework flexibility.**
148
+
* Customer balance is adjusted when the order is inserted, deleted, shipped, or re-assigned.
149
+
150
+
* The orders is adjusted when items are inserted, deleted, or updated with new quantities or different products.
151
+
152
+
Addressing this level of logic is why rules are 40X more concise than code.
153
+
154
+
155
+
156
+
157
+
**Logic Bank Code**
158
+
159
+
160
+
161
+
If we engineer prompt to suggest using Logic Bank (a component of API Logic Server), we get a response like this:
0 commit comments