Introduction-to-LLM-and-RAG

Lab: Building a Classification Pipeline Using a Generative AI

Objective
The goal of this practical work is to build a sentiment classification pipeline using a generative AI and leveraging the dataset available on Kaggle: IMDB Movie Ratings Sentiment Analysis. You will experiment with tailored prompts to produce consistent and usable outputs in JSON format.


General Guidelines

  1. Purpose of the Assignment
    Design a pipeline that:
    • Accepts a text input (excerpts from movie reviews).
    • Generates a sentiment classification (positive or negative) using a generative AI.
    • Returns the response in a structured JSON format.
  2. Optional Evaluation
    Once the pipeline is built, you can evaluate its quality by comparing its predictions with the true labels in the dataset.

  3. Customization Encouraged
    This assignment is intentionally open-ended: you are encouraged to explore different approaches and demonstrate creativity.

Resources to Assist You

To succeed in this assignment, consider researching and familiarizing yourself with the following concepts:


Tips