Chapter 4: Models and Prompts

As we explored different modules of LangChain in the last chapter, we will begin with understanding each of these modules separately starting with Models and Prompts in this one. Apart from theoretical explanations, we would also be going through some demo codes for a better understanding of the different concepts. So let’s get going, starting with Models.

4.1 Models

At the heart of every language model application is the model itself. LangChain equips you with the tools needed to connect and work with any language model. Models are of two types as we have briefly described in the previous chapter.

4.1.1 LLM

Large Language Model (LLM) serve as a fundamental element within LangChain. Rather than offering its proprietary ...

Get LangChain in your Pocket 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.