1. Learn
  2. /
  3. Courses
  4. /
  5. Databricks with the Python SDK

Connected

Exercise

Proofreading text

Have text that you want to proofread? Use the Databricks SDK to ask an AI model to proofread your text for you. It will send you back the proofread version of your text and a list of the specific changes it made.

Instructions

100 XP
  • Query the class in the workspace client used to query AI models.
  • Fill in the role used to provide instructions to the AI model on how to answer future queries.
  • Fill in the role used when sending a query to the AI model.
  • Print the message details from the AI model response.