Skip to content

feat: add AI-generated feedback summary#46

Open
Asifmd45 wants to merge 1 commit into
rishima17:mainfrom
Asifmd45:feat/ai-feedback-summary
Open

feat: add AI-generated feedback summary#46
Asifmd45 wants to merge 1 commit into
rishima17:mainfrom
Asifmd45:feat/ai-feedback-summary

Conversation

@Asifmd45
Copy link
Copy Markdown
Contributor

@Asifmd45 Asifmd45 commented Jun 3, 2026

Summary

Closes #36

Added AI-generated feedback summaries to the Analytics page
using Groq's Llama 3.3 70B model.
image
image

Changes

  • Added src/utils/aiSummary.js — calls Groq API with lecture metrics
    and feedback sample, returns structured JSON summary
  • Added src/components/AISummaryCard.jsx — displays the summary with
    sections for positives, concerns, and follow-up suggestions
  • Integrated AISummaryCard into Analytics page below existing charts
  • Summary includes sentiment label (positive/neutral/negative)
  • Generated on-demand via "Generate Summary" button, with a Regenerate
    option after first generation

Behavior

  • Teacher clicks "Generate Summary" on any analytics page
  • Llama 3.3 analyzes feedback data and returns:
    • Overall session summary
    • Positive themes
    • Areas of concern
    • Suggested follow-up topics
    • Sentiment label
  • Loading state shown during API call
  • Error state handled gracefully

Setup Required

Add a .env.local file in the lecture-pulse directory:
VITE_GROQ_API_KEY=your_groq_api_key
Get a free key at https://console.groq.com

Affected Files

  • lecture-pulse/src/utils/aiSummary.js
  • lecture-pulse/src/components/AISummaryCard.jsx
  • lecture-pulse/src/pages/Analytics.jsx
  • lecture-pulse/vite.config.js

Type of Change

  • New component
  • Analytics / Charts
  • AI Features

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 3, 2026

@Asifmd45 is attempting to deploy a commit to the Rishima's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] : Generate AI-Powered Lecture Insights and Summaries

1 participant