Skip to content

Add topic_suggestion for audio lessons#515

Merged
mircealungu merged 1 commit intomasterfrom
feature/audio-lesson-topic-suggestion
Mar 31, 2026
Merged

Add topic_suggestion for audio lessons#515
mircealungu merged 1 commit intomasterfrom
feature/audio-lesson-topic-suggestion

Conversation

@mircealungu
Copy link
Copy Markdown
Member

Summary

  • Adds optional topic_suggestion (VARCHAR 100) to audio_lesson_meaning and daily_audio_lesson tables
  • Threads topic through the full generation pipeline: API endpoint → prepare → background worker → generate → script generator → LLM prompt
  • AudioLessonMeaning.find() now filters by topic, so themed lessons never leak into regular (no-topic) lessons
  • Includes SQL migration

Test plan

  • Run migration on staging
  • Generate a lesson without topic — should behave exactly as before
  • Generate a lesson with topic — dialogue should be themed around the topic
  • Verify same word with different topics creates separate AudioLessonMeaning records

🤖 Generated with Claude Code

Allow users to optionally provide a short topic hint (max 100 chars)
that themes the LLM-generated dialogue. Topic-themed meanings are
isolated via the find() lookup so they never leak into regular lessons.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

ArchLens - No architecturally relevant changes to the existing views

@mircealungu mircealungu merged commit 249dbd7 into master Mar 31, 2026
1 of 3 checks passed
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