Hello guys.
So we are going to continue the lecture series.
And in this video we will go ahead and set up our entire environment for Lange chain so that we will
be able to start the coding.
Uh, and we'll be seeing multiple applications how to build generative AI applications.
Now, uh, what I have actually planned is that I will probably create just one folder.
Okay.
So let's go ahead and see this.
This will be one folder.
My entire projects will be probably created over here.
And let's say, uh, the end to end projects that I specifically create, I will probably create a different
project folder for them.
Okay.
So go to any folder in any of your drive.
And from this let's go ahead and right click over here and you'll get an option of open with code right.
So here once you do or once you click this with open with code, you'll be able to see that I'll be
having the VS code.
This is one way how you can actually do it.
The other way is that I will just go ahead and copy this path.
Open my command prompt.
Okay.
If you have installed Anaconda and VSCode, so I will just go to this particular command, this particular
path.
So I will just go ahead and write CD this and I'll go to my E drive.
So here you can see that I'm actually I'm, I'm in that same path which I am planning to create my code,
uh, project itself.
So here I will just go ahead and write code dot and automatically my VSCode will open.
So these are two different ways how you can probably start your VS code.
Okay, so I've done this and now my entire coding will specifically be happening over here.
Uh let me do one thing.
Uh, let me just make this as a full screen.
Now let us go ahead and first of all, create one virtual environment, since in Lang chain this, all
the things that we are going to probably discuss, it will be related to Lang Chain.
So it is always necessary that you create your own virtual environment.
And with respect to that specific virtual environment, we will try to do all the installations and
we'll try to probably see what all packages will be required and many more things.
Now, uh, since, uh, I don't know, like how many of you are familiar with working with VS code or
not, but VS code, I feel is an amazing IDE wherein you'll be able to create projects, you'll be able
to work with Jupyter Notebook and many more things.
So here, uh, what I'm actually going to do, first of all, uh, here you can see that first of all,
you need to go ahead and open your terminal.
Right.
So in this terminal we will go ahead and create our, uh, virtual environment.
Now one way is that I can directly go over here, click on the terminal and click on New Terminal.
So this is one way, but, uh, my entire session I will try to use some shortcuts in VS code.
I just will press control back symbol okay.
So control plus back symbol.
And automatically I'll be able to see that okay.
This is my terminal over here okay.
So you can also go ahead and probably, um, just open this terminal by using shortcut so that you'll
be much more efficient while working on the project itself.
Now here you have multiple options like PowerShell get bash command prompt, JavaScript debug terminal.
So whatever thing you really want to go ahead with, you can go ahead again in Mac.
You'll be having uh, another uh, terminal itself.
So you can probably check with respect to the kind of system that you have.
But here I'm just going to go ahead and open command terminal.
Okay.
So this will basically be my command terminal.
Now I am going to as I said, I'm going to probably go ahead and create my own virtual environment.
So first of all, what I'm actually going to do I'll just go ahead and write conda create minus p v
and v will be my virtual environment.
I will just go ahead and use my Python version 3.10 uh, 3.10 I'm using because, uh, the most of the
stable libraries that are there, I think it is compatible to Python 3.10, and I think it is also 3.11
in 3 .12.
They are still a lot of developments that are specifically happening.
New things are coming.
So once that actually becomes stable you can also work with that.
So I'm just going to go ahead with Python double equal to 3.10.
And here along with this I will also say by default y so that what are the default installation that
is going to probably take place with respect to this particular virtual environment that is going to
happen.
So this virtual environment in this, I will probably go ahead and do all the installation that I really
want to work with the long chain.
Okay.
So here you can see this entire uh folder and packages will get installed.
And this is my v env environment.
And you can see slowly everything is basically getting installed.
So till this is getting installed, I will just go ahead and go ahead and create my requirements dot
txt requirements dot txt okay now inside this requirement dot txt.
Now you can see that my environment has got created.
So here I'm just going to use one library that is called as Lang Chin.
Yeah.
I'm also going to install different different libraries in Lang Chin.
Also uh you'll be seeing like Lang Chin underscore community and all will understand why it is basically
used.
And then we will go ahead and do the installation.
So right now I just required Langton to show you that how you can probably go ahead with the installation
in this requirement.
Dot txt now once my virtual environment is created.
So here you can see this is my V and V folder.
I will go ahead and activate this particular environment.
So let's go ahead and activate this.
So here I'm going to write conda activate v and v.
And here is my virtual environment okay.
Now already my packages have been, uh, I've written that in the long chain itself.
So let me quickly go ahead and clear my screen and let me just go ahead and write pip install minus
our requirement dot txt.
So here you'll be able to see okay install I have written double s.
So let me just go ahead and do the requirement dot txt installation.
So automatically you'll be able to see lang chain lang chain core.
All these installation will automatically happen.
Okay.
Uh, so once this installation basically happens, we are good to start our long chain project.
So and even we'll be starting multiple modules in long chain where we'll be discussing step by step
and how you can specifically use it.
Uh, along with long chain.
I would also like to probably install one more package, which I have already discussed in my Python
module, which is nothing but Ipykernel.
Now Ipykernel is something which we are going to use it only to make sure that we will be able to create
a select a kernel for our Jupyter notebook file.
Initially, all the topics that we are going to learn will be mostly through Jupyter Notebook.
But later on, once we get our fundamental or basics clear, we will also be developing end to end projects.
So yes, this was all the steps that we really need to do in order to create our virtual environment.
Now I will just go ahead and probably create my first module.
Whatever things I really want to do develop over here with respect to long chain.
And inside this, let's say I want to go ahead and probably work with Ipynb file.
So I will just go ahead and create one file and I'll start my work, which I am going to probably show
you in the next video.
Right?
So yes, this was it from my side.
Uh, in this particular video, I've shown you how you can actually go ahead and create a virtual environment.
Along with that.
What?
All requirements.txt.
I just used one packages and as we go ahead we will be using multiple packages.
And after that we'll also go ahead with the installation.
Uh, I have also created the entire, uh, you know, the virtual environment by just using conda create
minus p v and v Python with 3.10.
And I've just used dash y so that whatever is the default installation that will happen.
So yes this was it for my side.
I hope you like this particular video.
I will see you all in the next video.
Thank you.