Published on

How do langchain langgraph and langsmith relate to each other?

This article explains the difference between langchain, langgraph and langsmith and how they relate to each other.


LangChain, LangGraph, and LangSmith are all tools designed to enhance the development and deployment of large language models (LLMs). While they serve different purposes, they are interconnected and often used together to create more robust and effective LLM applications.

  • LangChain is a framework that provides a modular interface for building applications powered by LLMs. It offers a variety of components, such as chains, modules, and prompts, that can be combined to create complex workflows. LangChain is particularly useful for integrating LLMs into existing applications or creating new ones from scratch. It considers agents as more like objects with properties.

  • LangGraph is a graph-based representation of LLM applications. It allows developers to go much deeper and understand the flow of data and control through their applications through nodes. LangGraph is generally seen as much deeper and more complex, but also gives you more control.

  • LangSmith is a platform for managing and deploying LLM applications. It offers features such as version control, experimentation tracking, and deployment automation. LangSmith can help teams streamline their LLM development process and ensure that their applications are scalable and reliable.

Relationship between the tools:

LangChain is used to build LLM applications using a modular approach. LangGraph built on top of LangChain and is designed to give more structure to handle complex use cases that are more agentic in nature. LangGraph is built on top of LangChain and completely interoperable with the LangChain ecosystem. LangSmith is used to manage and deploy LLM applications. How they work together:

Developers can use LangChain to create an LLM application. They can then use LangGraph to visualize the application's structure and identify potential areas for improvement. Finally, they can use LangSmith to deploy the application to production and manage its lifecycle.

In summary, LangChain, LangGraph, and LangSmith are complementary tools that can be used together to create and manage powerful LLM applications.

Boost your productivity. Run prompts on a schedule.

Instructo is a multi agent large language model that can follow your instructions and work while you sleep.

2024 Instructo