-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: tweak prompts for summaries and action items
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
Showing
2 changed files
with
20 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||
""" |