Skip to content

Commit bfe0270

Browse files
committed
Nat Lang Logic
1 parent f43f14a commit bfe0270

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

docs/WebGenAI-CLI.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,60 @@ In the prior section, the result was a *recreated* project. If you have customi
8989

9090
 
9191

92+
## Natural Language Logic
93+
94+
As of release 11.2.10, you can declare Natural Language Logic when you create projects, and for existing projects.
95+
96+
> Status: Technology Preview. Current implementation presumes projects are running in the Manager directory.
97+
98+
 
99+
100+
### Create Projects with Logic
101+
102+
As shown below, you can the CLI `als genai` command to designate a prompt file that contains logic.
103+
104+
![Create Projects wit Logic](images/web_genai/logic/new-projects.png)
105+
106+
Note:
107+
108+
1. Logic files can contain derivations and constraints
109+
2. Use 'strict' `entity.attribute` references (e.g, `Employee.TotalSalaries`)
110+
111+
* The system does not recognize implicit references like *sum of employee salaries*
112+
 
113+
114+
3. The system will create model attributes for derived columns. Note these can dramatically improve performance.
115+
116+
 
117+
118+
### Add Logic to Existing Projects
119+
120+
As shown below, in an existing project located under the Manager:
121+
122+
1. Create a prompt such as `docs/logic/check_credit.prompt`
123+
124+
* Create logic files in `docs/logic`
125+
* Use a descriptive name to denote the purpose of the logic
126+
* Your `docs/logic` can contain multiple files; only `.prompt` files are processed
127+
128+
2. In the terminal window:
129+
130+
```bash title='Create logic from docs/logic prompt files'
131+
cd <project root>
132+
als genai-logic
133+
```
134+
135+
3. Your logic is created in `logic/logic_discovery`
136+
137+
Notes:
138+
139+
* See the notes above for creating new projects with logic
140+
* Unlike new projects, columns are not created automatically for derived attributes. You can create these as described in [data model changes](Database-Changes.md){:target="_blank" rel="noopener"}.
141+
142+
![Add logic to Existing Project](images/web_genai/logic/existing-projects.png)
143+
144+
145+
&nbsp;
92146

93147

94148
----
Loading
788 KB
Loading

0 commit comments

Comments
 (0)