finished balancing text prompts to make feedback work well

This commit is contained in:
2026-01-03 01:45:50 -07:00
parent c5893a6de4
commit ffaa7c96ba
9 changed files with 112 additions and 93 deletions

View File

@@ -545,10 +545,15 @@ class JournalPromptGenerator:
self.console.print("[red]Error: ds_feedback.txt not found[/red]")
return []
# Prepare the full prompt with historic context
# Prepare the full prompt with historic context and feedback words
if self.historic_prompts:
historic_context = json.dumps(self.historic_prompts, indent=2)
full_prompt = f"{feedback_template}\n\nPrevious prompts:\n{historic_context}"
# Add feedback words if available
if self.feedback_words:
feedback_context = json.dumps(self.feedback_words, indent=2)
full_prompt = f"{full_prompt}\n\nPrevious feedback themes:\n{feedback_context}"
else:
self.console.print("[yellow]Warning: No historic prompts available for feedback analysis[/yellow]")
return []