1 Developing LLM applications with LangChain
This chapter covers
- LangChain’s architecture and object model
- Most common LLM applications
- Background on LLMs
If you're planning to build an LLM application, you might consider starting from scratch with your preferred programming language and development environment. However, most LLM applications follow similar workflows and share common technical foundations, making it more efficient to use a specialized framework. This approach not only streamlines development but also helps you adopt best practices and avoid common pitfalls. In this book, you'll learn to build LLM applications using the LangChain framework.
LangChain provides a comprehensive set of tools that simplify the process of building, testing, and deploying LLM applications. It abstracts key components like text loaders, vector stores, and LLMs, and integrates seamlessly with over 600 third-party providers. This open-source toolkit enables you to access data sources, manage complex workflows, and allow LLMs to interact with external tools, significantly accelerating development and enhancing functionality. LangChain also includes LangSmith for debugging, testing, and monitoring applications, and LangGraph for building stateful, multi-agent systems.
In this chapter, you'll explore LLMs, LLM-based applications, and familiarize yourself with LangChain's architecture and object model. You'll also dive into coding right away. Let's get started!