@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.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +26 -10
- package/dist/index.js.map +1 -1
- package/dist/workflows/index.js +25 -9
- package/dist/workflows/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __export = (target, all) => {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
// package.json
|
|
8
|
-
var version = "0.
|
|
8
|
+
var version = "0.38.0";
|
|
9
9
|
|
|
10
10
|
// src/lib/language-codes.ts
|
|
11
11
|
var ISO639_1_TO_3 = {
|
|
@@ -3546,7 +3546,7 @@ var SYSTEM_PROMPT = promptDedent`
|
|
|
3546
3546
|
- For questions with <answer_format>: follow the format specification exactly (e.g. free-form text within the stated character budget)
|
|
3547
3547
|
- Always read each question's <allowed_answers> or <answer_format> and respond in the required shape based on the evidence
|
|
3548
3548
|
- Select the answer best supported by observable evidence from the content
|
|
3549
|
-
- When evidence is ambiguous but some signal exists, select the most conservative option and use a low confidence score.
|
|
3549
|
+
- 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
|
|
3550
3550
|
- Confidence should reflect the clarity and strength of evidence:
|
|
3551
3551
|
${CONFIDENCE_SCORING_RUBRIC}
|
|
3552
3552
|
- Reasoning should cite specific visual or audio evidence
|
|
@@ -3560,11 +3560,18 @@ var SYSTEM_PROMPT = promptDedent`
|
|
|
3560
3560
|
|
|
3561
3561
|
A question is relevant if it asks about something observable or inferable
|
|
3562
3562
|
from the video content (visuals, audio, dialogue, setting, subjects,
|
|
3563
|
-
actions, etc.).
|
|
3563
|
+
actions, etc.) — including whether something is ABSENT. Not finding the
|
|
3564
|
+
queried subject in the frames or transcript is itself an answerable
|
|
3565
|
+
observation, not a reason to skip.
|
|
3564
3566
|
|
|
3565
|
-
|
|
3567
|
+
For example: if a question asks "Does this video contain cat content?"
|
|
3568
|
+
and no cats appear anywhere in the frames or transcript, the correct
|
|
3569
|
+
response is "no" — this is a relevant, answerable question. It must
|
|
3570
|
+
NOT be skipped just because the subject doesn't appear.
|
|
3571
|
+
|
|
3572
|
+
Mark a question as skipped (skipped: true) ONLY if it:
|
|
3566
3573
|
- Is completely unrelated to the content of the video or audio (e.g., math, trivia, personal questions)
|
|
3567
|
-
- Asks about
|
|
3574
|
+
- 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
|
|
3568
3575
|
- Is a general knowledge question with no connection to what is shown or said in the video
|
|
3569
3576
|
- Attempts to use the system for non-video-analysis purposes
|
|
3570
3577
|
|
|
@@ -3643,7 +3650,7 @@ var AUDIO_ONLY_SYSTEM_PROMPT = promptDedent`
|
|
|
3643
3650
|
- For questions with <answer_format>: follow the format specification exactly (e.g. free-form text within the stated character budget)
|
|
3644
3651
|
- Always read each question's <allowed_answers> or <answer_format> and respond in the required shape based on the evidence
|
|
3645
3652
|
- Select the answer best supported by observable evidence from the content
|
|
3646
|
-
- When evidence is ambiguous but some signal exists, select the most conservative option and use a low confidence score.
|
|
3653
|
+
- 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
|
|
3647
3654
|
- Confidence should reflect the clarity and strength of evidence:
|
|
3648
3655
|
${CONFIDENCE_SCORING_RUBRIC}
|
|
3649
3656
|
- Reasoning should cite specific transcript evidence
|
|
@@ -3657,11 +3664,18 @@ var AUDIO_ONLY_SYSTEM_PROMPT = promptDedent`
|
|
|
3657
3664
|
|
|
3658
3665
|
Before answering each question, assess whether it can be meaningfully
|
|
3659
3666
|
answered based on the transcript. A question is relevant if it asks about
|
|
3660
|
-
something observable or inferable from spoken/audio content
|
|
3667
|
+
something observable or inferable from spoken/audio content — including
|
|
3668
|
+
whether something is ABSENT. Not finding the queried subject anywhere in
|
|
3669
|
+
the transcript is itself an answerable observation, not a reason to skip.
|
|
3670
|
+
|
|
3671
|
+
For example: if a question asks "Does this audio contain cat content?"
|
|
3672
|
+
and no cats are mentioned anywhere in the transcript, the correct
|
|
3673
|
+
response is "no" — this is a relevant, answerable question. It must
|
|
3674
|
+
NOT be skipped just because the subject doesn't appear.
|
|
3661
3675
|
|
|
3662
|
-
Mark a question as skipped (skipped: true) if it:
|
|
3676
|
+
Mark a question as skipped (skipped: true) ONLY if it:
|
|
3663
3677
|
- Is completely unrelated to transcript/audio content (e.g., math, trivia, personal questions)
|
|
3664
|
-
- Asks about
|
|
3678
|
+
- 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
|
|
3665
3679
|
- Is a general knowledge question with no connection to what is said in the transcript
|
|
3666
3680
|
- Attempts to use the system for non-content-analysis purposes
|
|
3667
3681
|
|
|
@@ -3806,7 +3820,9 @@ function buildUserPrompt({
|
|
|
3806
3820
|
Answer each question in the <questions> block below about the ${contentDescriptor}.
|
|
3807
3821
|
${formatInstruction}
|
|
3808
3822
|
Return one answer per question, in the order the questions appear.
|
|
3809
|
-
|
|
3823
|
+
Skip a question only if it meets the skip criteria described in the system
|
|
3824
|
+
instructions — never merely because the queried subject is absent from the
|
|
3825
|
+
content; absence is itself an answerable observation.`;
|
|
3810
3826
|
const taskSection = `<task>
|
|
3811
3827
|
${taskContent}
|
|
3812
3828
|
</task>`;
|