Okay.
Let's see this initial operations in the Lang Smith platform.
How to create a free account, how to create a new project, and how to see the traces of your project.
In the notebook.
You have very detailed explanations, but let's see how these work in the, uh, in the platform.
So in order to create a free account in Lang Smith, you go to Smith Dot Lang Chain.com it's very easy.
You, uh, just log in as.
Usual, then how to create a new language myth project?
This is.
This can be a little tricky because you can do this in many ways.
A what do we normally do is we just start a launching project.
And in the dotenv file we include the a m variables of a Lang Smith.
For example, when we started this project, uh, what we did was to enter.
And these, uh, variables in the dot env file associated with our long chain project.
Right.
So you will have to, uh, change this with your Lamb-smith API key.
You can have it here in the settings area.
Very easy to get.
And you can change the name of your long chain project.
If you don't include this variable long chain project, the name of your project is going to be default.
This can be a little bit annoying because if you don't use a name in your project and the default name
is, uh, assigned to your project whenever you start a new project.
And if you do the same, both of them are going to be under the name default.
So it's going to be a bit messy.
So I would encourage you to enter the name of the project.
So this is what we usually do.
So in the dot m file we include these uh variables.
And that's it.
That's the disconnects your launching project with your Langschmidt project.
But you have different ways of starting a project.
And as you will see, you also have different ways of working with Lang Smith, because as you already
know, you can use Lang Smith even if you don't use a Lang chain.
So how you do that here, you have some, uh, interesting, uh, notes about that.
So normally one LM app is associated with one project.
But in reality a project can be associated with any collection of threads.
This is interesting.
We normally use one project for one Lang Smith project for one Lang chain project.
But as you can see you have different possibilities.
So one way of creating a new project is clicking here in the new project and in the project page you
will see four tabs.
Well, this is what you are going to see in whatever project you you open.
You have the traces tab, you have the LM calls, you have all runs, which is not here.
So in fact they are five.
Then you have the monitor and then you have the setup here in the setup is where you can copy this if
you want.
And you have here you have some instructions to do that as well.
You also have some links here in the notebook with more explanations for different cases.
So in the setup you know if you follow these instructions you create an API key, select the desired
runtime environment.
And you can use Lang Smith with a Lang chain app, as we do using the SDK, SDK, Python or TypeScript
or via the API.
So this is just to remind you that we can use, uh, all the long chain tools in the Python environment
or also in the JavaScript environment.
We if you remember, we we talked about that before.
Initially it was all Python in the in the here we have a typo.
Uh, initially it was all Python, you know, uh, in the artificial intelligence world.
But now since we are having more and more full stack applications, we are having more and more JavaScript.
So all the artificial intelligence platform are starting to, to to prepare a version for JavaScript
as well.
And as you know, TypeScript, TypeScript is just a sophisticated way of using JavaScript.
So this interesting note the.
Here we explain how to use Lang Smith with Lang chain app, with a Lang chain app to know about the
other options.
Here you have an interesting link to to check.
Okay, so you have a link to the Tracing Lang Smith Tracing quick start guide.
Very interesting guide.
There are um I think it's easy to follow to use Lang Smith with a Lang chain app.
See step by step guide here.
Here you have another link.
So you create a new virtual environment.
This is recommended always.
We install lang chain.
If you don't have it in the virtual environment.
And then you set the language with environment variables you can use uh the you can set the Lang Smith
variables via terminal, which is not very common, or via dot m file as we explained before.
Okay.
So via terminal or via dotenv file.
And then you can start running a whatever LM application you are working in okay.
So of course you will have to add the dot m file with your.
Project.
You know how to do this.
We do this in every exercise.
If you remember, the first cell, in every exercise we do in a notebook is associating the dot m file
with the notebook, then a.
Here.
Create a new language myth API key.
We already covered that.
Copy your API key in the file.
Okay, this is where you have to enter your API key and then use the dot m file in your landscape.
Okay.
Second, a initial operation.
How to see the traces of your project.
So I have already showed you if you click.
On any of your projects.
You will be presented with a list of traces.
Okay, so you go to projects, your project name and go to the traces tab.
Click on each trace to see the trace details.
Input latency.
Is it in the test data set?
Does it have annotations?
Some of these things we see we can see them in the table.
You see here.
You can uh uh you can determine what columns you want to see okay.
But right now the default columns we are seeing.
So as the latency, well the input, the latency of the trace if it is in the test data set or not,
if it has, if it is included in the annotation queue, the number of tokens is using the cost, uh,
etc..
Okay.
And if we have any tag or metadata etc..
So this is the way you see, uh, this is the way you create a new account, you create a new project
and you see the traces of your project.
In the next lesson, we are going to see how to solve with Lang Smith the challenges of the prototyping
phase that would be in the next lesson.