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

Connected

Exercise

Single-turn conversation

Time to give your Conversation class a go! You'll use this class to create a travel recommendation chatbot, that takes a description or specification of what you're looking for, and the model returns a location.

The Conversation class you created in the previous exercise is still available with the following methods:

  • __init__(self, llm: Llama, system_prompt='', history=[])
  • create_completion(self, user_prompt='')

Instructions

100 XP
  • Instantiate an Conversation class with the instruction defined and the pre-loaded llm.
  • Send a prompt to the model to get a travel recommendation (feel free to add your own prompt here).