Overview
In this part, we look into using large language models programmatically through APIs. As examples of APIs, we use APIs from OpenAI and HuggingFace. The chapters and their contents are as follows.
-
Large Language Model APIs introduces the APIs from OpenAI and HuggingFace and demonstrates how to use them.
-
Chatting with a Large Language Model outlines how to build a chatbot using a large language model through an API.
-
Additional Context with Retrieval Augmented Generation shows how to use a large language model with additional context through retrieval augmented generation.
Note that although we use large language models through an API, it is also possible to run large language models locally, given sufficient hardware. We will look into this briefly later in the course.