1
00:00:02,780 --> 00:00:03,440
Okay.

2
00:00:03,440 --> 00:00:08,150
Let's see this initial operations in the Lang Smith platform.

3
00:00:08,150 --> 00:00:15,530
How to create a free account, how to create a new project, and how to see the traces of your project.

4
00:00:15,650 --> 00:00:17,090
In the notebook.

5
00:00:17,120 --> 00:00:26,090
You have very detailed explanations, but let's see how these work in the, uh, in the platform.

6
00:00:26,090 --> 00:00:35,570
So in order to create a free account in Lang Smith, you go to Smith Dot Lang Chain.com it's very easy.

7
00:00:35,570 --> 00:00:38,540
You, uh, just log in as.

8
00:00:39,400 --> 00:00:44,530
Usual, then how to create a new language myth project?

9
00:00:44,530 --> 00:00:45,190
This is.

10
00:00:45,190 --> 00:00:50,950
This can be a little tricky because you can do this in many ways.

11
00:00:52,220 --> 00:00:59,840
A what do we normally do is we just start a launching project.

12
00:00:59,840 --> 00:01:09,710
And in the dotenv file we include the a m variables of a Lang Smith.

13
00:01:09,710 --> 00:01:17,420
For example, when we started this project, uh, what we did was to enter.

14
00:01:18,510 --> 00:01:26,130
And these, uh, variables in the dot env file associated with our long chain project.

15
00:01:26,130 --> 00:01:26,700
Right.

16
00:01:26,700 --> 00:01:34,290
So you will have to, uh, change this with your Lamb-smith API key.

17
00:01:34,320 --> 00:01:37,500
You can have it here in the settings area.

18
00:01:37,500 --> 00:01:39,090
Very easy to get.

19
00:01:39,090 --> 00:01:43,320
And you can change the name of your long chain project.

20
00:01:43,320 --> 00:01:49,380
If you don't include this variable long chain project, the name of your project is going to be default.

21
00:01:49,680 --> 00:01:58,950
This can be a little bit annoying because if you don't use a name in your project and the default name

22
00:01:58,950 --> 00:02:03,660
is, uh, assigned to your project whenever you start a new project.

23
00:02:03,660 --> 00:02:08,400
And if you do the same, both of them are going to be under the name default.

24
00:02:08,400 --> 00:02:09,900
So it's going to be a bit messy.

25
00:02:09,900 --> 00:02:14,100
So I would encourage you to enter the name of the project.

26
00:02:14,370 --> 00:02:16,650
So this is what we usually do.

27
00:02:16,650 --> 00:02:20,640
So in the dot m file we include these uh variables.

28
00:02:20,640 --> 00:02:21,540
And that's it.

29
00:02:21,540 --> 00:02:27,930
That's the disconnects your launching project with your Langschmidt project.

30
00:02:27,930 --> 00:02:31,890
But you have different ways of starting a project.

31
00:02:32,310 --> 00:02:38,880
And as you will see, you also have different ways of working with Lang Smith, because as you already

32
00:02:38,880 --> 00:02:43,590
know, you can use Lang Smith even if you don't use a Lang chain.

33
00:02:43,590 --> 00:02:49,470
So how you do that here, you have some, uh, interesting, uh, notes about that.

34
00:02:49,470 --> 00:02:54,000
So normally one LM app is associated with one project.

35
00:02:54,000 --> 00:02:58,620
But in reality a project can be associated with any collection of threads.

36
00:02:58,620 --> 00:02:59,790
This is interesting.

37
00:02:59,790 --> 00:03:07,770
We normally use one project for one Lang Smith project for one Lang chain project.

38
00:03:07,770 --> 00:03:11,670
But as you can see you have different possibilities.

39
00:03:12,060 --> 00:03:19,200
So one way of creating a new project is clicking here in the new project and in the project page you

40
00:03:19,200 --> 00:03:20,460
will see four tabs.

41
00:03:20,460 --> 00:03:25,170
Well, this is what you are going to see in whatever project you you open.

42
00:03:25,170 --> 00:03:31,290
You have the traces tab, you have the LM calls, you have all runs, which is not here.

43
00:03:31,290 --> 00:03:34,050
So in fact they are five.

44
00:03:34,080 --> 00:03:41,100
Then you have the monitor and then you have the setup here in the setup is where you can copy this if

45
00:03:41,100 --> 00:03:41,580
you want.

46
00:03:41,580 --> 00:03:45,480
And you have here you have some instructions to do that as well.

47
00:03:45,480 --> 00:03:50,820
You also have some links here in the notebook with more explanations for different cases.

48
00:03:50,820 --> 00:03:59,940
So in the setup you know if you follow these instructions you create an API key, select the desired

49
00:03:59,940 --> 00:04:01,320
runtime environment.

50
00:04:01,320 --> 00:04:10,200
And you can use Lang Smith with a Lang chain app, as we do using the SDK, SDK, Python or TypeScript

51
00:04:10,200 --> 00:04:11,970
or via the API.

52
00:04:12,000 --> 00:04:21,450
So this is just to remind you that we can use, uh, all the long chain tools in the Python environment

53
00:04:21,450 --> 00:04:24,120
or also in the JavaScript environment.

54
00:04:24,120 --> 00:04:27,090
We if you remember, we we talked about that before.

55
00:04:27,090 --> 00:04:33,480
Initially it was all Python in the in the here we have a typo.

56
00:04:33,930 --> 00:04:39,840
Uh, initially it was all Python, you know, uh, in the artificial intelligence world.

57
00:04:39,840 --> 00:04:47,610
But now since we are having more and more full stack applications, we are having more and more JavaScript.

58
00:04:47,610 --> 00:04:54,300
So all the artificial intelligence platform are starting to, to to prepare a version for JavaScript

59
00:04:54,300 --> 00:04:54,690
as well.

60
00:04:54,690 --> 00:05:02,220
And as you know, TypeScript, TypeScript is just a sophisticated way of using JavaScript.

61
00:05:02,220 --> 00:05:06,180
So this interesting note the.

62
00:05:06,180 --> 00:05:13,650
Here we explain how to use Lang Smith with Lang chain app, with a Lang chain app to know about the

63
00:05:13,650 --> 00:05:14,580
other options.

64
00:05:14,580 --> 00:05:17,280
Here you have an interesting link to to check.

65
00:05:17,280 --> 00:05:24,660
Okay, so you have a link to the Tracing Lang Smith Tracing quick start guide.

66
00:05:24,660 --> 00:05:25,980
Very interesting guide.

67
00:05:25,980 --> 00:05:32,400
There are um I think it's easy to follow to use Lang Smith with a Lang chain app.

68
00:05:32,400 --> 00:05:35,310
See step by step guide here.

69
00:05:35,430 --> 00:05:36,810
Here you have another link.

70
00:05:36,810 --> 00:05:39,390
So you create a new virtual environment.

71
00:05:39,390 --> 00:05:41,670
This is recommended always.

72
00:05:41,670 --> 00:05:43,200
We install lang chain.

73
00:05:43,200 --> 00:05:46,170
If you don't have it in the virtual environment.

74
00:05:46,170 --> 00:05:55,950
And then you set the language with environment variables you can use uh the you can set the Lang Smith

75
00:05:55,950 --> 00:06:04,740
variables via terminal, which is not very common, or via dot m file as we explained before.

76
00:06:04,740 --> 00:06:05,070
Okay.

77
00:06:05,070 --> 00:06:07,230
So via terminal or via dotenv file.

78
00:06:07,230 --> 00:06:13,890
And then you can start running a whatever LM application you are working in okay.

79
00:06:13,890 --> 00:06:17,790
So of course you will have to add the dot m file with your.

80
00:06:18,050 --> 00:06:18,590
Project.

81
00:06:18,590 --> 00:06:20,330
You know how to do this.

82
00:06:20,330 --> 00:06:22,010
We do this in every exercise.

83
00:06:22,010 --> 00:06:29,720
If you remember, the first cell, in every exercise we do in a notebook is associating the dot m file

84
00:06:29,720 --> 00:06:33,410
with the notebook, then a.

85
00:06:34,890 --> 00:06:35,250
Here.

86
00:06:35,460 --> 00:06:37,380
Create a new language myth API key.

87
00:06:37,410 --> 00:06:38,520
We already covered that.

88
00:06:38,520 --> 00:06:40,830
Copy your API key in the file.

89
00:06:40,830 --> 00:06:46,890
Okay, this is where you have to enter your API key and then use the dot m file in your landscape.

90
00:06:47,040 --> 00:06:47,640
Okay.

91
00:06:48,060 --> 00:06:51,960
Second, a initial operation.

92
00:06:51,960 --> 00:06:55,290
How to see the traces of your project.

93
00:06:55,980 --> 00:07:00,600
So I have already showed you if you click.

94
00:07:01,760 --> 00:07:03,860
On any of your projects.

95
00:07:05,480 --> 00:07:08,600
You will be presented with a list of traces.

96
00:07:09,080 --> 00:07:15,500
Okay, so you go to projects, your project name and go to the traces tab.

97
00:07:15,830 --> 00:07:19,490
Click on each trace to see the trace details.

98
00:07:19,490 --> 00:07:21,620
Input latency.

99
00:07:21,620 --> 00:07:24,260
Is it in the test data set?

100
00:07:24,260 --> 00:07:25,910
Does it have annotations?

101
00:07:25,910 --> 00:07:30,680
Some of these things we see we can see them in the table.

102
00:07:30,680 --> 00:07:32,210
You see here.

103
00:07:32,210 --> 00:07:38,780
You can uh uh you can determine what columns you want to see okay.

104
00:07:38,780 --> 00:07:42,050
But right now the default columns we are seeing.

105
00:07:42,050 --> 00:07:50,270
So as the latency, well the input, the latency of the trace if it is in the test data set or not,

106
00:07:50,270 --> 00:07:57,740
if it has, if it is included in the annotation queue, the number of tokens is using the cost, uh,

107
00:07:57,740 --> 00:07:58,610
etc..

108
00:07:58,610 --> 00:07:59,270
Okay.

109
00:07:59,660 --> 00:08:04,070
And if we have any tag or metadata etc..

110
00:08:04,280 --> 00:08:13,670
So this is the way you see, uh, this is the way you create a new account, you create a new project

111
00:08:13,670 --> 00:08:16,760
and you see the traces of your project.

112
00:08:16,760 --> 00:08:25,190
In the next lesson, we are going to see how to solve with Lang Smith the challenges of the prototyping

113
00:08:25,190 --> 00:08:28,340
phase that would be in the next lesson.

