langchain-visualizer icon indicating copy to clipboard operation
langchain-visualizer copied to clipboard

Support LangchainJS

Open alexkreidler opened this issue 2 years ago • 1 comments

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!

  1. https://js.langchain.com/docs/production/tracing
  2. https://js.langchain.com/docs/production/callbacks/#multiple-handlers

alexkreidler avatar May 31 '23 19:05 alexkreidler

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 :)

amosjyng avatar Jun 03 '23 11:06 amosjyng