Delv
LangSmith
Getting Started Guide

How to Use LangSmith

A practical guide to get you up and running with LangSmith. Written by Delv Editorial, Delv Team.

Getting started with LangSmith

In this guide, you'll learn how to set up your LangSmith account and start debugging, testing, and monitoring your LangChain applications efficiently.

Step 1: Sign up and set up

  1. Visit the LangSmith website.
  2. Click on the "Sign Up" button located in the top right corner.
  3. Fill in your details, including your email address and a password, then click "Create Account."
  4. Check your email for a confirmation link and follow it to activate your account.
  5. Once logged in, you’ll be directed to the dashboard, where you can start managing your projects.

Step 2: Your first debugging session

  1. On the dashboard, click the "New Project" button.
  2. Enter a name for your project and select the relevant settings for your LangChain application.
  3. After creating your project, click on the "Debug" tab in the left sidebar.
  4. Upload your LangChain code or paste it directly into the provided code editor.
  5. Click the "Run Debugger" button to initiate the debugging process. Review the output and fix any identified issues.

Step 3: Get better results

  1. Use the "Test" tab to create unit tests for your LangChain application. Click on "Create Test" and define the input and expected output.
  2. Leverage the "Monitor" feature to track performance metrics. Click on "Monitor" in the sidebar and set up alerts for any anomalies.
  3. Regularly check the "Evaluation" tab to analyse the effectiveness of your models. Here, you can compare different versions of your models to see which performs better.

Pro tip

Use the "Templates" feature when creating tests. This can save you time by allowing you to reuse common test structures instead of starting from scratch each time.

Common mistake to avoid

Avoid neglecting the "Documentation" section. Many users overlook it, but it contains essential information on best practices and troubleshooting tips that can save you time and headaches later.