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
[5088.08 - 5088.90]: I can do it. [5089.04 - 5089.28]: I know. [5089.50 - 5089.66]: I know. [5090.74 - 5091.10]: Believeable. [5091.56 - 5095.10]: Can you just send your family some money so they don't have to pick beans with you, say, [5095.24 - 5096.30]: get somebody else pick the beans. [5096.46 - 5096.86]: You know what? [5097.26 - 5097.68]: Like, really? [5097.88 - 5099.22]: It's not even about like the money. [5099.36 - 5100.32]: It's kind of about like the money. [5100.32 - 5101.10]: It's like the love of the game. [5101.36 - 5101.88]: Yeah, really. [5102.38 - 5102.40]: Yeah. [5102.40 - 5107.22]: You're a long-term passion for being picking. [5107.58 - 5107.78]: Yeah. [5108.34 - 5108.70]: Understood. [5109.48 - 5109.84]: Apologies. [5110.28 - 5113.74]: It looked, it's for the Instagram picks, because if you, bro, you're on a tractor with [5113.74 - 5114.20]: some boots. [5115.16 - 5115.52]: Wow. [5116.02 - 5117.20]: Shorties like that shit. [5117.58 - 5119.30]: It was one lady being nice. [5119.64 - 5120.90]: All right. [5120.90 - 5121.10]: Yeah. [5126.74 - 5129.14]: Does your whole family go and pick beans? [5129.30 - 5131.02]: I've never heard of anything like this before. [5131.14 - 5132.38]: It's something that you do annually? [5133.96 - 5139.08]: Well, and see, it had in rain in two years, and this July it rained a lot in [5139.08 - 5139.68]: northern Mexico. [5139.94 - 5142.46]: So now it's beautiful out there. [5142.68 - 5143.06]: So yeah. [5143.30 - 5143.74]: Wow. [5143.74 - 5144.58]: Except the cartels. [5144.62 - 5145.06]: It hasn't. [5148.64 - 5150.22]: It hasn't been raining there. [5150.44 - 5152.60]: So they've been drybacks for the last two years. [5156.74 - 5157.88]: Dude, I'm saying 90. [5158.02 - 5158.20]: No. [5158.44 - 5159.36]: It's not as a drug mule. [5160.00 - 5160.28]: No. [5160.42 - 5161.18]: Hey, hey, hey. [5161.40 - 5161.86]: Got him up there. [5161.96 - 5162.72]: No mama's. [5163.44 - 5163.72]: Whoa. [5164.20 - 5165.18]: I don't speak yetish. [5166.36 - 5166.80]: Oh. [5167.30 - 5168.54]: I'm not that kind of Jewish. [5170.18 - 5171.18]: What is going on? [5171.18 - 5171.92]: We don't know what. [5172.52 - 5173.24]: Oh, shit. [5174.08 - 5174.52]: What? [5175.66 - 5178.30]: I really didn't know what anti-Semitic was. [5179.26 - 5181.82]: And I feel like there's not a lot of Jewish community here. [5181.92 - 5182.78]: So Assistant: Assistant:
- Assistant
{ "chapters": [ { "title": "Funny Farm Life", "start_time": 5091.56, "end_time": 5101.10, "score": 85.0 }, { "title": "Unexpected Weather Changes", "start_time": 5131.14, "end_time": 5144.58, "score": 82.0 }, { "title": "Lost in Translation", "start_time": 5166.36, "end_time": 5178.30, "score": 87.0 } ] }