Parse the text to identify Participant labels, etc., similar to importing a Transcript #1370
In the Import screen, show an option to import "ChatGPT etc."
Place the new ChatGPT option near the top of the Import screen, reordering the tabs in this order:
Transcription
AI Chat (e.g. ChatGPT)
Song & Verse
Interlinear Glossed Text
CoNLL-U
One Word Per Line (OWPL)
Elan (tab-delimited)
Prose
In the "Description" field for "ChatGPT etc.", show the following bullet points:
"Data from live AI chat session (with ChatGPT)"
"Secret API key supplied by user"
"Participant labels from “:” (colon)"
"Split words on whitespace"
"One punctuation unit per line (default)"
"One sentence per line (option)"
"One turn per line (option)"
Retain the structure of the ChatGPT response ("message") in a node of the .rez file, to allow analysis by rezonateR etc.
Translate key aspects of the ChatGPT response ("message") into varaiables that Rezonator can use.
"conversation_id" = DocId
"message id" = MessageId
"role" = RoleName = ? ParticipantName
"parts" = MessageText
etc.
Example ChatGPT response:
{
"message": {
"id": "5a5e0a89-99d0-4d9c-a8ec-765f5ea26b83",
"role": "assistant",
"user": null,
"create_time": null,
"update_time": null,
"content": {
"content_type": "text",
"parts": [
"I am an AI language model and do not have the ability to experience emotions or feelings. However, I am here to assist you with any questions or information you may need. How can I help you today?"
]
},
"end_turn": null,
"weight": "1.0",
"metadata": {},
"recipient": "all"
},
"conversation_id": "ab21dc8c-39d4-4589-90b6-ff5c5af364e3",
"error": null
}
Resources
See also
1370
700
1369
1368