Skip to content
New this week26 prompts for Sora, Veo and Runway video workflows.
Explore video prompts→
AIPrompt123Prompt library

Search AIPrompt123

Search prompts, categories, platforms and repositories

LLM frameworksPythonMIT

langchain-ai/langchain

LangChain is the most widely adopted toolkit for building applications on top of language models. It provides a common interface across providers, composable runnable chains, tool calling, retrieval and memory, plus a large ecosystem of integrations. The project is mature but moves quickly; pin versions and read the migration notes between major releases.

118.0k stars19.2k forks3.4k contributors380 open issuesUpdated

What it does

  • Wraps model providers, embeddings, vector stores and tools behind consistent interfaces.
  • Composes prompts, retrievers and model calls into runnable pipelines with streaming and tracing.
  • Supports agents, tool calling, structured output and human-in-the-loop checkpoints.

Key features

  • Provider-agnostic chat and embedding interfaces.
  • Expression language (LCEL) for declarative pipelines.
  • First-class integrations with vector databases and observability tools.
  • Separate packages for core, community integrations and partner providers.

How to install it

Commands are copied from the project documentation at the time of review. Check the repository for the current version.

Python
pip install -U langchain langchain-openai

Add the provider package you use.

JavaScript
npm install langchain @langchain/openai

Alternatives to consider

langchain is a strong default for llm frameworks, but the right choice depends on your stack, licence constraints and how much control you need. These are the projects we compare most often.

LlamaIndexSemantic KernelDSPy

Prompts that pair with it

All prompts →
Verified Knowledge · FAQ

langchain FAQ

Adoption questions we hear most often about this project.

Related repositories

LLM frameworks · Python

A framework for programming LLM pipelines and optimising prompts against a metric.

28.0k2.4kMIT

LLM frameworks · C#

Microsoft's SDK for integrating LLMs into C#, Python and Java applications.

26.0k4.1kMIT

LLM frameworks · TypeScript

A TypeScript toolkit for building AI applications with streaming, tools and UI hooks.

18.0k2.9kApache-2.0