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/Manager.md
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,28 @@ The default IDE is VSCode. You can specify your favorite IDE, e.g.
20
20
als start charm
21
21
```
22
22
23
+
24
+
25
+
## Pre-created projects
26
+
27
+
We have pre-created 2 important projects you will want to review at some point:
28
+
29
+
*[tutorial](https://apilogicserver.github.io/Docs/Tutorial/) - short (< 1 hour) walk-through of using API Logic Server using the northwind (customers, orders...) database
30
+
* sample - the completed tutorial. It's the same database, but with logic/Python ***customizations added***. It's a great resource for exploring.
31
+
32
+
* Hint: use your IDE to search for `#als`
33
+
34
+
You can always re-create them as follows:
35
+
36
+
1. Open a terminal window (**Terminal > New Terminal**), and paste the following CLI command:
To save time, issue the follow command to mimic changes you might make in your IDE, e.g., to send Kafka messages.
86
+
To save time, issue the follow command to simulate changes you might make in your IDE, e.g., to send Kafka messages.
84
87
85
88
```bash title="Mimic IDE Customization"
86
89
als genai-cust
87
90
```
88
91
89
92
90
93
91
-
## Restart if AI Fails
94
+
## Explore Deployment, for Collaboration
95
+
96
+
One of the best ways to de-risk projects is to verify the sponsors are in sync with what is happening. This is best addressed with *working software*, which often occurs project. Issues here can result in considerable rework... and frustrations.
97
+
98
+
GenAI Automation produces *working software, **now***, so you can find misunderstanding before investing serious effort ("fail fast"). To expose the working software, it's often desirable to deploy to the cloud.
92
99
93
-
AI results are not consistent, so the model file may need corrections. You can find it at `system/genai/temp/model.py`. You can correct the model file, and then run:
100
+
API Logic Server creates the `devops` directory, which scripts to containerize your project, and deploy it to Azure. For more information, see [DevOps Automation](DevOps-Automation.md).
101
+
102
+
## Appendices
103
+
104
+
105
+
106
+
### GenAI Restart Procedures
107
+
108
+
AI results are not consistent, so the created model file may need corrections. You can find it at `system/genai/temp/model.py`. You can correct the model file, and then run:
94
109
95
110
```bash
96
111
als create --project-name=genai_demo --from-model=system/genai/temp/model.py --db-url=sqlite
@@ -111,10 +126,11 @@ We have seen failures such as:
111
126
* bad test data creation: with Engine() as engine...
112
127
* Bad load code (no session)
113
128
114
-
115
129
116
130
117
-
**Postgresql Example**
131
+
### GenAI Using Postgresql
132
+
133
+
The above examples use *s1lite* since it requires no install. The GenAI process works for other database, such as Postgresql.
118
134
119
135
You can test this as follows:
120
136
@@ -128,3 +144,4 @@ als create --project-name=genai_demo_pg.prompt --db-url=postgresql://postgres:p@
0 commit comments