3
Getting Started with LangChain
In this book, we’ll write a lot of code and test many different integrations and tools. Therefore, in this chapter, I’ll give basic setup instructions for all the libraries needed with the most common dependency management tools such as Docker, Conda, pip, and Poetry. This will ensure that you can run all the practical examples in this book.
Next, we’ll go through cloud provider integrations such as Hugging Face, OpenAI, Google, and Anthropic, and models such as Claude, Mistral, Gemini, and GPT-4. We’ll initialize LLM and chat models, we’ll prompt them using prompt templates, and we’ll chain them using LangChain Expression Language. As other use cases, we’ll test out text-to-image models in OpenAI and Replicate, ...
Get Generative AI with LangChain now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.