USER
Assistant:
User: System: You are a developer assistant where you only provide the code for a question. No explanation required. Write a simple json sample.
Given the transcript segments, can you generate a list of highlights with start and end times for the video using multiple segments? Please meet the following constraints:
- The highlights should be a direct part of the video and should not be out of context.
- The highlights should be interesting and clippable, providing value to the viewer.
- The highlights should be 20 to 60 seconds MAXIMUM.
- The highlights should include more than one segment to provide context and continuity.
- The highlights should not cut off in the middle of a sentence or idea.
- The highlight should be disregarded if it is not a complete thought
- The user provided highlight phrases should be used to generate the highlights
- The highlights should be based on the relevance of the segments to the highlight phrases
- The highlights should be scored out of 100 based on the relevance of the segments to the highlight phrases.
- The score should be greater than 80
Respond with the following JSON schema with valid JSON syntax for highlights:
{'$defs': {'Highlight': {'properties': {'title': {'description': 'Title of the Video highlight', 'title': 'Title', 'type': 'string'}, 'start_time': {'description': 'Start time of the video highlight', 'title': 'Start Time', 'type': 'number'}, 'end_time': {'description': 'End time of the video highlight', 'title': 'End Time', 'type': 'number'}, 'score': {'description': 'Score of the video highlight', 'title': 'Score', 'type': 'number'}}, 'required': ['title', 'start_time', 'end_time', 'score'], 'title': 'Highlight', 'type': 'object'}}, 'properties': {'chapters': {'description': 'List of Highlights', 'items': {'$ref': '#/$defs/Highlight'}, 'title': 'Chapters', 'type': 'array'}}, 'required': ['chapters'], 'title': 'HighlightSchema', 'type': 'object'}
Each highlight should have the following fields:
- title: title of the highlight
- start_time: start time of the highlight as a float in seconds
- end_time: end time of the highlight as a float in seconds
- score: score of the highlight as a float out of 100
User: Key Phrases: Funny or Interesting
[2.26 - 6.66]: It's weekend ducting with Colin Jost at Michael Chey. [14.54 - 16.06]: Thank you very much. [16.32 - 17.12]: Good evening, everyone. [17.28 - 18.88]: We're welcome to weekend ducting. I'm Michael Chey. [19.02 - 19.90]: I'm Colin Jost. [22.66 - 26.90]: Well, guys, the election is exactly 30 days away. [26.90 - 32.40]: Just think, in only 30 days, this whole nightmare will be nowhere close to over. [33.80 - 38.80]: Earlier tonight, Donald Trump held a rally at the site of his first assassination attempt, [39.06 - 43.94]: which I have to admit is very brave of him, though it was interesting that right before Trump spoke, [44.32 - 47.80]: he sent JD Vance out in a long red tie in a blonde wig. [51.44 - 59.50]: Elon Musk, seen here trying to jump to Mars, joined Trump on stage at the rally tonight, [59.50 - 64.92]: which may be the last time Trump and Musk will be together until they co-host our Christmas show. [68.64 - 73.82]: It was reported that last month, the U.S. added 245,000 new jobs. [73.82 - 76.50]: Unfortunately, they were all Diddy accuser. [79.58 - 84.72]: It was announced that Sean P. Diddy combs his sex-trafficking case has been assigned to a new judge, [85.06 - 87.08]: one that Diddy hopes is cool with rapes. [91.64 - 92.82]: I'd do it for that guy. [93.40 - 99.64]: It was reported that Diddy once invited Prince Harry and Prince William to one of his parties, [99.64 - 100.86]: but they did not go. [100.86 - 105.72]: Although before Diddy could even finish writing the invite, Prince Andrew was there. [109.36 - 111.42]: Yesterday, the devil went down to Georgia. [111.72 - 112.10]: No, I'm kidding. [112.90 - 117.76]: Donald Trump traveled to Georgia to survey the damage from Hurricane Helene, [117.90 - 120.80]: which is bold because nothing scares Trump more than high winds. [124.12 - 128.88]: Vice President Kamala Harris traveled to North Carolina to survey damage from the hurricane, [128.88 - 133.44]: which is the second time this year she swooped in after a huge disaster. [140.20 - 145.82]: New court filings in Donald Trump's election interference case revealed that on January 6, [146.22 - 149.90]: Trump was scrolling through Twitter during the attack on the Capitol, [150.26 - 154.26]: which is just so infuriating to those of us who were there fighting for him. [158.38 - 163.74]: It was reported that Donald Trump has refused to release his medical records,
Assistant:
Assistant:ASSISTANT
```json
{
"chapters": [
{
"title": "Trump Rally With Elon Musk",
"start_time": 38.80,
"end_time": 64.92,
"score": 85.0
},
{
"title": "Diddy and the British Royals",
"start_time": 73.82,
"end_time": 105.72,
"score": 90.0
},
{
"title": "Donald Trump Visits Georgia",
"start_time": 111.72,
"end_time": 133.44,
"score": 82.0
}
]
}
```