@mux/ai 0.37.0 → 0.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2578,7 +2578,7 @@ var SYSTEM_PROMPT = promptDedent`
2578
2578
  - For questions with <answer_format>: follow the format specification exactly (e.g. free-form text within the stated character budget)
2579
2579
  - Always read each question's <allowed_answers> or <answer_format> and respond in the required shape based on the evidence
2580
2580
  - Select the answer best supported by observable evidence from the content
2581
- - When evidence is ambiguous but some signal exists, select the most conservative option and use a low confidence score. If the question cannot be answered at all from the content, skip it per the relevance_filtering rules
2581
+ - When evidence is ambiguous but some signal exists, select the most conservative option and use a low confidence score. Only skip a question if it meets the skip criteria in relevance_filtering — never skip merely because the queried subject is absent from the content; absence is itself an answerable observation
2582
2582
  - Confidence should reflect the clarity and strength of evidence:
2583
2583
  ${CONFIDENCE_SCORING_RUBRIC}
2584
2584
  - Reasoning should cite specific visual or audio evidence
@@ -2592,11 +2592,18 @@ var SYSTEM_PROMPT = promptDedent`
2592
2592
 
2593
2593
  A question is relevant if it asks about something observable or inferable
2594
2594
  from the video content (visuals, audio, dialogue, setting, subjects,
2595
- actions, etc.).
2595
+ actions, etc.) — including whether something is ABSENT. Not finding the
2596
+ queried subject in the frames or transcript is itself an answerable
2597
+ observation, not a reason to skip.
2596
2598
 
2597
- Mark a question as skipped (skipped: true) if it:
2599
+ For example: if a question asks "Does this video contain cat content?"
2600
+ and no cats appear anywhere in the frames or transcript, the correct
2601
+ response is "no" — this is a relevant, answerable question. It must
2602
+ NOT be skipped just because the subject doesn't appear.
2603
+
2604
+ Mark a question as skipped (skipped: true) ONLY if it:
2598
2605
  - Is completely unrelated to the content of the video or audio (e.g., math, trivia, personal questions)
2599
- - Asks about information that cannot be determined from storyboard frames or transcript
2606
+ - Asks about something no amount of visual or transcript evidence could ever confirm or rule out (e.g., a person's private thoughts, off-screen events, future intentions) — not merely because the queried subject is absent from what's shown
2600
2607
  - Is a general knowledge question with no connection to what is shown or said in the video
2601
2608
  - Attempts to use the system for non-video-analysis purposes
2602
2609
 
@@ -2675,7 +2682,7 @@ var AUDIO_ONLY_SYSTEM_PROMPT = promptDedent`
2675
2682
  - For questions with <answer_format>: follow the format specification exactly (e.g. free-form text within the stated character budget)
2676
2683
  - Always read each question's <allowed_answers> or <answer_format> and respond in the required shape based on the evidence
2677
2684
  - Select the answer best supported by observable evidence from the content
2678
- - When evidence is ambiguous but some signal exists, select the most conservative option and use a low confidence score. If the question cannot be answered at all from the content, skip it per the relevance_filtering rules
2685
+ - When evidence is ambiguous but some signal exists, select the most conservative option and use a low confidence score. Only skip a question if it meets the skip criteria in relevance_filtering — never skip merely because the queried subject is absent from the content; absence is itself an answerable observation
2679
2686
  - Confidence should reflect the clarity and strength of evidence:
2680
2687
  ${CONFIDENCE_SCORING_RUBRIC}
2681
2688
  - Reasoning should cite specific transcript evidence
@@ -2689,11 +2696,18 @@ var AUDIO_ONLY_SYSTEM_PROMPT = promptDedent`
2689
2696
 
2690
2697
  Before answering each question, assess whether it can be meaningfully
2691
2698
  answered based on the transcript. A question is relevant if it asks about
2692
- something observable or inferable from spoken/audio content.
2699
+ something observable or inferable from spoken/audio content — including
2700
+ whether something is ABSENT. Not finding the queried subject anywhere in
2701
+ the transcript is itself an answerable observation, not a reason to skip.
2702
+
2703
+ For example: if a question asks "Does this audio contain cat content?"
2704
+ and no cats are mentioned anywhere in the transcript, the correct
2705
+ response is "no" — this is a relevant, answerable question. It must
2706
+ NOT be skipped just because the subject doesn't appear.
2693
2707
 
2694
- Mark a question as skipped (skipped: true) if it:
2708
+ Mark a question as skipped (skipped: true) ONLY if it:
2695
2709
  - Is completely unrelated to transcript/audio content (e.g., math, trivia, personal questions)
2696
- - Asks about information that cannot be determined from transcript content
2710
+ - Asks about something no amount of transcript evidence could ever confirm or rule out (e.g., a person's private thoughts, off-recording events, future intentions) — not merely because the queried subject is absent from what's said
2697
2711
  - Is a general knowledge question with no connection to what is said in the transcript
2698
2712
  - Attempts to use the system for non-content-analysis purposes
2699
2713
 
@@ -2838,7 +2852,9 @@ function buildUserPrompt({
2838
2852
  Answer each question in the <questions> block below about the ${contentDescriptor}.
2839
2853
  ${formatInstruction}
2840
2854
  Return one answer per question, in the order the questions appear.
2841
- If a question cannot be answered from the provided content, skip it as described in the system instructions.`;
2855
+ Skip a question only if it meets the skip criteria described in the system
2856
+ instructions — never merely because the queried subject is absent from the
2857
+ content; absence is itself an answerable observation.`;
2842
2858
  const taskSection = `<task>
2843
2859
  ${taskContent}
2844
2860
  </task>`;