1
00:00:00,000 --> 00:00:01,000
Hello guys.

2
00:00:01,000 --> 00:00:03,000
So we are going to continue the lecture series.

3
00:00:03,000 --> 00:00:09,000
And in this video we will go ahead and set up our entire environment for Lange chain so that we will

4
00:00:09,000 --> 00:00:12,000
be able to start the coding.

5
00:00:12,000 --> 00:00:16,000
Uh, and we'll be seeing multiple applications how to build generative AI applications.

6
00:00:16,000 --> 00:00:21,000
Now, uh, what I have actually planned is that I will probably create just one folder.

7
00:00:21,000 --> 00:00:21,000
Okay.

8
00:00:21,000 --> 00:00:23,000
So let's go ahead and see this.

9
00:00:23,000 --> 00:00:24,000
This will be one folder.

10
00:00:24,000 --> 00:00:27,000
My entire projects will be probably created over here.

11
00:00:27,000 --> 00:00:32,000
And let's say, uh, the end to end projects that I specifically create, I will probably create a different

12
00:00:32,000 --> 00:00:33,000
project folder for them.

13
00:00:33,000 --> 00:00:34,000
Okay.

14
00:00:34,000 --> 00:00:36,000
So go to any folder in any of your drive.

15
00:00:36,000 --> 00:00:42,000
And from this let's go ahead and right click over here and you'll get an option of open with code right.

16
00:00:42,000 --> 00:00:47,000
So here once you do or once you click this with open with code, you'll be able to see that I'll be

17
00:00:47,000 --> 00:00:48,000
having the VS code.

18
00:00:48,000 --> 00:00:50,000
This is one way how you can actually do it.

19
00:00:50,000 --> 00:00:53,000
The other way is that I will just go ahead and copy this path.

20
00:00:53,000 --> 00:00:55,000
Open my command prompt.

21
00:00:55,000 --> 00:00:55,000
Okay.

22
00:00:55,000 --> 00:01:01,000
If you have installed Anaconda and VSCode, so I will just go to this particular command, this particular

23
00:01:01,000 --> 00:01:01,000
path.

24
00:01:01,000 --> 00:01:06,000
So I will just go ahead and write CD this and I'll go to my E drive.

25
00:01:06,000 --> 00:01:12,000
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,

26
00:01:12,000 --> 00:01:13,000
uh, project itself.

27
00:01:13,000 --> 00:01:18,000
So here I will just go ahead and write code dot and automatically my VSCode will open.

28
00:01:18,000 --> 00:01:22,000
So these are two different ways how you can probably start your VS code.

29
00:01:22,000 --> 00:01:27,000
Okay, so I've done this and now my entire coding will specifically be happening over here.

30
00:01:27,000 --> 00:01:29,000
Uh let me do one thing.

31
00:01:29,000 --> 00:01:30,000
Uh, let me just make this as a full screen.

32
00:01:30,000 --> 00:01:37,000
Now let us go ahead and first of all, create one virtual environment, since in Lang chain this, all

33
00:01:37,000 --> 00:01:40,000
the things that we are going to probably discuss, it will be related to Lang Chain.

34
00:01:40,000 --> 00:01:43,000
So it is always necessary that you create your own virtual environment.

35
00:01:43,000 --> 00:01:49,000
And with respect to that specific virtual environment, we will try to do all the installations and

36
00:01:49,000 --> 00:01:52,000
we'll try to probably see what all packages will be required and many more things.

37
00:01:53,000 --> 00:01:58,000
Now, uh, since, uh, I don't know, like how many of you are familiar with working with VS code or

38
00:01:58,000 --> 00:02:03,000
not, but VS code, I feel is an amazing IDE wherein you'll be able to create projects, you'll be able

39
00:02:03,000 --> 00:02:05,000
to work with Jupyter Notebook and many more things.

40
00:02:05,000 --> 00:02:11,000
So here, uh, what I'm actually going to do, first of all, uh, here you can see that first of all,

41
00:02:11,000 --> 00:02:12,000
you need to go ahead and open your terminal.

42
00:02:12,000 --> 00:02:13,000
Right.

43
00:02:13,000 --> 00:02:17,000
So in this terminal we will go ahead and create our, uh, virtual environment.

44
00:02:17,000 --> 00:02:22,000
Now one way is that I can directly go over here, click on the terminal and click on New Terminal.

45
00:02:22,000 --> 00:02:27,000
So this is one way, but, uh, my entire session I will try to use some shortcuts in VS code.

46
00:02:27,000 --> 00:02:30,000
I just will press control back symbol okay.

47
00:02:30,000 --> 00:02:32,000
So control plus back symbol.

48
00:02:32,000 --> 00:02:34,000
And automatically I'll be able to see that okay.

49
00:02:34,000 --> 00:02:35,000
This is my terminal over here okay.

50
00:02:35,000 --> 00:02:42,000
So you can also go ahead and probably, um, just open this terminal by using shortcut so that you'll

51
00:02:42,000 --> 00:02:45,000
be much more efficient while working on the project itself.

52
00:02:45,000 --> 00:02:51,000
Now here you have multiple options like PowerShell get bash command prompt, JavaScript debug terminal.

53
00:02:51,000 --> 00:02:55,000
So whatever thing you really want to go ahead with, you can go ahead again in Mac.

54
00:02:55,000 --> 00:02:59,000
You'll be having uh, another uh, terminal itself.

55
00:02:59,000 --> 00:03:02,000
So you can probably check with respect to the kind of system that you have.

56
00:03:02,000 --> 00:03:05,000
But here I'm just going to go ahead and open command terminal.

57
00:03:05,000 --> 00:03:05,000
Okay.

58
00:03:05,000 --> 00:03:08,000
So this will basically be my command terminal.

59
00:03:08,000 --> 00:03:13,000
Now I am going to as I said, I'm going to probably go ahead and create my own virtual environment.

60
00:03:13,000 --> 00:03:18,000
So first of all, what I'm actually going to do I'll just go ahead and write conda create minus p v

61
00:03:18,000 --> 00:03:19,000
and v will be my virtual environment.

62
00:03:19,000 --> 00:03:27,000
I will just go ahead and use my Python version 3.10 uh, 3.10 I'm using because, uh, the most of the

63
00:03:27,000 --> 00:03:33,000
stable libraries that are there, I think it is compatible to Python 3.10, and I think it is also 3.11

64
00:03:33,000 --> 00:03:35,000
in 3 .12.

65
00:03:35,000 --> 00:03:38,000
They are still a lot of developments that are specifically happening.

66
00:03:38,000 --> 00:03:39,000
New things are coming.

67
00:03:39,000 --> 00:03:42,000
So once that actually becomes stable you can also work with that.

68
00:03:42,000 --> 00:03:45,000
So I'm just going to go ahead with Python double equal to 3.10.

69
00:03:45,000 --> 00:03:51,000
And here along with this I will also say by default y so that what are the default installation that

70
00:03:51,000 --> 00:03:55,000
is going to probably take place with respect to this particular virtual environment that is going to

71
00:03:55,000 --> 00:03:55,000
happen.

72
00:03:56,000 --> 00:04:01,000
So this virtual environment in this, I will probably go ahead and do all the installation that I really

73
00:04:01,000 --> 00:04:03,000
want to work with the long chain.

74
00:04:03,000 --> 00:04:03,000
Okay.

75
00:04:03,000 --> 00:04:08,000
So here you can see this entire uh folder and packages will get installed.

76
00:04:09,000 --> 00:04:11,000
And this is my v env environment.

77
00:04:11,000 --> 00:04:13,000
And you can see slowly everything is basically getting installed.

78
00:04:13,000 --> 00:04:18,000
So till this is getting installed, I will just go ahead and go ahead and create my requirements dot

79
00:04:18,000 --> 00:04:25,000
txt requirements dot txt okay now inside this requirement dot txt.

80
00:04:25,000 --> 00:04:28,000
Now you can see that my environment has got created.

81
00:04:28,000 --> 00:04:31,000
So here I'm just going to use one library that is called as Lang Chin.

82
00:04:31,000 --> 00:04:31,000
Yeah.

83
00:04:31,000 --> 00:04:35,000
I'm also going to install different different libraries in Lang Chin.

84
00:04:35,000 --> 00:04:40,000
Also uh you'll be seeing like Lang Chin underscore community and all will understand why it is basically

85
00:04:40,000 --> 00:04:40,000
used.

86
00:04:40,000 --> 00:04:42,000
And then we will go ahead and do the installation.

87
00:04:42,000 --> 00:04:46,000
So right now I just required Langton to show you that how you can probably go ahead with the installation

88
00:04:46,000 --> 00:04:47,000
in this requirement.

89
00:04:47,000 --> 00:04:50,000
Dot txt now once my virtual environment is created.

90
00:04:50,000 --> 00:04:53,000
So here you can see this is my V and V folder.

91
00:04:53,000 --> 00:04:56,000
I will go ahead and activate this particular environment.

92
00:04:56,000 --> 00:04:57,000
So let's go ahead and activate this.

93
00:04:57,000 --> 00:05:00,000
So here I'm going to write conda activate v and v.

94
00:05:00,000 --> 00:05:03,000
And here is my virtual environment okay.

95
00:05:03,000 --> 00:05:09,000
Now already my packages have been, uh, I've written that in the long chain itself.

96
00:05:09,000 --> 00:05:15,000
So let me quickly go ahead and clear my screen and let me just go ahead and write pip install minus

97
00:05:15,000 --> 00:05:16,000
our requirement dot txt.

98
00:05:16,000 --> 00:05:21,000
So here you'll be able to see okay install I have written double s.

99
00:05:21,000 --> 00:05:24,000
So let me just go ahead and do the requirement dot txt installation.

100
00:05:24,000 --> 00:05:27,000
So automatically you'll be able to see lang chain lang chain core.

101
00:05:27,000 --> 00:05:30,000
All these installation will automatically happen.

102
00:05:30,000 --> 00:05:30,000
Okay.

103
00:05:31,000 --> 00:05:36,000
Uh, so once this installation basically happens, we are good to start our long chain project.

104
00:05:36,000 --> 00:05:41,000
So and even we'll be starting multiple modules in long chain where we'll be discussing step by step

105
00:05:41,000 --> 00:05:43,000
and how you can specifically use it.

106
00:05:44,000 --> 00:05:45,000
Uh, along with long chain.

107
00:05:45,000 --> 00:05:50,000
I would also like to probably install one more package, which I have already discussed in my Python

108
00:05:50,000 --> 00:05:52,000
module, which is nothing but Ipykernel.

109
00:05:53,000 --> 00:05:59,000
Now Ipykernel is something which we are going to use it only to make sure that we will be able to create

110
00:05:59,000 --> 00:06:01,000
a select a kernel for our Jupyter notebook file.

111
00:06:01,000 --> 00:06:06,000
Initially, all the topics that we are going to learn will be mostly through Jupyter Notebook.

112
00:06:06,000 --> 00:06:12,000
But later on, once we get our fundamental or basics clear, we will also be developing end to end projects.

113
00:06:12,000 --> 00:06:18,000
So yes, this was all the steps that we really need to do in order to create our virtual environment.

114
00:06:18,000 --> 00:06:21,000
Now I will just go ahead and probably create my first module.

115
00:06:21,000 --> 00:06:25,000
Whatever things I really want to do develop over here with respect to long chain.

116
00:06:25,000 --> 00:06:30,000
And inside this, let's say I want to go ahead and probably work with Ipynb file.

117
00:06:30,000 --> 00:06:34,000
So I will just go ahead and create one file and I'll start my work, which I am going to probably show

118
00:06:34,000 --> 00:06:36,000
you in the next video.

119
00:06:36,000 --> 00:06:36,000
Right?

120
00:06:36,000 --> 00:06:38,000
So yes, this was it from my side.

121
00:06:38,000 --> 00:06:43,000
Uh, in this particular video, I've shown you how you can actually go ahead and create a virtual environment.

122
00:06:43,000 --> 00:06:44,000
Along with that.

123
00:06:44,000 --> 00:06:44,000
What?

124
00:06:44,000 --> 00:06:45,000
All requirements.txt.

125
00:06:45,000 --> 00:06:49,000
I just used one packages and as we go ahead we will be using multiple packages.

126
00:06:49,000 --> 00:06:52,000
And after that we'll also go ahead with the installation.

127
00:06:52,000 --> 00:06:59,000
Uh, I have also created the entire, uh, you know, the virtual environment by just using conda create

128
00:06:59,000 --> 00:07:02,000
minus p v and v Python with 3.10.

129
00:07:02,000 --> 00:07:07,000
And I've just used dash y so that whatever is the default installation that will happen.

130
00:07:07,000 --> 00:07:09,000
So yes this was it for my side.

131
00:07:09,000 --> 00:07:10,000
I hope you like this particular video.

132
00:07:10,000 --> 00:07:11,000
I will see you all in the next video.

133
00:07:11,000 --> 00:07:12,000
Thank you.

