The Summaries Tab

The Summaries Tab

Oct 17, 2024

The summaries tab

the summary prompts table stores a list of different prompts. each has a numerical ID.
When you open the New Prompt modal, you can enter a new summary prompt. This will apply this new summary procedure to each of the sessions/conversations associated with the current interview which we can see in the answers table. (In future this prompt will be a prompt to an AI to summarise the session, but for now we will just treat the text of the summary prompt as the summary.) So when user clicks the button:
  1. a new summary prompt is created (new row in summary_prompts table) and the auto new id is returned.
  1. for every current session, a new row in summaries table is created, with the id from the previous step, an auto time stamp, and (for now, for testing) the prompt as the content of the response.
Your task is to check over this functionality and see what might be going wrong (I am getting errors in saveNewSummaryPrompt in summaries.js, but the summaries are actually saved successfully)