Skip to content

Summarize user comments for image gallery with AI #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from

Conversation

hikalkan
Copy link
Member

@hikalkan hikalkan commented Apr 24, 2025

Description

Adds a "Summary of the User Comments" card just above the comments for an image.

Screenshot

image

Further improvements

  • Currently, we need to refresh the page to be able to view the new summary after adding a new comment. It would be good if we make that new card a widget and auto-refresh it after a comment added/removed.

Notes

No need to merge this. I created this PR for that article: https://abp.io/community/articles/using-microsoft-ai-extensions-library-and-openai-to-summarize-user-comments-gj1lusg7

@hikalkan hikalkan requested a review from Copilot April 24, 2025 10:45
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces an AI-based summarization feature for user comments on gallery images. Key changes include:

  • Adding an AI summarizer utility to generate a concise summary from an array of comment texts.
  • Updating the data model and migration to include the CommentsSummary field.
  • Modifying the gallery detail page and event listener to display and update the summary.

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/CmsKitDemo/Utils/AiCommentSummarizer.cs New utility to generate summary using AI services
src/CmsKitDemo/Services/Dtos/GalleryImageDto.cs Added CommentsSummary property
src/CmsKitDemo/Pages/Gallery/Detail.cshtml Updated view to display the comments summary card
src/CmsKitDemo/Migrations/CmsKitDemoDbContextModelSnapshot.cs Updated model snapshot with CommentsSummary column
src/CmsKitDemo/Migrations/20250424102602_Added_Summary_To_GalleryImage.cs Migration to add CommentsSummary column
src/CmsKitDemo/EventHandlers/GalleryImageCommentListener.cs Event handler to update the CommentsSummary after comment events
src/CmsKitDemo/Entities/GalleryImage.cs Updated entity to include the CommentsSummary property
Files not reviewed (1)
  • src/CmsKitDemo/CmsKitDemo.csproj: Language not supported

@hikalkan hikalkan closed this Apr 28, 2025
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.

1 participant