finished balancing text prompts to make feedback work well
This commit is contained in:
@@ -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 []
|
||||
|
||||
Reference in New Issue
Block a user