Tracing in LangChain

As organizations mature with XLMs(x=Large, Medium, Small), the deployment architecture will be more agentic in nature. That agentic architecture will be similar to a distributed architecture. Tracing is a very important feature in such architectures. This video demonstrates "Tracing", an upcoming feature in LangChain.

I forgot to mention in the video how to instrument the code to record the trace in the tracing server. For that, we just need the below three lines of code at the top of the agent program

import os
os.environ["LANGCHAIN_TRACING"] = "true"
os.environ["LANGCHAIN_SESSION"] = "agent_chain" # This is session        


Ashim Roy

Managing Director at Deloitte, FSI - "Tech Select"

1 年

Very well explained ….

回复

要查看或添加评论,请登录

社区洞察

其他会员也浏览了