This repository is the starter for the course Developing Open LLM applications with Apache OpenServerless, also known as The MastroGPT course.
You need an up and running instance of Apache OpenServerless to deploy and run your code.
You can:
-
Ask for a free development account on
openserverless.dev
courtesy of Nuvolaris. Contact us:- on MastroGPT.com using our chatbot
- on Linkedin sending a private message
- on Discord (contact *Michele Sciabarra)
- on Reddit sending a private message to msciabarra
-
Self-host it installing by yourself
First, go to https://github.com/mastrogpt/
then select the pinned mastrogpt-starter
repo (you should already be here):
Now launch the codespace on it:
It takes a bit to download images and starts.
Wait until you see the "openserverless icon", then click on the OpenServerless Icon and finally, click on Login and put your credentials, as follows:
You can recognize below the following icons:
On the vertical Activity Bar to the left:
- Documents icon
- Search icon
- Tests icon
- OpenServerless icon
In the Testing panel:
- Run Tests
- Run One Test
Now, let's check that everything works.
Open the course slides:
- Click Documents icon
- Open
lessons/0-welcome.md
- Click on preview icon
You should see the Apache OpenServerless slides.
Deploy the sample code:
- Click on OpenServerless icon then
- Click on Deploy
Deployment should complete with no errors.
Run the tests:
- Click on the Tests Icon
- Run all the tests
All the tests should pass.
NOTE: if you don't see any test, it may help to:
- open directly a test file under `tests``
- if you still dont's see the tests, reload the window
Now lets check the development mode and the user interface:
OpenServerless
icon thenDevel
button- Open the forwarding
- Click on the "world" icon
- Login into Pinocchio
pinocchio
/geppetto
There are actually plenty of other commands available on the command line.
Open a terminal (Menu: Terminal
| New Terminal
) then try:
- Change the password:
ops ai user update pinocchio
- Redeploy the login
ops ide deploy mastrogpt/login
You are ready!