Building applications with LLMs through composability
Go to file
2025-07-31 12:22:23 -04:00
.devcontainer chore: update branch with changes from master (#32277) 2025-07-28 10:39:41 -04:00
.github feat(core): content block factories + ids + docs + tests (#32316) 2025-07-31 11:12:00 -04:00
.vscode chore: update branch with changes from master (#32277) 2025-07-28 10:39:41 -04:00
cookbook fix: use new Google model names in examples (#32288) 2025-07-28 19:03:42 +00:00
docs feat(core): content block factories + ids + docs + tests (#32316) 2025-07-31 11:12:00 -04:00
libs fix: revert pydantic bump (#32355) 2025-07-31 12:22:23 -04:00
scripts fix: scripts/ errors 2025-07-28 15:03:25 -04:00
.editorconfig chore: update branch with changes from master (#32277) 2025-07-28 10:39:41 -04:00
.gitattributes
.gitignore chore: update branch with changes from master (#32277) 2025-07-28 10:39:41 -04:00
.markdownlint.json chore: update branch with changes from master (#32277) 2025-07-28 10:39:41 -04:00
.pre-commit-config.yaml chore: update branch with changes from master (#32277) 2025-07-28 10:39:41 -04:00
.readthedocs.yaml chore: update branch with changes from master (#32277) 2025-07-28 10:39:41 -04:00
CITATION.cff rename repo namespace to langchain-ai (#11259) 2023-10-01 15:30:58 -04:00
LICENSE Library Licenses (#13300) 2023-11-28 17:34:27 -08:00
Makefile chore: update branch with changes from master (#32277) 2025-07-28 10:39:41 -04:00
MIGRATE.md chore: update branch with changes from master (#32277) 2025-07-28 10:39:41 -04:00
poetry.toml multiple: use modern installer in poetry (#23998) 2024-07-08 18:50:48 -07:00
pyproject.toml chore: update branch with changes from master (#32277) 2025-07-28 10:39:41 -04:00
README.md fix: update alt attribute for GitHub Codespace badge in README 2025-07-28 15:04:57 -04:00
SECURITY.md fix: update link text for reporting security vulnerabilities in SECURITY.md 2025-07-28 15:05:31 -04:00
uv.lock feat(core): content block factories + ids + docs + tests (#32316) 2025-07-31 11:12:00 -04:00
yarn.lock box: add langchain box package and DocumentLoader (#25506) 2024-08-21 02:23:43 +00:00

LangChain Logo

Release Notes CI PyPI - License PyPI - Downloads GitHub star chart Open Issues Open in Dev Containers Open in Github Codespace Twitter CodSpeed Badge

Note

Looking for the JS/TS library? Check out LangChain.js.

LangChain is a framework for building LLM-powered applications. It helps you chain together interoperable components and third-party integrations to simplify AI application development — all while future-proofing decisions as the underlying technology evolves.

pip install -U langchain

To learn more about LangChain, check out the docs. If youre looking for more advanced customization or agent orchestration, check out LangGraph, our framework for building controllable agent workflows.

Why use LangChain?

LangChain helps developers build applications powered by LLMs through a standard interface for models, embeddings, vector stores, and more.

Use LangChain for:

  • Real-time data augmentation. Easily connect LLMs to diverse data sources and external / internal systems, drawing from LangChains vast library of integrations with model providers, tools, vector stores, retrievers, and more.
  • Model interoperability. Swap models in and out as your engineering team experiments to find the best choice for your applications needs. As the industry frontier evolves, adapt quickly — LangChains abstractions keep you moving without losing momentum.

LangChains ecosystem

While the LangChain framework can be used standalone, it also integrates seamlessly with any LangChain product, giving developers a full suite of tools when building LLM applications.

To improve your LLM application development, pair LangChain with:

  • LangSmith - Helpful for agent evals and observability. Debug poor-performing LLM app runs, evaluate agent trajectories, gain visibility in production, and improve performance over time.
  • LangGraph - Build agents that can reliably handle complex tasks with LangGraph, our low-level agent orchestration framework. LangGraph offers customizable architecture, long-term memory, and human-in-the-loop workflows — and is trusted in production by companies like LinkedIn, Uber, Klarna, and GitLab.
  • LangGraph Platform - Deploy and scale agents effortlessly with a purpose-built deployment platform for long running, stateful workflows. Discover, reuse, configure, and share agents across teams — and iterate quickly with visual prototyping in LangGraph Studio.

Additional resources

  • Tutorials: Simple walkthroughs with guided examples on getting started with LangChain.
  • How-to Guides: Quick, actionable code snippets for topics such as tool calling, RAG use cases, and more.
  • Conceptual Guides: Explanations of key concepts behind the LangChain framework.
  • LangChain Forum: Connect with the community and share all of your technical questions, ideas, and feedback.
  • API Reference: Detailed reference on navigating base packages and integrations for LangChain.