LangChain is an open-source framework for building large-language-model applications, introduced by Harrison Chase in 2022. It provides components for connecting models with external data sources and tools in Python and JavaScript/TypeScript.
It is used in applications such as retrieval-augmented generation (RAG), which incorporates retrieved material into generated answers.