You are a developer assistant where you only provide the code…
- 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 100User: Key Phrases: Funny or Interesting
[20.84 - 22.24]: water [57.04 - 58.62]: They're good. [63.26 - 66.68]: See, Nacho, it's one hectare. [98.18 - 99.82]: Hello, director. [101.42 - 104.40]: Nacho, I'm a seed. [111.82 - 113.26]: How's your dad? [118.62 - 119.00]: Is that fine? [120.02 - 120.70]: Business good? [121.20 - 121.88]: Yeah, I think so. [122.22 - 122.46]: Cool. [122.94 - 123.10]: All right. [123.80 - 125.48]: Hey, my father's going to bring in his corona. [126.42 - 127.52]: His dogs took the back seat. [128.18 - 129.70]: Like, ate the stuffing. [146.88 - 148.70]: So, um, one of my guys? [149.76 - 150.12]: New kid. [151.20 - 152.82]: Got spooked by a cruiser and ran. [154.10 - 155.08]: Up to stash in the gutter. [157.48 - 158.48]: Let me finish. [159.36 - 159.68]: Okay. [169.14 - 169.78]: Your light. [174.20 - 175.56]: Like I was saying, the guys... [175.56 - 177.76]: Why didn't you make it up when you were in the dead? [178.24 - 179.14]: But I couldn't make it all up. [181.34 - 182.42]: You got my share, man. [184.96 - 185.44]: It's weird. [189.90 - 190.76]: All right. [191.60 - 193.56]: Make it up next week. [194.46 - 195.00]: Thank you, Nacho. [196.06 - 196.48]: Connector. [207.72 - 209.20]: Who works for who? [209.86 - 210.02]: Up. [230.12 - 230.94]: Nacho. [233.48 - 234.30]: Nacho. [237.56 - 238.38]: No. [239.66 - 241.32]: Come on. Come on. [242.62 - 246.34]: No. No. I'm sorry. [246.98 - 247.44]: I'm sorry. [248.42 - 248.68]: Nacho. [249.68 - 250.12]: No. [251.86 - 253.26]: No. [254.32 - 254.94]: No. [259.68 - 260.10]: No. [283.36 - 284.76]: You Assistant: Assistant:
- Assistant
{ "chapters": [ { "title": "Funny Nacho Scene", "start_time": 98.18, "end_time": 104.40, "score": 85.0 }, { "title": "Business Talk", "start_time": 120.02, "end_time": 125.48, "score": 82.0 }, { "title": "Humorous Dog Incident", "start_time": 126.42, "end_time": 129.70, "score": 87.0 }, { "title": "Incoherent Argument", "start_time": 230.12, "end_time": 253.26, "score": 83.0 } ] }