feat(ai): Implement multi-call AI grouping and summarization #56

Merged
eleith merged 1 commits from gemini/feat/llm-dynamic-grouping-additive into main 2025-09-05 19:11:22 +00:00
1 Commits
Author SHA1 Message Date
eleith 306b6f5d9d feat(ai): Implement multi-call AI grouping and summarization
This commit enhances the AI view to be more reliable and performant.

The AI digest generation now makes multiple calls to the LLM to create its own primary and sub-groups, replacing the previous single-call, category-based approach. The overview summary has been removed in favor of per-group summaries to manage context length. To improve reliability, the LLM calls for summarization and sub-grouping have been separated, and the timeout handling has been refactored to use a per-try timeout, making it more resilient to transient server errors.

The email template has also been updated to include the primary group summaries, aligning its purpose with the overview HTML page.
2025-09-05 19:09:34 +00:00