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
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ First, GenAOI creates only the database. It does not create the microservice, t
117
117
118
118
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.
119
119
120
-
In most cases, AI responses simply ignore the logic requirement. Attempts to address it fall in 2 categories: triggersand Logic Bank code.
120
+
In most cases, AI responses simply ignore the logic requirement. Attempts to address it fall in 3 categories: triggers, Logic Bank code with no context, and Logic Bank code*with* context.
121
121
122
122
123
123
@@ -154,9 +154,9 @@ Addressing this level of logic is why rules are 40X more concise than code.
154
154
155
155
156
156
157
-
**Logic Bank Code**
157
+
**Logic Bank Code, without context**
158
158
159
-
If we engineer prompt to suggest using Logic Bank (a component of API Logic Server), we get a response like this:
159
+
If we engineer prompt to suggest using Logic Bank (a component of API Logic Server), we get a response like this if there is no project context:
160
160
161
161
```python
162
162
defdeclare_logic():
@@ -184,7 +184,15 @@ def declare_logic():
184
184
raiseException(f"Customer {row.name}'s balance exceeds their credit limit.")
185
185
```
186
186
187
-
This code does not use Logic Bank APIs. It does not even compile, much less run.
187
+
This code does not use Logic Bank APIs. It does not even compile, much less run. It is, as they say, an hallucination.
188
+
189
+
190
+
191
+
**Logic Bank Code, *With Context***
192
+
193
+
Much better results are obtained when the prompt has available context. Copilot turns our Natural Language requirements into Logic Bank code, requiring only minor adjustments.
194
+
195
+
Of course, the Logic Bank engine (part of API Logic Server) is required for actual execution. Watch it in the video below.
0 commit comments