Skip to content

Commit f42ecff

Browse files
committed
take ai out to the wood shed
1 parent 12a46d1 commit f42ecff

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

docs/index.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ First, GenAOI creates only the database. It does not create the microservice, t
117117

118118
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.
119119

120-
In most cases, AI responses simply ignore the logic requirement. Attempts to address it fall in 2 categories: triggers and 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.
121121

122122
 
123123

@@ -154,9 +154,9 @@ Addressing this level of logic is why rules are 40X more concise than code.
154154

155155
 
156156

157-
**Logic Bank Code**
157+
**Logic Bank Code, without context**
158158

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:
160160

161161
```python
162162
def declare_logic():
@@ -184,7 +184,15 @@ def declare_logic():
184184
raise Exception(f"Customer {row.name}'s balance exceeds their credit limit.")
185185
```
186186

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.
188196

189197
</details>
190198

0 commit comments

Comments
 (0)