langchain-visualizer
langchain-visualizer copied to clipboard
Support LangchainJS
LangchainJS has tracing built-in [1] and emits the same events to the tracing HTTP API. It would be great if this tool could also read events from the same API, or implement LangchainJS callbacks [2], so that it could visualize chain data. Thanks for this great project!
- https://js.langchain.com/docs/production/tracing
- https://js.langchain.com/docs/production/callbacks/#multiple-handlers
Unfortunately, this project is just a simple hacky wrapper around Ought's ICE visualizer, which seems to do a lot of magic around the call stack. My last attempt to use Langchain's callbacks for visualization failed due to this magic, so I think a proper solution is required that will write the execution tree to disk in ICE's expected file format.
It's on my todo list, but I haven't quite gotten around to it yet :)