So guys now let's start our project implementation.
So here you can see I've created one folder called as Long Chain Projects.
And my plan is to probably create all the projects inside this.
So the first one is a Q&A chat bot okay we are going to specifically use this.
Uh let me double click inside this and I need to probably start my project solution from here.
Right.
So what I will do I will open my VS code from here.
I'll copy this path.
I will open my command prompt okay.
Okay.
Now I will go to my specific path.
That is nothing but e drive.
Okay?
And I'll say, hey, uh, CD, go to E drive.
Then you have this Udemy final.
Okay.
So let me just go ahead and write it down.
Udemy final.
Okay.
CD.
Uh.
or.
Udemy.
Final.
Okay, I'm going to this part.
I'll go step by step, see everything.
I'm not going to hurry burry in this, so please make sure that you follow along with me.
Okay?
I'm going to my long chain projects and then finally going to my CD one Q&A chat bot.
Okay, once I go over here now what I'm actually going to do is that I need to open my VS code from
here, right?
See this is the path, right?
Udemy Final Action Projects one Q and a chat bot.
So I've just step by step went into that particular folder.
And I'm going to start my project from here.
Now in order to start the VS code I'll write code dot and automatically my VS code will get started.
Right.
So this is the first step over here.
What we have basically done.
Now I will go ahead and implement my project over here initially to start with what we need to do is
that open my terminal.
Right.
So there are multiple ways how you can open a terminal.
First of all uh, here you can see there is a button called as terminal which you can specifically open
it.
Otherwise I usually use a shortcut wherein I press control, um, or just Google.
Right.
What is the shortcut to open the terminal?
Right.
I'll give you this as an assignment.
Okay.
It will be up to you.
Come on.
Now you are implementing generative AI solutions.
So I think you should be able to understand how things work over here.
Right now.
Here is my terminal.
Okay.
Now the first step what I'm actually going to do I will open command prompt over here.
You can also go ahead and do it in uh PowerShell.
So here I'll write on conda create minus p v and v.
This will be my environment.
I will go ahead and use Python double equal to 3.10 okay.
You can use 3.11 also.
But uh I will go ahead and use 3.10.
It is up to you whichever Python version you want to run with or you ought to work with.
Right.
But I'm going to work all my projects with 3.10 and I.
The reason is very simple, because I'm going to do some more complex projects in the future, um,
in this series itself.
And, uh, there you'll be able to see that, uh, there will be some dependency with this particular
Python, uh, version.
Okay.
So let me just go ahead and do this.
And here the entire environment will get created quickly once the environment is basically getting created.
Uh, I will probably start my entire things.
Okay.
And then you will also be able to see that once this project is basically getting created, right.
Uh, we will be seeing that how okay, how we can also make sure that we have to update our requirement
dot txt.
So here is my v and v folder that is getting created.
It may take some time and I will go ahead and write dot e and v.
And then I'll just go ahead and say requirement dot sorry requirement dot txt.
So two more files I'm going to create it Okay.
Please note one thing that I'm not going to repeat this step, uh, step of creating the environments
again for the other projects, but I hope you should be able to understand till here.
Now, in requirements.txt, I'm just going to go ahead and update some of the libraries that I'm actually
going to use.
Okay.
Since we are going to work with OpenAI.
So obviously we need to have Lang in OpenAI.
So I'll go ahead and copy this.
okay.
Along with that I will also be requiring uh, different different libraries like, uh, you know, I
can actually have want pandas, numpy and all.
I will also may require that based on this what all things are what are basic libraries are there.
I'll go ahead and write long chain.
Then I will go ahead and use python dot env so that I can play with the environment variable.
Then uh, along with this I will just go ahead and write lang chain.
Lang chain.
Underscore community.
Okay.
I'm also going to use this.
Other than that, whatever new libraries that I will be requiring I will try to install it.
Okay.
So quickly I will just go ahead over here and go ahead and write pip install minus r requirements.txt.
Okay.
So once I do this here all the requirement dot txt will get installed which is good enough.
And here you'll be able to see that whatever things you really want, you can go ahead and probably
install as per your, uh, requirements, right?
Um, so here you can see chrome dev requires uvicorn.
This this this error is basically coming.
Did I not activate the environment okay.
So this is one of the mistake that I have actually done.
See that this is the problem and many people will also face this.
So I'm not going to edit this part because we are facing some problem.
The the reason is very simple.
I did not activate my V environment.
So let me just go ahead and activate conda, activate v and v environment.
Once we activate this here now we can go ahead and write our pip install minus our requirement dot txt.
Now I don't think so.
It should give us any errors and automatically the installation of this library should happen.
Okay.
And, uh, this is what we are doing to do the first step.
So Lankan community everything is getting installed whatever things are basically required.
Okay I just missed one more thing.
I don't know whether, uh, with respect to Lankan underscore community, whether Lankan underscore
core will also get installed.
Okay.
So that also will try to see we'll try to because this library is also required Lange chain underscore
core because they are some of the important libraries that we are going to use from this.
Okay.
So uh, let's see how much time it will probably take.
And uh, in the environment variable.
Now there are some important information that I really need to put up okay.
So environment variable I will go ahead and use my Lang chain API key okay.
So I hope everybody knows how to create the Lang chain API key which has been explained already in the
previous module.
So I will just go ahead and write my chain API key over here.
Why I'm not using OpenAI API key?
Because I'm trying to create a project wherein from the front end, I'll directly try to give the opening
AI API key.
Okay, so right now I just require lang chain API key.
So this is now getting loaded and this is executed.
Let me do one more thing.
Let me again go ahead and install this requirement dot txt because I had included one library.
But I think because of the lang chain underscore community, automatically it made sure that this lang
chain underscore core will also get installed.
So this is the first basic steps that we really need to do for each and every project.
Okay, one more thing I can probably go ahead and do is also make sure that at Streamlit over here,
because I will be working with Streamlit.
Okay.
So Streamlit quickly pip install r requirements.txt and then my streamlit will also get installed.
It will also take some amount of time because this is the framework that we have basically going to
use.
Okay.
Uh, now in this video what all things we basically did, we set up our environment variable, we set
up, we created a new environment, we activated the new environment, and we installed all the libraries
that is required in the requirements.txt.
Now in the next video, uh, once this installation takes place, we will go ahead and develop our first
application.
And here I'm just going to go ahead and write app Dot Pi.
Okay.
So perfect.
Uh till here I think everything looks good.
And uh, we are good to go with respect to this.
So let's see you all in the next video where I'll discuss, uh, more things as we go ahead.
So yes, this was it for my side.
Thank you.
I'll see you all in the next video.