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
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
+

0 commit comments