Skip to content

Scrum 29 backend generate summary for uploaded resource#20

Merged
Ligo-code merged 5 commits intomainfrom
SCRUM-29-backend-generate-summary-for-uploaded-resource
Jan 21, 2026
Merged

Scrum 29 backend generate summary for uploaded resource#20
Ligo-code merged 5 commits intomainfrom
SCRUM-29-backend-generate-summary-for-uploaded-resource

Conversation

@Ligo-code
Copy link
Collaborator

@Ligo-code Ligo-code commented Jan 20, 2026

Added AI-powered summary generation for resources using Gemini API.
image
image

Kseniia Zakharova added 4 commits January 19, 2026 16:16
…maryGenerator service with AI-powered text summarization, input length validation (100-50000 chars), and smart truncation by word boundaries
…nt retry mechanism for Gemini API calls with 3 attempts and exponential backoff to handle rate limits, timeouts, and network errors. add timeout and improve error handling in AI service. Keep original error messages for configuration issues while providing user-friendly messages for temporary AI failures
…mary generation endpoint with specific HTTP status codes for validation, configuration, and service errors.
@nataliasirt
Copy link
Collaborator

Than you great job! Solid implementation with clear validation, retry logic, and error handling. The new summary endpoint follows existing auth/resource patterns and saves the summary correctly.
The only review point I have is the input length mismatch (MAX_INPUT_CHARS=50000 vs TEXT_CONTENT_MAX_LENGTH=100000). It might cause real, user-visible failures in production. See summaryGenerator.ts (line 4) vs constants.ts (line 3).

@Ligo-code
Copy link
Collaborator Author

Good catch! I originally planned to sync these limits but got caught up in implementing the retry logic and forgot to align them. Will fix this now by using LIMITS.TEXT_CONTENT_MAX_LENGTH in the summary generator to ensure consistency. Thanks for pointing this out! 👍

@Ligo-code Ligo-code merged commit 95bf085 into main Jan 21, 2026
2 checks passed
@Ligo-code Ligo-code deleted the SCRUM-29-backend-generate-summary-for-uploaded-resource branch January 21, 2026 14:49
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.

2 participants