Technical

What is LangChain?

An open-source framework for building LLM-powered applications and AI agents in Python and JavaScript.

Definition

LangChain is an open-source developer framework that provides abstractions and integrations for building applications powered by large language models. It includes components for prompt management, memory, chains (sequences of LLM calls), tool use, and agents. LangChain is developer-focused — you write code to build agents. It's commonly used for proof-of-concept and custom production AI systems where developers want low-level control.

Example

A developer builds a customer service bot using LangChain: a retrieval chain that searches a vector database, feeds results into a prompt template, and routes responses through a guardrails layer. The whole system is code in Python.

LangChain vs ai-agent: What's the difference?

LangChain

An open-source framework for building LLM-powered applications and AI agents in Python and JavaScript.

ai-agent

LangChain is a framework developers use to build AI agents. Shogo is a platform where non-developers deploy AI agents without writing LangChain code.

Related terms

Back to glossary