You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{role: "system",content: "You are a helpful assistant skilled in processing and summarizing transcripts."},
41
-
{role: "user",content: prompt}
42
+
{role: "user",content: enhance_transcript_prompt}
42
43
]
43
44
end
44
45
45
-
defprompt
46
+
defenhance_transcript_prompt
46
47
<<~PROMPT
47
48
You are tasked with improving and formatting a raw VTT transcript. Your goal is to correct and enhance the text, organize it into paragraphs, and format it into a specific JSON structure. Follow these instructions carefully to complete the task.
48
49
@@ -65,7 +66,7 @@ def prompt
65
66
5. For each paragraph, use the start time of its first sentence as the paragraph's start time, and the end time of its last sentence as the paragraph's end time.
66
67
67
68
6. Format the improved transcript into a JSON structure using this schema:
0 commit comments