LangChain
Chain models, tools and retrieval together
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
Agents & tool use
Tool Use & Function CallingIntermediate
Let the model pick an API and fill its arguments
Language & knowledge
Question Answering & RAGBeginner
Retrieve the evidence first, then answer from it
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
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