langsmith-cookbook  by langchain-ai

Cookbook for LangSmith, a tool to debug, evaluate, test, and improve LLM apps

created 2 years ago
941 stars

Top 39.8% on sourcepulse

GitHubView on GitHub
Project Summary

This repository provides practical recipes and real-world use-cases for LangSmith, a platform for debugging, evaluating, and improving LLM applications. It targets developers and researchers working with LLMs, offering guidance on tracing, testing, feedback integration, and optimization.

How It Works

The cookbook demonstrates how to leverage LangSmith's Python SDK and REST API for comprehensive LLM application monitoring. It covers tracing code independently of LangChain using the @traceable decorator, customizing run names for UI clarity, and including nested tool calls within traces. The examples showcase advanced techniques like prompt versioning, end-to-end RAG pipeline evaluation with metrics like RAGAS, and agent intermediate step analysis.

Quick Start & Requirements

Highlighted Details

  • Comprehensive evaluation recipes for RAG, chatbots, extraction, agents, and multimodal models.
  • Techniques for incorporating user and automated feedback to improve LLM applications.
  • Examples for prompt bootstrapping and iterative optimization using human feedback and LLMs.
  • Recipes for exporting data for LLM fine-tuning, including OpenAI format and Lilac dataset curation.

Maintenance & Community

  • Actively maintained by the LangChain development team.
  • Community contributions are encouraged via GitHub issues.
  • Links to community resources are available in the main LangChain documentation.

Licensing & Compatibility

  • The repository itself is likely under a permissive license (e.g., MIT), but it demonstrates usage of LangSmith, which has its own terms. LangChain components are typically MIT licensed.

Limitations & Caveats

  • Some advanced features and examples may require specific paid tiers of LLM services or LangSmith.
  • JavaScript/TypeScript examples are noted as being under development with fewer initial offerings compared to Python.
Health Check
Last commit

1 week ago

Responsiveness

1 week

Pull Requests (30d)
1
Issues (30d)
0
Star History
55 stars in the last 90 days

Explore Similar Projects

Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Carol Willing Carol Willing(Core Contributor to CPython, Jupyter), and
38 more.

langchain by langchain-ai

0.4%
113k
Framework for building LLM-powered applications
created 2 years ago
updated 1 day ago
Feedback? Help us improve.