« Back to Glossary Index

LangChain is an open-source LLM integration framework for developing applications powered by language models. It enables applications that can connect a language model to other sources of data and allow it to interact with its environment.


LangChain provides components and chains for working with language models, as well as examples and guides for common use cases. LangChain is part of a rich ecosystem of tools that integrate with and build on top of it.


LangChain’s power lies in its six key modules listed from least to most complex:

  1. Model I/O: Interface with language models, iow the building blocks to interface with any language model
  2. Retrieval: RAG, Interface with application-specific data
  3. Chains: Construct sequences of calls.
  4. Agents: Let chains choose which tools to use given high-level directives
  5. Memory: Persist application state between runs of a chain
  6. Callbacks: Log and stream intermediate steps of any chain

Another way of segmenting LangChain is dividing it into  its 6 components:

  1. Schema: Defines the structure of data.
  2. Models: Machine learning models for various tasks.
  3. Prompts: Predefined queries or statements for triggering actions.
  4. Indexes: Data structures for efficient information retrieval.
  5. Memory: Responsible for storing and recalling information.
  6. Chains: Sequences of actions or processes.

See LangChain docs for more info.

« Back to Glossary Index