LangChain is a framework for developing applications powered by large language models (LLMs).
LangChain simplifies every stage of the LLM application lifecycle:
Concretely, the framework consists of the following open-source libraries:
langchain-core
: Base abstractions and LangChain Expression Language.langchain-community
: Third party integrations.
langchain-openai
, langchain-anthropic
, etc.): Some integrations have been further split into their own lightweight packages that only depend on langchain-core
.langchain
: Chains, agents, and retrieval strategies that make up an application's cognitive architecture.The broader ecosystem includes:
We recommend following our Quickstart guide to familiarize yourself with the framework by building your first LangChain application.
See here for instructions on how to install LangChain, set up your environment, and start building.
note
These docs focus on the Python LangChain library. Head here for docs on the JavaScript LangChain library.
Use casesβIf you're looking to build something specific or are more of a hands-on learner, check out our use-cases. They're walkthroughs and techniques for common end-to-end tasks, such as:
Expression LanguageβLangChain Expression Language (LCEL) is the foundation of many of LangChain's components, and is a declarative way to compose chains. LCEL was designed from day 1 to support putting prototypes in production, with no code changes, from the simplest βprompt + LLMβ chain to the most complex chains.
Trace and evaluate your language model applications and intelligent agents to help you move from prototype to production.
π¦πΈοΈ LangGraphβBuild stateful, multi-actor applications with LLMs, built on top of (and intended to be used with) LangChain primitives.
π¦π LangServeβDeploy LangChain runnables and chains as REST APIs.
SecurityβRead up on our Security best practices to make sure you're developing safely with LangChain.
Additional resourcesβ ComponentsβLangChain provides standard, extendable interfaces and integrations for many different components, including:
IntegrationsβLangChain is part of a rich ecosystem of tools that integrate with our framework and build on top of it. Check out our growing list of integrations.
GuidesβBest practices for developing with LangChain.
API referenceβHead to the reference section for full documentation of all classes and methods in the LangChain and LangChain Experimental Python packages.
ContributingβCheck out the developer's guide for guidelines on contributing and help getting your dev environment set up.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4