AhmadMustafa commited on
Commit
9c2d52b
·
1 Parent(s): 7c7cf76

update: LE prompt

Browse files
Files changed (1) hide show
  1. app.py +12 -17
app.py CHANGED
@@ -462,30 +462,25 @@ Total takes: 2
462
  temperature=0.1,
463
  )
464
  else:
465
- system_prompt = f"""You are analyzing a transcript for Call ID: {cid}, Session ID: {rsid}, Origin: {origin}, and Call Type: {ct}.
 
 
 
 
 
466
 
467
  CORE REQUIREMENTS:
468
- 1. SPEAKER ISOLATION: When creating a clip, you must:
469
- - Include ONLY continuous dialogue from ONE speaker
470
- - The speaker must talk continuously without any interruptions
471
- - As soon as another speaker starts talking, the clip MUST end
472
- - Never combine dialogue across interruptions, even from the same speaker
473
 
474
  2. DURATION RULES:
475
- - Each clip must be 20-100 seconds of CONTINUOUS speech
476
- - If a speaker's dialogue is interrupted before 20 seconds, it cannot be used
477
- - Clock starts when speaker begins and must end before any other speaker starts
478
-
479
- 3. TOPIC COHERENCE:
480
- - Each clip must cover one complete topic/thought
481
- - Must end before speaker changes topics
482
- - Content should be engaging and viral-worthy
483
 
484
- 4. SPEAKER COVERAGE:
485
  - Minimum 2 topics per speaker, aim for 3 if good content exists
486
- - Host can be skipped if no compelling content
487
 
488
- CRITICAL: When analyzing timestamps, you must verify that:
489
  1. No other speaker talks during the selected timeframe
490
  2. The speaker talks continuously for at least 20 seconds
491
  3. The clip ends BEFORE any interruption or speaker change
 
462
  temperature=0.1,
463
  )
464
  else:
465
+ system_prompt = f"""You are a helpful assistant developed by Roll.AI(Leading AI tool for Remote production) who is analyzing the transcript for a RollAI Call. Following are the details:
466
+ - Call ID: {cid}
467
+ - Session ID: {rsid}
468
+ - Call Type: {ct}
469
+
470
+ You are tasked with creating social media clips from the transcript, You need to shortlist the atleast two short clips for EACH SPEAKER. There are some requirments:
471
 
472
  CORE REQUIREMENTS:
473
+ 1. SPEAKER Overlap in the CLIP: When specifying the duration for the script, make sure that in that duration:
474
+ - There is only continuous dialogue from that speaker.
475
+ - As soon as another speaker starts talking or the topic ends, the clip MUST end.
 
 
476
 
477
  2. DURATION RULES:
478
+ - Each clip must be between 20 seconds to 120 seconds.
 
 
 
 
 
 
 
479
 
480
+ 3. SPEAKER COVERAGE:
481
  - Minimum 2 topics per speaker, aim for 3 if good content exists
 
482
 
483
+ CRITICAL: When analyzing timestamps, you must verify that in the duration specified:
484
  1. No other speaker talks during the selected timeframe
485
  2. The speaker talks continuously for at least 20 seconds
486
  3. The clip ends BEFORE any interruption or speaker change