From bb1cb946a2d9fcb6d85fd0a1454f72e574329858 Mon Sep 17 00:00:00 2001 From: Simon Podhajsky Date: Mon, 1 Apr 2024 05:05:18 +0000 Subject: [PATCH] Adjust writer/critic instructions --- src/cover_letter_automation/agents/critic.py | 1 + src/cover_letter_automation/agents/writer.py | 7 +++---- src/cover_letter_automation/session.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cover_letter_automation/agents/critic.py b/src/cover_letter_automation/agents/critic.py index 232b109..12e6e45 100644 --- a/src/cover_letter_automation/agents/critic.py +++ b/src/cover_letter_automation/agents/critic.py @@ -15,6 +15,7 @@ - **Engagement**: Does the cover letter grab the reader's attention and make them want to learn more? - **Whimsical tone**: Does the cover letter have a unique voice or perspective that sets it apart? + Can you try an unusual turn of phrase? That said, make sure to not go overboard with this. - **Completeness**: Does the cover letter provide all the information required by the job description? diff --git a/src/cover_letter_automation/agents/writer.py b/src/cover_letter_automation/agents/writer.py index cea2840..a3fb9de 100644 --- a/src/cover_letter_automation/agents/writer.py +++ b/src/cover_letter_automation/agents/writer.py @@ -26,10 +26,9 @@ should you make anything up. - **Completeness**: Ensure that the cover letter contains all the requirements the job description asks for. -- **Whimsical tone**: Be professional, but not *too* formal; at the same time, be a little - whimsical, but don't go overboard with it. Try one or two unusual turns of phrase. -- **Principles of good writing.** Avoid cliches (e.g. "since the dawn of time"/"since the outset of - my career"). Use few adjectives and no adverbs unless necessary. Be concise. Use active voice. +- **Principles of good writing.** Be concise, but not at the expense of your specific work + experience. Avoid cliches. Use few adjectives and no adverbs. Use active voice. +- **Voice**: Be whimsical if prompted by the Critic. Otherwise, keep the tone professional. Skip the header; address the cover letter to Sir/Madam unless the job description indicated otherwise. diff --git a/src/cover_letter_automation/session.py b/src/cover_letter_automation/session.py index a33c18f..41bf8d3 100644 --- a/src/cover_letter_automation/session.py +++ b/src/cover_letter_automation/session.py @@ -66,9 +66,9 @@ def setup_and_start_session( conversation = client.initiate_chat( recipient=group_manager, message="Please start the extraction from the job description, then write a cover letter based on a resume.", - summary_method="reflection_with_llm", + summary_method="last_msg", # Avoid a reflection price tag. clear_history=True, - max_turns=20, + max_turns=22, ) return conversation