|
system_prompt = """You are a researcher analysing responses from an open text dataset. You are analysing a single column from this dataset that is full of open text responses called '{column_name}'. The context of this analysis is '{consultation_context}'.""" |
|
|
|
initial_table_prompt = """The open text data is shown in the following table that contains two columns, Reference and Response. Response table: |
|
{response_table} |
|
|
|
Your task is to create one new markdown table with the headings 'General Topic', 'Subtopic', 'Sentiment', 'Response references', and 'Summary'. |
|
In the first column identify general topics relevant to responses. Create as many general topics as you can. |
|
In the second column list subtopics relevant to responses. Make the subtopics as specific as possible and make sure they cover every issue mentioned. The subtopic should never be blank or empty. |
|
{sentiment_choices}. |
|
In the fourth column list each specific Response reference number that is relevant to the Subtopic, separated by commas. Do no write any other text in this column. |
|
In the fifth column, write a short summary of the subtopic based on relevant responses - highlight specific issues that appear. |
|
Do not add any other columns. Do not add any other text to your response. |
|
|
|
New table:""" |
|
|
|
|
|
|
|
prompt2 = "" |
|
|
|
prompt3 = "" |
|
|
|
|
|
|
|
add_existing_topics_system_prompt = system_prompt |
|
|
|
force_existing_topics_prompt = """Create a new markdown table with the headings 'Placeholder', 'Subtopics', 'Sentiment', 'Response references', and 'Summary'. |
|
In the first column, write 'Not assessed'. In the second column, assign Subtopics from the above table to Responses. Assign topics only if they are very relevant to the text of the Response. The assigned Subtopics should be chosen from the topics table above, exactly as written. Do not add any new topics, or modify existing topic names.""" |
|
|
|
allow_new_topics_prompt = """Create a new markdown table with the headings 'General Topic', 'Subtopic', 'Sentiment', 'Response references', and 'Summary'. |
|
In the first and second columns, assign General Topics and Subtopics to Responses. Assign topics from the Topics table above only if they are very relevant to the text of the Response. Fill in the General Topic and Sentiment for the Subtopic if they do not already exist. If you find a new topic that does not exist in the Topics table, add a new row to the new table. Make the General Topic and Subtopic as specific as possible. The subtopic should never be blank or empty.""" |
|
|
|
add_existing_topics_prompt = """Responses are shown in the following Response table: |
|
{response_table} |
|
|
|
Topics known to be relevant to this dataset are shown in the following Topics table: |
|
{topics} |
|
|
|
Your task is to create one new markdown table, assigning responses from the Response table to existing topics, or to create new topics if no existing topics are relevant. |
|
{topic_assignment} |
|
{sentiment_choices}. |
|
In the fourth column list each specific Response reference number that is relevant to the Subtopic, separated by commas. Do no write any other text in this column. |
|
In the fifth column, write a short summary of the Subtopic based on relevant responses - highlight specific issues that appear. |
|
Do not add any other columns. Do not add any other text to your response. |
|
|
|
New table:""" |
|
|
|
|
|
|
|
|
|
summarise_topic_descriptions_system_prompt = system_prompt |
|
|
|
summarise_topic_descriptions_prompt = """Below is a table with number of paragraphs related to the data from the open text column: |
|
|
|
'{summaries}' |
|
|
|
Your task is to make a consolidated summary of the above text. {summary_format}. Return only the summary and no other text. |
|
|
|
Summary:""" |
|
|
|
|
|
|
|
|
|
create_general_topics_system_prompt = system_prompt |
|
|
|
create_general_topics_prompt = """Subtopics known to be relevant to this dataset are shown in the following Topics table: |
|
{topics} |
|
|
|
Your task is to create a General Topic name for each Subtopic. The new Topics table should have the columns 'General Topic' and 'Subtopic' only. Write a 'General Topic' text label relevant to the Subtopic next to it in the new table. The text label should describe the general theme of the Subtopic. Do not add any other text, thoughts, or notes to your response. |
|
|
|
New Topics table:""" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|