langchain-visualizer  by amosjyng

Debugging tool for LangChain workflows

created 2 years ago
735 stars

Top 48.1% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This project provides a visualization and debugging tool for LangChain workflows, targeting developers who need to understand and troubleshoot their LLM applications. It offers a richer, more interactive debugging experience compared to LangChain's built-in tracer by leveraging the Ought ICE visualizer.

How It Works

The tool intercepts and visualizes LangChain interactions, presenting them in a user-friendly UI. Key features include highlighting hardcoded versus templated prompt sections, displaying execution flow, and showing LLM call costs (for specific OpenAI models). It adapts the Ought ICE visualizer, offering a distinct UI preference for users who favor its approach to inspecting LLM calls and tool execution.

Quick Start & Requirements

Highlighted Details

  • Visualizes prompt text, distinguishing hardcoded and templated parts.
  • Displays execution flow and tool calls (e.g., PythonREPL).
  • Shows costs for individual LLM calls and total run cost (OpenAI text-davinci-003).
  • Supports visualization of document chunking for embeddings via visualize_embeddings.

Maintenance & Community

  • Developed by amosjyng.
  • Related project: VCR LangChain for testing and demos.
  • Users are encouraged to open issues or PRs for missing visualization features.

Licensing & Compatibility

  • License: Not explicitly stated in the README.
  • Compatibility: Designed for use with LangChain.

Limitations & Caveats

The project is a personal adaptation and may not cover all LangChain functionalities. Users are encouraged to contribute missing features. The README notes that LangChain's built-in tracer is "definitely better supported."

Health Check
Last commit

1 year ago

Responsiveness

1 week

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

Explore Similar Projects

Feedback? Help us improve.