Skip to content

LangChain

Chain models, tools and retrieval together

LangChain Tool Open source

What it is

LangChain is an open-source framework released in 2022 for composing language models, tools and retrieval into applications. It offers abstractions for models, prompts, tools, retrievers and memory, with Python and JavaScript implementations. It addresses how to assemble and orchestrate components when building model-driven flows.

By abstracting "model + tools + retrieval" into composable pieces, it became the widely adopted glue of early LLM applications.

Key specs

Abstractions
Models, prompts, tools, retrievers, memory
Languages
Python and JavaScript

Capabilities

Related concepts

AI Engineering, Safety & Ethics

Agents & Tool UseIntermediate

Let a model do more than answer: search, call APIs, run code — and decide the next step from what came back

4Linked
Figures 1 · Data 1

AI Engineering, Safety & Ethics

Retrieval-Augmented GenerationBeginner

Rather than cramming knowledge into parameters, leave it outside and look it up on demand — an open-book exam instead of a closed-book one

4Linked
Figures 2 · Data 1

Comparable products

Hugging Face

Transformers

One API to load and train pretrained models

2Linked
Tool Open source
2018

Ollama

Ollama

Run open models locally with one command

2Linked
Tool Open source
2023

Pinecone

Pinecone

A managed vector database for similarity search

2Caps
Infrastructure Closed
2019