LangChain
Phoenix has first-class support for LangChain applications.
To begin, you will have to start a Phoenix server. You can do this by running:
Once you have started a Phoenix server, You will instrument LangChain so that spans are created whenever you run a chain.
By instrumenting LangChain, spans will be created whenevera a chain is run and will be sent to the Phoenix server for collection.
To view the traces in Phoenix, simply open the UI in your browser.
For a fully working example of tracing with LangChain, checkout our colab notebook.
Last updated