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
[0.00 - 4.48]: Good morning, my name is [4.48 - 4.68]: Old Orange [4.68 - 5.26]: Good morning, my name is [6.06 - 7.32]: Yeah, is it sugar! [8.34 - 10.40]: Good morning, my name is [11.48 - 11.54]: Baby! [12.04 - 13.86]: It's been a long time [13.86 - 15.56]: I was playing play-a-laughing [16.20 - 18.88]: 你就 be in my mother's home [19.88 - 23.22]: Yeah, is it sugar! [23.44 - 26.12]: Good morning, my name is [26.12 - 26.74]: Hey! [25.24 - 26.76]: Go get some. [36.40 - 39.70]: Hi, how can I help you? [44.40 - 46.22]: Take whatever you want. [48.16 - 49.36]: I have money. [50.82 - 52.62]: I got a lot of money. [52.62 - 65.78]: I don't do this. [74.30 - 76.36]: You don't have to do this. [84.74 - 87.58]: I don't have to do this. Assistant: Assistant:
- Assistant
{ "chapters": [ { "title": "Funny Conversation", "start_time": 11.48, "end_time": 18.88, "score": 85.0 }, { "title": "Interesting Bargain", "start_time": 44.40, "end_time": 52.62, "score": 88.0 } ] }