Refresh Pixeltable video summaries without repeating transcription
Review a summary-prompt change, recompute only the summary and its search dependents, and verify that stored audio and transcripts stay unchanged.
npx skills add agentskillexchange/skills --skill refresh-pixeltable-video-summaries-without-repeating-transcription
Invoke this workflow when an existing Pixeltable video application needs a summary-prompt revision across stored recordings. The agent prepares a reviewable change and a bounded recomputation plan, then verifies the derived results. It is useful when regenerating transcripts would waste provider calls and when search must use the revised summaries.
What this skill actually does
Inputs and prerequisites
Use an authorized local project with an existing app.py, a Videos table containing video, audio, transcript and summary columns, and an embedding index on summary. Upstream’s example uses extract_audio, OpenAI transcription and chat completions, and summary similarity search. Record the actual project directory, table path, row identifiers, installed version and provider budget. The example target is my_app/videos; replace it only after checking the project’s real schema. Inspect local command help before making changes.
Review the change
- Capture the current app.py diff, table row count, selected rows’ audio and transcript values, existing summary values and representative search results. Store comparison evidence in the operator’s chosen project location. Protect or back up the local database using the project’s normal procedure before changing its schema.
- Edit only the summary system prompt, such as changing the requested summary from two sentences to one. Leave extraction, transcription, model credentials and table identity unchanged. Review
pxt schema diff app.py my_appandpxt service diff app.py my_app; stop for unexpected removals, type changes or unrelated computed-column changes. - After the operator authorizes the exact change, run
pxt schema update app.py my_appfollowed bypxt service update app.py my_app. Updating the service makes subsequent uploads use the new definition; existing rows still require explicit recomputation. - Inspect
pxt recompute my_app/videos summary --dry-run --json. It reports table rows and requested columns, not a guaranteed provider quote or complete count across transitive views. Confirm the dependent columns and index behavior. Obtain approval for the provider work before runningpxt recompute my_app/videos summary --force --json. Default cascading preserves the intended refresh of dependent results; do not use –no-cascade when fresh dependent results are required. - Compare row counts and sampled stored audio/transcript values with the baseline, review new summaries for factual quality, and repeat the same search queries against the maintained index. Record errors and incomplete rows; do not treat successful command exit as semantic correctness. Report changed rows, observed costs if available, remaining errors and any unexplained differences.
Deliverable and boundary
Return the prompt diff, reviewed scope, recomputation output and before/after evidence. This skill covers maintenance of existing video-summary dependencies. Building a new backend, bulk ingestion, hosted provisioning, service redesign and provider migration are outside its scope. Model calls can cost money and process recording content through the configured provider. The metadata has been checked against upstream documentation and released CLI contents; no live model run or security review is implied.
The workflow uses local Python project files and CLI commands with no required agent runtime, so Multi-Framework describes its invocation. See the upstream README and selective-summary example and recompute command implementation.