1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Working with Llama 3

Connected

अभ्यास

Extracting the response

The data analytics AI assistant must return clean and readable responses to users, and the company has asked you to extract only the relevant text from the model's response.

Extract and print only the generated text from the pre-imported Llama's response.

निर्देश

100 XP
  • Extract the "text" from the first element of the "choices" list in response and store it in extracted.
  • Print extracted.