langsmith-dataset

Generate and upload LangSmith trace-based evaluation datasets for LangChain agents.

11|2|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/jackjin1997/ClawForge --skill langsmith-dataset-jackjin1997
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langsmith-dataset
Source: https://github.com/jackjin1997/ClawForge/tree/main/skills/langsmith-dataset
Command: npx skills add https://github.com/jackjin1997/ClawForge --skill langsmith-dataset-jackjin1997

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires langsmith, click, rich, python-dotenv, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation of test and evaluation datasets for LangChain agents by extracting data directly from LangSmith traces, streamlining the testing and validation process.

Core Features & Use Cases

  • Dataset Generation: Create datasets for final_response, single_step, trajectory, and rag types from existing traces.
  • LangSmith Upload: Directly upload generated datasets to your LangSmith project.
  • Trace Analysis: Filter traces by root run name, time, and depth to generate targeted datasets.
  • Use Case: After running your agent for a week, use this Skill to generate a final_response dataset from successful traces to evaluate its overall conversational accuracy.

Quick Start

Use the langsmith-dataset skill to generate a final_response dataset from your project named 'my-project' and save it to '/tmp/final_response.json'.

Frequently Asked Questions about langsmith-dataset

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate evaluation datasets from LangSmith traces?

To generate evaluation datasets from LangSmith traces, use this Skill to extract data directly from your LangSmith project and upload it. It automates creating datasets like final_response, single_step, trajectory, and rag types for testing.

What types of datasets can I create from LangChain agent traces?

You can create four types of datasets from LangChain agent traces: final_response, single_step, trajectory, and rag. These are extracted from existing LangSmith traces to evaluate different aspects of agent performance.

How do I filter LangSmith traces to build targeted test datasets?

You can filter LangSmith traces to build targeted test datasets by specifying the root run name, time range, and depth. This allows you to extract specific agent interactions for your evaluation sets.

Can I upload generated datasets directly to my LangSmith project?

Yes, you can upload generated datasets directly to your LangSmith project. The Skill integrates directly with the LangSmith API for seamless dataset management after extracting the data from traces.

What environment variables do I need to authenticate with the LangSmith API?

You need specific environment variables for authentication to integrate with the LangSmith API. The Skill uses python-dotenv to load these credentials, ensuring secure access to your LangSmith traces and dataset uploads.

When should I use trajectory datasets versus single step datasets for LangChain evaluation?

Use trajectory datasets to evaluate the full sequence of agent actions, and single step datasets to evaluate individual steps. Both are extracted from LangSmith traces, allowing you to target specific conversational accuracy or component performance.