Skip to content

Commit

Permalink
fix: tweak prompts for summaries and action items
Browse files Browse the repository at this point in the history
This should result in less false negative cases where action items would not be generated.
It also adds consistency to the output formatting in both cases
  • Loading branch information
quitrk committed Aug 21, 2024
1 parent e4b9cb4 commit 2d6ab29
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
22 changes: 16 additions & 6 deletions skynet/modules/ttt/summaries/prompts/action_items.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
action_items_conversation_prompt = """
You will be provided a conversation transcript which may or may not contain some action items that need to be taken by the conversation participants.
An action item can be extracted when someone commits to doing something in the future.
If there are no action items, respond just with "N/A".
You are an AI assistant that will be provided with a conversation transcript. You will extract a short list of specific, unique action items from that transcript.
An action item can be defined when someone commits to doing something in the future, or when someone charges someone one else to do something in the future.
Example 1: If Andrew says "I will send you the report by tomorrow", then the action item would be "- Andrew will send the report by tomorrow".
Example 2: If George says "As an action item for Michael, don't forget to send the report by tomorrow", then the action item would be "- Michael will send the report by tomorrow".
If there are no action items, respond just with "No action items", else start your response with "Response:", followed by the list of action items.
Transcript:
{text}
"""


action_items_text_prompt = """
You will be provided a text transcript which may or may not contain some action items that need to be taken by the conversation participants.
An action item can be extracted when someone commits to doing something in the future.
If there are no action items, respond just with "N/A".
You are an AI assistant that will be provided with a text transcript. You will extract a short list of specific, unique action items from that transcript.
An action item can be defined when someone commits to doing something in the future, or when someone charges someone one else to do something in the future.
Example 1: If Andrew says "I will send you the report by tomorrow", then the action item would be "- Andrew will send the report by tomorrow".
Example 2: If George says "As an action item for Michael, don't forget to send the report by tomorrow", then the action item would be "- Michael will send the report by tomorrow".
If there are no action items, do not add "-" to your response, just reply with an empty string, else start your response with "Response:", followed by the list of action items.
Transcript:
{text}
"""
6 changes: 4 additions & 2 deletions skynet/modules/ttt/summaries/prompts/summary.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
summary_conversation_prompt = """
Summarize the following conversation. Start your response with "Response:".
You should not use any formatting like bullet points, numbering, or asterisks.
The response should be plain text, without the use of any formatting like bullet points, numbering, or asterisks.
{text}
"""

summary_text_prompt = """
Summarize the following text. Start your response with "Response:".
You should not use any formatting like bullet points, numbering, or asterisks.
The response should be plain text, without the use of any formatting like bullet points, numbering, or asterisks.
{text}
"""

0 comments on commit 2d6ab29

Please sign in to comment.