|
| 1 | +--- |
| 2 | +title: Lesson 0 |
| 3 | +weight: 10 |
| 4 | +draft: true |
| 5 | +--- |
| 6 | +## Lesson 0 |
| 7 | +transcript here: |
| 8 | +0:00 |
| 9 | +hello everyone and welcome to the course application development with LLM open |
| 10 | +0:06 |
| 11 | +using Apache open serverless a mileage title worthy of Wart Muller but it's the |
| 12 | +0:11 |
| 13 | +Mastro GPT course for friends the first step is: start the environment. |
| 14 | +0:18 |
| 15 | +environment that at this moment I have already started you can do it by simply |
| 16 | +0:23 |
| 17 | +going here on GitHub/mastrogpt and you will find here |
| 18 | +0:29 |
| 19 | +the slide shows it. it says to go to GitHub master GPT you will find the |
| 20 | +0:34 |
| 21 | +starter and from here you have to press the code button and launch the code |
| 22 | +0:39 |
| 23 | +space so you see go to master GPT launch the starter here is this code button and |
| 24 | +0:47 |
| 25 | +here it appears to make a button this one create code space on main I have |
| 26 | +0:52 |
| 27 | +already launched it because otherwise it takes a while to start so you see that |
| 28 | +0:57 |
| 29 | +this is already active it's what I'm working with it's not the only job |
| 30 | +1:01 |
| 31 | +option so you don't have to you are not obliged to use the code space on the web |
| 32 | +1:07 |
| 33 | +because not everyone likes to work in the cloud like I'm doing however but it |
| 34 | +1:12 |
| 35 | +is convenient than both for training and for other reasons for this reason for |
| 36 | +1:19 |
| 37 | +this reason I use it and I recommend you to use it too because it saves you a lot |
| 38 | +1:24 |
| 39 | +a lot of time to configure the things but if you want you can configure yours |
| 40 | +1:28 |
| 41 | +as you want so at this point once launched all this will start and above |
| 42 | +1:33 |
| 43 | +all you will have to have these icons which I'm matting here at the beginning |
| 44 | +1:39 |
| 45 | +the icon icon with the little cloud which actually starts this this |
| 46 | +1:44 |
| 47 | +extension which has the main functions of the and the first button is the login |
| 48 | +1:48 |
| 49 | +button so the first step is to log in to open serverless so the first step is to |
| 50 | +1:54 |
| 51 | +write your name your username and password and log in and then you should |
| 52 | +1:59 |
| 53 | +see this message you successfully logged in you can now use open serless here is |
| 54 | +2:06 |
| 55 | +the message and all therefore first step actually this this I am paying for is |
| 56 | +2:12 |
| 57 | +not the first lesson it is the pre-lessson the zero module to |
| 58 | +2:16 |
| 59 | +initialize to verify that everything works and understand if everything is |
| 60 | +2:20 |
| 61 | +okay in short so if everything is fine you will see the extension you will see |
| 62 | +2:25 |
| 63 | +the login and you can log in and start working let's take a tour of the |
| 64 | +2:30 |
| 65 | +environment so it is important in addition to the little cloud this other |
| 66 | +2:35 |
| 67 | +icon the test tube who it must also show the tests therefore the tests that are |
| 68 | +2:42 |
| 69 | +there however for everything so you should see by clicking on the cloud icon |
| 70 | +2:47 |
| 71 | +the extension clicking on the icon of the test tube you will see the tests and |
| 72 | +2:53 |
| 73 | +then there is one more thing to see this lesson here you will have to go to the |
| 74 | +2:57 |
| 75 | +docs icon on the documents icon you will see the list of all the documents under |
| 76 | +3:03 |
| 77 | +lessons you can find this text which is the slide you only see the source but |
| 78 | +3:09 |
| 79 | +actually just click on preview and you can see the slide real already rendering |
| 80 | +3:15 |
| 81 | +and we also use the source because sometimes we take and use the sources to |
| 82 | +3:21 |
| 83 | +take the exercises etc so it's convenient to have the slide in markdown |
| 84 | +3:26 |
| 85 | +in source so this slide it recapitulates the various parts document test research |
| 86 | +3:34 |
| 87 | +research is useful for example to find points in the source where you need to |
| 88 | +3:40 |
| 89 | +intervene to do the exercises okay then so recapping documents search testing |
| 90 | +3:47 |
| 91 | +the open serverless icon and here are the buttons to perform the tests the |
| 92 | +3:52 |
| 93 | +first step is to deploy then go to the deploy icon that if you don't deploy you |
| 94 | +3:59 |
| 95 | +can't run the tests so now he's taking the initial code and is installing it |
| 96 | +4:06 |
| 97 | +here now you can go here and run the test and therefore everything works |
| 98 | +4:11 |
| 99 | +because the test passes okay now when you work you don't deploy but go into |
| 100 | +4:18 |
| 101 | +development mode which also allows you to see the user interface so now let's |
| 102 | +4:23 |
| 103 | +also try this other feature which is on "devel" will open here too the deployment |
| 104 | +4:30 |
| 105 | +window and now some of you will even see an open button in browser if you don't |
| 106 | +4:35 |
| 107 | +see it this is a bit hidden it is explained in the slide in the slide this |
| 108 | +4:40 |
| 109 | +small detail is explained which is a bit hidden there is this antenna below this |
| 110 | +4:46 |
| 111 | +antenna below simply shows the ports the ports of the services launched then |
| 112 | +4:52 |
| 113 | +devel launches a web server to run the user interface so you simply have to |
| 114 | +4:57 |
| 115 | +click here it opens and to see it this icon of the globe also hidden but there |
| 116 | +5:02 |
| 117 | +is the slide that explains it and here you can log in then you can log in and |
| 118 | +5:07 |
| 119 | +since you are master GPT reference to master Geppetto we have called the user |
| 120 | +5:13 |
| 121 | +interface with great effort of imagination Pinocchio so you can log in |
| 122 | +5:18 |
| 123 | +Pinocchio the default password is already Geppetto the initial password is |
| 124 | +5:24 |
| 125 | +Pinocchio or Geppetto anyway we change it immediately so no problem obviously she |
| 126 | +5:30 |
| 127 | +immediately tells me that she is not sure in fact now I'll show you how to |
| 128 | +5:35 |
| 129 | +change it here in part of the user interface so here I am going to give you |
| 130 | +5:40 |
| 131 | +a tour then this is user interface so all the resort will use Python as a |
| 132 | +5:46 |
| 133 | +programming language but we have developed a user interface that serves |
| 134 | +5:50 |
| 135 | +as a front end for the applications that we will use to make the course but then |
| 136 | +5:55 |
| 137 | +you don't have to modify it because this will remain more or less fixed you will |
| 138 | +6:00 |
| 139 | +simply develop chats so this is the multi-hat application so the first chat |
| 140 | +6:07 |
| 141 | +just to see if everything works is called hello and does nothing but say |
| 142 | +6:12 |
| 143 | +hello to whatever you write to him then hello Michelle Mela hello Mela etc and |
| 144 | +6:19 |
| 145 | +then here there is a chat a little more interesting which is instead the demo of |
| 146 | +6:24 |
| 147 | +the characteristics of Pinocchio of this interface so basically that this |
| 148 | +6:30 |
| 149 | +interface can display code see you can also close this side view so when |
| 150 | +6:37 |
| 151 | +something is produced that it is interesting part of the side view to |
| 152 | +6:41 |
| 153 | +view it or you can view HTML or a chessboard here therefore the support |
| 154 | +6:49 |
| 155 | +for so if I ask form shows me a form and I write on it because it's good we use |
| 156 | +6:58 |
| 157 | +this in the exercises CEO etc and here it gives me the result of the form this |
| 158 | +7:05 |
| 159 | +is fine so you understand that here there is an extendable menu this is the |
| 160 | +7:10 |
| 161 | +menu and there is another thing which is the upload of documents so here you can |
| 162 | +7:15 |
| 163 | +choose a document to upload it i'll show you this later how to use it the side |
| 164 | +7:21 |
| 165 | +display is customizable so you can powerful extend it with your own |
| 166 | +7:25 |
| 167 | +displays and the side view that can be open and closed and with this we have |
| 168 | +7:31 |
| 169 | +seen this sums up the features of our interface last step the terminal because |
| 170 | +7:37 |
| 171 | +we will use a lot of terminal because many many commands are command line and |
| 172 | +7:43 |
| 173 | +therefore for this reason let's start immediately to show the command line |
| 174 | +7:48 |
| 175 | +commands and as a command I show you immediately the terminal opens in |
| 176 | +7:53 |
| 177 | +various ways the easiest way is to go here terminal new terminal and this |
| 178 | +7:59 |
| 179 | +opens a terminal okay here let's do a command right away to change the |
| 180 | +8:05 |
| 181 | +password then the password is actually stored here master GPT packages master |
| 182 | +8:13 |
| 183 | +GPT login users but as you can see it is encrypted so it is not easy to change so |
| 184 | +8:19 |
| 185 | +if I now decide to change the password therefore I give this command |
| 186 | +8:25 |
| 187 | +ops ai user update Pinocchio and I put another password here I changed it here |
| 188 | +8:33 |
| 189 | +I changed my password here the login is customizable so instead of using the |
| 190 | +8:39 |
| 191 | +file you can use anything a database an external system whatever you want and of |
| 192 | +8:45 |
| 193 | +course the easy implementation is that si increase users of the interface are |
| 194 | +8:50 |
| 195 | +in the file that we can change which we have changed but when we change the |
| 196 | +8:55 |
| 197 | +users we also have to redeploy so second command is ops ai deploy master gpt |
| 198 | +9:02 |
| 199 | +login so now he deploys an action to me this is to show that you can otherwise |
| 200 | +9:08 |
| 201 | +you could have gone here do deploy and we deployed them all this serves to make |
| 202 | +9:14 |
| 203 | +it clear which also exist many command line commands that are used to do the |
| 204 | +9:20 |
| 205 | +most advanced things when you work a lot with the command line then for those who |
| 206 | +9:24 |
| 207 | +use code space let me give you a note here on GitHub a piece of advice go here |
| 208 | +9:31 |
| 209 | +go to settings here are code space and here I recommend you to change |
| 210 | +9:37 |
| 211 | +eventually the timeout because there are 120 hours free so you really do a lot |
| 212 | +9:43 |
| 213 | +but it puts you the auto off time at 5 or 10 minutes maximum because otherwise |
| 214 | +9:49 |
| 215 | +it consumes 30 minutes each time and if you forget it you quickly run out of |
| 216 | +9:53 |
| 217 | +credit you can also decide to use and instead of Visual Studio on the web as I |
| 218 | +10:00 |
| 219 | +did you can use the local one so you can change this option in reality it is |
| 220 | +10:05 |
| 221 | +possible also do not use the environment in the cloud but use everything locally |
| 222 | +10:12 |
| 223 | +with docker so you can also install nuvolaris locally instead of use what we |
| 224 | +10:17 |
| 225 | +offer regarding all these things for those who are interested we can do an ad |
| 226 | +10:22 |
| 227 | +hoc lesson in which I show how to install in a different way however for |
| 228 | +10:28 |
| 229 | +the course we have provided this environment ultra simplified which |
| 230 | +10:32 |
| 231 | +should allow everyone to start with practically zero effort then course |
| 232 | +10:38 |
| 233 | +support what is available first of all as a support to the nuvolaris course |
| 234 | +10:44 |
| 235 | +enterprise available to everyone with a free account which as you can see |
| 236 | +10:48 |
| 237 | +includes several services so it includes Redis understands Mino includes postgres |
| 238 | +10:55 |
| 239 | +SQL although in this course I don't think I'll use it you can deploy on AWS |
| 240 | +11:01 |
| 241 | +G-Cloud Azure Akamai on physical servers we for example use Hezner on Ubuntu on Red |
| 242 | +11:08 |
| 243 | +Hat Open Shift so you to get an account on the our open serverless environment |
| 244 | +11:14 |
| 245 | +where you can practice ask now so if you have already written account we |
| 246 | +11:20 |
| 247 | +are already preparing it for you or you can go to the |
| 248 | +11:24 |
| 249 | +mastrogpt.com website where there is a chatbot and you can ask for it here or |
| 250 | +11:29 |
| 251 | +you can contact us on LinkedIn and there you send a message on LinkedIn or you |
| 252 | +11:34 |
| 253 | +can install it yourself on the open serverless site where there is all the |
| 254 | +11:39 |
| 255 | +documentation for the installation so how to install it etc as for support |
| 256 | +11:44 |
| 257 | +there is Discord i ask you and I recommend you to use that so go to |
| 258 | +11:49 |
| 259 | +Discord and here we are there are already the first people this is a brand |
| 260 | +11:54 |
| 261 | +new server this is the second lesson so come and this is where we offer support |
| 262 | +12:00 |
| 263 | +possibly use the Italian channel because the language and then there's always |
| 264 | +12:06 |
| 265 | +Reddit there is also Reddit which is a forum and here you can ask your |
| 266 | +12:11 |
| 267 | +questions and discuss etc so these are the course support options we offer the |
| 268 | +12:17 |
| 269 | +next step and with this I conclude the first module even in reality this as |
| 270 | +12:22 |
| 271 | +mentioned is lesson zero then we will do the first real lesson go still on the |
| 272 | +12:28 |
| 273 | +extension then therefore here you see click on the lessons and here simply |
| 274 | +12:35 |
| 275 | +click on the first lesson so here is downloading all the lessons downloaded |
| 276 | +12:41 |
| 277 | +the lessons and so we are ready to start and move on to the next lesson |
0 commit comments