1. Learn
  2. /
  3. Courses
  4. /
  5. Working with DeepSeek in Python

Connected

Exercise

Zero-shot prompting with reviews

As well as answering questions, transforming text, and generating new text, DeepSeek models can also be used for classification tasks, such as categorization and sentiment analysis.

In this exercise, you'll explore using DeepSeek's chat models for sentiment classification using reviews from an online shoe store called Toe-Tally Comfortable. Ideally, you're looking for outputs in the form of:

1. Review text = <1-5 rating>
2. Review text = <1-5 rating>
3. ...

Instructions

100 XP
  • Define a prompt to classify the sentiment of the statements provided using the numbers 1 to 5 (positive to negative)— don't provide any example just yet!
  • Create a request to send this prompt to deepseek-ai/DeepSeek-V3.