Fix LLM reasoning mismatches by validating title and strengthening prompt
Add title validation in mood router to detect when the LLM returns reasoning for a different movie than the jellyfin_id it selected. Also add explicit prompt instruction to double-check reasoning matches the selected movie. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,7 @@ Rules:
|
||||
- Rank by how well they match the described mood, not by rating alone
|
||||
- If the mood mentions kids, children, or family, only recommend age-appropriate content (G, PG, or PG-13)
|
||||
- Return exactly {max_results} recommendations, or fewer only if the library has very few matches
|
||||
- IMPORTANT: Double-check that your reasoning accurately describes the specific movie you selected. The title, jellyfin_id, and reasoning MUST all refer to the same movie. Do not mix up details between different movies in the list.
|
||||
|
||||
Respond with ONLY valid JSON in this exact format, no other text:
|
||||
{{
|
||||
|
||||
Reference in New Issue
Block a user