From the course: Hands-On AI: RAG using LlamaIndex

Using GitHub Codespaces - LlamaIndex Tutorial

From the course: Hands-On AI: RAG using LlamaIndex

Using GitHub Codespaces

- [Instructor] In this course, we are going to make use of GitHub Codespaces, which is a cloud-based development environment that allows you to code directly from your web browser or a connected IDE without the need for complex local setup. This allows you to save time because you don't need to worry about a local environment setup. Everything just kind of works. It allows you to enhance collaboration with your team because you get a consistent, accessible environment. It also has security and compliance with these isolated and controlled environments. It also lets you seamlessly switch between projects and devices, and you get streamlined workflows that you can make use of, such as code reviews and onboarding. So it's a nice tool that really helps simplify development, enhances collaboration, and improves productivity by giving you a cloud-based, customizable, and a secure development environment that is tightly integrated with GitHub. So you'll get a link to the GitHub repository for this course. Now, to open up a codespace, you click on the green button here that says Code. You'll see two tabs, one for Local, one for Codespaces, and you can go ahead and just create a codespace. I've already got one active here, but you would see something that says Open codespaces. And once you do that, you could stop the codespace, you could change the machine type. There's a number of different things that you could do. The default machine type is 2-core 8 gigabytes of RAM. I'm going to bump this up to a 4-core 16 gigabyte of RAM machine, and we'll go ahead and Update codespace. And we are going to then restart this codespace. So let's go right here, Stop the codespace. And to create a codespace, then we just click right here, create the codespace on main, and it'll take a minute or so for this to build. And we now have a VS code environment running on the cloud. All of the files for the course, all of the course notebooks and all that will be all right here, free to use. You can, of course, clone the repository, run it locally on your own machine if you'd like. You can also run the notebooks in Google Colab if you'd like. There are many options available to you, but for this course, I'm just going to make use of GitHub Codespaces. In the next video, we are going to set up the environment, so I'll see you there, and we'll create our development environment so that we can get started with some code.

Contents