1
00:00:00,000 --> 00:00:03,000
So guys now let's start our project implementation.

2
00:00:03,000 --> 00:00:06,000
So here you can see I've created one folder called as Long Chain Projects.

3
00:00:06,000 --> 00:00:10,000
And my plan is to probably create all the projects inside this.

4
00:00:10,000 --> 00:00:16,000
So the first one is a Q&A chat bot okay we are going to specifically use this.

5
00:00:17,000 --> 00:00:22,000
Uh let me double click inside this and I need to probably start my project solution from here.

6
00:00:22,000 --> 00:00:22,000
Right.

7
00:00:22,000 --> 00:00:24,000
So what I will do I will open my VS code from here.

8
00:00:24,000 --> 00:00:26,000
I'll copy this path.

9
00:00:26,000 --> 00:00:29,000
I will open my command prompt okay.

10
00:00:29,000 --> 00:00:29,000
Okay.

11
00:00:29,000 --> 00:00:32,000
Now I will go to my specific path.

12
00:00:32,000 --> 00:00:35,000
That is nothing but e drive.

13
00:00:35,000 --> 00:00:36,000
Okay?

14
00:00:36,000 --> 00:00:41,000
And I'll say, hey, uh, CD, go to E drive.

15
00:00:41,000 --> 00:00:44,000
Then you have this Udemy final.

16
00:00:44,000 --> 00:00:44,000
Okay.

17
00:00:44,000 --> 00:00:47,000
So let me just go ahead and write it down.

18
00:00:47,000 --> 00:00:48,000
Udemy final.

19
00:00:49,000 --> 00:00:50,000
Okay.

20
00:00:50,000 --> 00:00:51,000
CD.

21
00:00:52,000 --> 00:00:53,000
Uh.

22
00:00:53,000 --> 00:00:53,000
or.

23
00:00:56,000 --> 00:00:56,000
Udemy.

24
00:00:56,000 --> 00:00:58,000
Final.

25
00:00:58,000 --> 00:00:59,000
Okay, I'm going to this part.

26
00:00:59,000 --> 00:01:02,000
I'll go step by step, see everything.

27
00:01:02,000 --> 00:01:09,000
I'm not going to hurry burry in this, so please make sure that you follow along with me.

28
00:01:09,000 --> 00:01:10,000
Okay?

29
00:01:10,000 --> 00:01:18,000
I'm going to my long chain projects and then finally going to my CD one Q&A chat bot.

30
00:01:18,000 --> 00:01:23,000
Okay, once I go over here now what I'm actually going to do is that I need to open my VS code from

31
00:01:23,000 --> 00:01:24,000
here, right?

32
00:01:24,000 --> 00:01:26,000
See this is the path, right?

33
00:01:26,000 --> 00:01:29,000
Udemy Final Action Projects one Q and a chat bot.

34
00:01:29,000 --> 00:01:32,000
So I've just step by step went into that particular folder.

35
00:01:32,000 --> 00:01:34,000
And I'm going to start my project from here.

36
00:01:34,000 --> 00:01:42,000
Now in order to start the VS code I'll write code dot and automatically my VS code will get started.

37
00:01:42,000 --> 00:01:42,000
Right.

38
00:01:42,000 --> 00:01:44,000
So this is the first step over here.

39
00:01:44,000 --> 00:01:45,000
What we have basically done.

40
00:01:45,000 --> 00:01:51,000
Now I will go ahead and implement my project over here initially to start with what we need to do is

41
00:01:51,000 --> 00:01:53,000
that open my terminal.

42
00:01:53,000 --> 00:01:53,000
Right.

43
00:01:53,000 --> 00:01:56,000
So there are multiple ways how you can open a terminal.

44
00:01:56,000 --> 00:02:01,000
First of all uh, here you can see there is a button called as terminal which you can specifically open

45
00:02:01,000 --> 00:02:02,000
it.

46
00:02:02,000 --> 00:02:07,000
Otherwise I usually use a shortcut wherein I press control, um, or just Google.

47
00:02:07,000 --> 00:02:08,000
Right.

48
00:02:08,000 --> 00:02:10,000
What is the shortcut to open the terminal?

49
00:02:10,000 --> 00:02:10,000
Right.

50
00:02:10,000 --> 00:02:12,000
I'll give you this as an assignment.

51
00:02:12,000 --> 00:02:12,000
Okay.

52
00:02:12,000 --> 00:02:13,000
It will be up to you.

53
00:02:13,000 --> 00:02:13,000
Come on.

54
00:02:13,000 --> 00:02:16,000
Now you are implementing generative AI solutions.

55
00:02:16,000 --> 00:02:20,000
So I think you should be able to understand how things work over here.

56
00:02:20,000 --> 00:02:22,000
Right now.

57
00:02:22,000 --> 00:02:24,000
Here is my terminal.

58
00:02:24,000 --> 00:02:24,000
Okay.

59
00:02:24,000 --> 00:02:28,000
Now the first step what I'm actually going to do I will open command prompt over here.

60
00:02:28,000 --> 00:02:32,000
You can also go ahead and do it in uh PowerShell.

61
00:02:32,000 --> 00:02:35,000
So here I'll write on conda create minus p v and v.

62
00:02:35,000 --> 00:02:37,000
This will be my environment.

63
00:02:37,000 --> 00:02:41,000
I will go ahead and use Python double equal to 3.10 okay.

64
00:02:41,000 --> 00:02:43,000
You can use 3.11 also.

65
00:02:43,000 --> 00:02:46,000
But uh I will go ahead and use 3.10.

66
00:02:46,000 --> 00:02:49,000
It is up to you whichever Python version you want to run with or you ought to work with.

67
00:02:49,000 --> 00:02:50,000
Right.

68
00:02:50,000 --> 00:02:54,000
But I'm going to work all my projects with 3.10 and I.

69
00:02:54,000 --> 00:02:58,000
The reason is very simple, because I'm going to do some more complex projects in the future, um,

70
00:02:58,000 --> 00:02:59,000
in this series itself.

71
00:02:59,000 --> 00:03:04,000
And, uh, there you'll be able to see that, uh, there will be some dependency with this particular

72
00:03:04,000 --> 00:03:05,000
Python, uh, version.

73
00:03:05,000 --> 00:03:06,000
Okay.

74
00:03:06,000 --> 00:03:08,000
So let me just go ahead and do this.

75
00:03:08,000 --> 00:03:16,000
And here the entire environment will get created quickly once the environment is basically getting created.

76
00:03:17,000 --> 00:03:21,000
Uh, I will probably start my entire things.

77
00:03:21,000 --> 00:03:21,000
Okay.

78
00:03:21,000 --> 00:03:27,000
And then you will also be able to see that once this project is basically getting created, right.

79
00:03:27,000 --> 00:03:32,000
Uh, we will be seeing that how okay, how we can also make sure that we have to update our requirement

80
00:03:32,000 --> 00:03:33,000
dot txt.

81
00:03:33,000 --> 00:03:36,000
So here is my v and v folder that is getting created.

82
00:03:36,000 --> 00:03:40,000
It may take some time and I will go ahead and write dot e and v.

83
00:03:40,000 --> 00:03:46,000
And then I'll just go ahead and say requirement dot sorry requirement dot txt.

84
00:03:47,000 --> 00:03:51,000
So two more files I'm going to create it Okay.

85
00:03:52,000 --> 00:03:56,000
Please note one thing that I'm not going to repeat this step, uh, step of creating the environments

86
00:03:56,000 --> 00:04:00,000
again for the other projects, but I hope you should be able to understand till here.

87
00:04:01,000 --> 00:04:06,000
Now, in requirements.txt, I'm just going to go ahead and update some of the libraries that I'm actually

88
00:04:06,000 --> 00:04:07,000
going to use.

89
00:04:07,000 --> 00:04:07,000
Okay.

90
00:04:07,000 --> 00:04:10,000
Since we are going to work with OpenAI.

91
00:04:10,000 --> 00:04:13,000
So obviously we need to have Lang in OpenAI.

92
00:04:14,000 --> 00:04:15,000
So I'll go ahead and copy this.

93
00:04:15,000 --> 00:04:16,000
okay.

94
00:04:16,000 --> 00:04:23,000
Along with that I will also be requiring uh, different different libraries like, uh, you know, I

95
00:04:23,000 --> 00:04:25,000
can actually have want pandas, numpy and all.

96
00:04:25,000 --> 00:04:31,000
I will also may require that based on this what all things are what are basic libraries are there.

97
00:04:31,000 --> 00:04:32,000
I'll go ahead and write long chain.

98
00:04:33,000 --> 00:04:38,000
Then I will go ahead and use python dot env so that I can play with the environment variable.

99
00:04:38,000 --> 00:04:42,000
Then uh, along with this I will just go ahead and write lang chain.

100
00:04:43,000 --> 00:04:44,000
Lang chain.

101
00:04:44,000 --> 00:04:46,000
Underscore community.

102
00:04:46,000 --> 00:04:46,000
Okay.

103
00:04:46,000 --> 00:04:48,000
I'm also going to use this.

104
00:04:49,000 --> 00:04:54,000
Other than that, whatever new libraries that I will be requiring I will try to install it.

105
00:04:54,000 --> 00:04:54,000
Okay.

106
00:04:54,000 --> 00:05:02,000
So quickly I will just go ahead over here and go ahead and write pip install minus r requirements.txt.

107
00:05:02,000 --> 00:05:03,000
Okay.

108
00:05:03,000 --> 00:05:09,000
So once I do this here all the requirement dot txt will get installed which is good enough.

109
00:05:09,000 --> 00:05:15,000
And here you'll be able to see that whatever things you really want, you can go ahead and probably

110
00:05:15,000 --> 00:05:18,000
install as per your, uh, requirements, right?

111
00:05:19,000 --> 00:05:23,000
Um, so here you can see chrome dev requires uvicorn.

112
00:05:23,000 --> 00:05:25,000
This this this error is basically coming.

113
00:05:25,000 --> 00:05:27,000
Did I not activate the environment okay.

114
00:05:27,000 --> 00:05:30,000
So this is one of the mistake that I have actually done.

115
00:05:30,000 --> 00:05:33,000
See that this is the problem and many people will also face this.

116
00:05:33,000 --> 00:05:35,000
So I'm not going to edit this part because we are facing some problem.

117
00:05:35,000 --> 00:05:37,000
The the reason is very simple.

118
00:05:37,000 --> 00:05:39,000
I did not activate my V environment.

119
00:05:39,000 --> 00:05:45,000
So let me just go ahead and activate conda, activate v and v environment.

120
00:05:45,000 --> 00:05:51,000
Once we activate this here now we can go ahead and write our pip install minus our requirement dot txt.

121
00:05:51,000 --> 00:05:52,000
Now I don't think so.

122
00:05:52,000 --> 00:05:58,000
It should give us any errors and automatically the installation of this library should happen.

123
00:05:58,000 --> 00:05:59,000
Okay.

124
00:05:59,000 --> 00:06:02,000
And, uh, this is what we are doing to do the first step.

125
00:06:02,000 --> 00:06:06,000
So Lankan community everything is getting installed whatever things are basically required.

126
00:06:06,000 --> 00:06:07,000
Okay I just missed one more thing.

127
00:06:07,000 --> 00:06:14,000
I don't know whether, uh, with respect to Lankan underscore community, whether Lankan underscore

128
00:06:14,000 --> 00:06:16,000
core will also get installed.

129
00:06:16,000 --> 00:06:16,000
Okay.

130
00:06:16,000 --> 00:06:22,000
So that also will try to see we'll try to because this library is also required Lange chain underscore

131
00:06:22,000 --> 00:06:27,000
core because they are some of the important libraries that we are going to use from this.

132
00:06:27,000 --> 00:06:27,000
Okay.

133
00:06:27,000 --> 00:06:30,000
So uh, let's see how much time it will probably take.

134
00:06:30,000 --> 00:06:33,000
And uh, in the environment variable.

135
00:06:33,000 --> 00:06:36,000
Now there are some important information that I really need to put up okay.

136
00:06:37,000 --> 00:06:42,000
So environment variable I will go ahead and use my Lang chain API key okay.

137
00:06:42,000 --> 00:06:47,000
So I hope everybody knows how to create the Lang chain API key which has been explained already in the

138
00:06:47,000 --> 00:06:48,000
previous module.

139
00:06:48,000 --> 00:06:51,000
So I will just go ahead and write my chain API key over here.

140
00:06:51,000 --> 00:06:53,000
Why I'm not using OpenAI API key?

141
00:06:53,000 --> 00:06:58,000
Because I'm trying to create a project wherein from the front end, I'll directly try to give the opening

142
00:06:58,000 --> 00:06:59,000
AI API key.

143
00:06:59,000 --> 00:07:02,000
Okay, so right now I just require lang chain API key.

144
00:07:02,000 --> 00:07:05,000
So this is now getting loaded and this is executed.

145
00:07:05,000 --> 00:07:06,000
Let me do one more thing.

146
00:07:06,000 --> 00:07:10,000
Let me again go ahead and install this requirement dot txt because I had included one library.

147
00:07:10,000 --> 00:07:16,000
But I think because of the lang chain underscore community, automatically it made sure that this lang

148
00:07:16,000 --> 00:07:19,000
chain underscore core will also get installed.

149
00:07:19,000 --> 00:07:24,000
So this is the first basic steps that we really need to do for each and every project.

150
00:07:24,000 --> 00:07:30,000
Okay, one more thing I can probably go ahead and do is also make sure that at Streamlit over here,

151
00:07:30,000 --> 00:07:31,000
because I will be working with Streamlit.

152
00:07:31,000 --> 00:07:32,000
Okay.

153
00:07:32,000 --> 00:07:40,000
So Streamlit quickly pip install r requirements.txt and then my streamlit will also get installed.

154
00:07:40,000 --> 00:07:44,000
It will also take some amount of time because this is the framework that we have basically going to

155
00:07:44,000 --> 00:07:44,000
use.

156
00:07:44,000 --> 00:07:45,000
Okay.

157
00:07:45,000 --> 00:07:52,000
Uh, now in this video what all things we basically did, we set up our environment variable, we set

158
00:07:52,000 --> 00:07:57,000
up, we created a new environment, we activated the new environment, and we installed all the libraries

159
00:07:57,000 --> 00:07:59,000
that is required in the requirements.txt.

160
00:08:00,000 --> 00:08:07,000
Now in the next video, uh, once this installation takes place, we will go ahead and develop our first

161
00:08:07,000 --> 00:08:08,000
application.

162
00:08:08,000 --> 00:08:10,000
And here I'm just going to go ahead and write app Dot Pi.

163
00:08:10,000 --> 00:08:11,000
Okay.

164
00:08:11,000 --> 00:08:12,000
So perfect.

165
00:08:12,000 --> 00:08:15,000
Uh till here I think everything looks good.

166
00:08:15,000 --> 00:08:18,000
And uh, we are good to go with respect to this.

167
00:08:18,000 --> 00:08:24,000
So let's see you all in the next video where I'll discuss, uh, more things as we go ahead.

168
00:08:24,000 --> 00:08:26,000
So yes, this was it for my side.

169
00:08:26,000 --> 00:08:26,000
Thank you.

170
00:08:26,000 --> 00:08:27,000
I'll see you all in the next video.

