1. Learn
  2. /
  3. Courses
  4. /
  5. Working with Llama 3

Connected

Exercise

Creating a conversational class

One of the most popular applications for LLMs like Llama is conversational chatbots, which allow users to send messages, get a response, and ask follow-up questions using a message history.

In this exercise, you'll create a class called Conversation that will allow you to create conversation with minimal code.

Instructions 1/2

undefined XP
    1
    2
  • Complete the __init__ method of the Conversation class to define the LLM, system prompt, and history, which is the system message, including the prompt, and the history added together.