Tools and platforms

LangChain

LangChain is an open-source software framework, available for Python and JavaScript, that provides building blocks for applications powered by language models, such as model interfaces, prompt templates, retrieval, tool calling and agents.

LangChain is one of the most widely used developer frameworks for building with language models. It gives developers a common set of components for the parts that most AI applications share: calling a model, formatting prompts, retrieving documents, letting a model call tools, and chaining these steps together. Its companion libraries cover agents and monitoring. For buyers, LangChain appearing in a proposal signals a code-based build, as opposed to a no-code tool, and its use has trade-offs worth understanding.

How it works

The core library offers standard interfaces so that models from different providers, vector stores and document loaders can be swapped with little code change. Developers compose these into pipelines: load documents, split them into chunks, embed and store them, then at question time retrieve passages and pass them to a model, which is the retrieval-augmented generation pattern. Tool calling lets a model request actions such as searching a database or sending an email.

LangGraph, from the same team, is a library for building stateful, multi-step AI agents as graphs of steps, with support for loops, branching, memory, human approval points and resuming after interruption. LangSmith is the team's commercial platform for tracing, debugging and evaluating applications, whether or not they use LangChain itself, and is an example of observability tooling for AI systems.

An example: a builder uses LangChain to connect a support assistant to a help centre and a ticketing API, LangGraph to manage a flow where the assistant gathers details, looks up the order and escalates to a person, and LangSmith to inspect conversations that went wrong.

What it means for cost

Using a framework can shorten build time by reusing tested components, and live figures for builds naming LangChain are on the LangChain tool page. Its abstractions also add a layer to learn and maintain, and some teams prefer to call model APIs directly for simple applications. Questions worth asking a builder:

  • Which parts of the framework are used, and why is it needed for this build?
  • How will the application be tested and monitored once live?
  • Is the code structured so another developer could take it over?

The framework itself is free and open-source; running costs come from model calls, hosting, vector storage and any paid monitoring service.

Common questions

What is the difference between LangChain and LangGraph?

LangChain provides the components for working with models, data and tools. LangGraph is a separate library for orchestrating those components into stateful agents and workflows, with explicit control over each step. Many agent builds use both together.

Is LangChain needed to build a RAG system?

No. A RAG system can be built by calling a model API and a vector database directly, or with other frameworks such as LlamaIndex. LangChain is a convenience, and its value grows with the number of components and providers involved.

Related terms

Pricing a build that involves LangChain? Send the brief and get a fixed price set next to the market range.Get a quote