Debugging tool for LangChain workflows
Top 48.1% on sourcepulse
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
pip install langchain-visualizer
libyaml-dev
(on Linux), google-search-results
, openai
. For replaying recorded interactions: vcr-langchain
.langchain_visualizer
and call langchain_visualizer.visualize()
on an async function. Jupyter notebooks require langchain_visualizer.jupyter
.Highlighted Details
visualize_embeddings
.Maintenance & Community
Licensing & Compatibility
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."
1 year ago
1 week