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

Connected

Exercise

Creating a JSON inventory list

Being able to use LLMs to generate structured outputs means that they can be used to reliably exchange information between systems with minimal processing.

You'll test your prompting skills by converting a stock inventory list written in natural language into JSON format. A model and system prompt have already been defined for you to use.

Instructions

100 XP
  • Complete the response_format dictionary to generate responses in JSON format.