[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CSY0WD4WTEDN7NTVYDW3EM":3,"skill-same:01M7CSY0WD4WTEDN7NTVYDW3EM":95},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7CSY0WD4WTEDN7NTVYDW3EM","vss-deploy-dense-captioning",null,"Use this skill when deploying standalone RT-VLM dense captioning or calling its REST API (uploads, captions, streams, chat-completions, Kafka). Not for VSS profile deploy or video-search ingestion.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fvss-deploy-dense-captioning\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: vss-deploy-dense-captioning\ndescription: Use this skill when deploying standalone RT-VLM dense captioning or calling its REST API (uploads, captions, streams, chat-completions, Kafka). Not for VSS profile deploy or video-search ingestion.\nlicense: Apache-2.0\nmetadata:\n  version: \"3.2.0\"\n  github-url: \"https:\u002F\u002Fgithub.com\u002FNVIDIA-AI-Blueprints\u002Fvideo-search-and-summarization\"\n  tags: \"nvidia blueprint operational deployment\"\n---\n## Purpose\n\nStand up the RT-VLM dense-captioning microservice on its own and exercise every endpoint it exposes (file upload, generate_captions, stream add\u002Fdelete, chat-completions, Kafka topics).\n\n## Prerequisites\n\nFor standalone RT-VLM deployment:\n- Docker, Docker Compose, NVIDIA Container Toolkit, and a visible GPU.\n- NGC registry credentials in `$NGC_CLI_API_KEY` for `docker login nvcr.io`,\n  image pulls, and local NGC model\u002Fartifact downloads.\n- `curl`, `jq`, and any writable working directory for the standalone compose copy.\n\nFor API calls against an existing service:\n- Running RT-VLM service reachable at `$BASE_URL`.\n- Bearer token in `$RTVI_VLM_API_KEY` or `$NGC_CLI_API_KEY`, depending on how the\n  service was configured.\n\nFor full VSS profile deployment:\n- Use `..\u002Fvss-deploy-profile\u002FSKILL.md`; this skill does not deploy full VSS profiles.\n\n## Instructions\n\nFollow the routing tables and step-by-step workflows below. Each section that ends in *workflow*, *quick start*, or *flow* is intended to be executed top-to-bottom. Detailed reference material lives in `references\u002F` and helper scripts live in `scripts\u002F` — call them via `run_script` when the skill points to a script by name.\n\n## Examples\n\nWorked end-to-end examples are kept under `evals\u002F` (each `*.json` manifest contains a runnable scenario) and inline in the per-workflow `curl` blocks below. Run a Tier-3 evaluation with `nv-base validate \u003Cthis-skill-dir> --agent-eval` to replay them.\n\n## Limitations\n\n- Requires either a standalone RT-VLM service deployed via this skill or an\n  existing RT-VLM service reachable from the caller.\n- NGC-hosted models and NIMs may be subject to rate-limits, GPU memory requirements, and license restrictions.\n- Concurrency, GPU memory, and storage limits depend on the host hardware and the profile's compose file.\n\n## Troubleshooting\n\n- **Error**: REST call returns connection refused. **Cause**: target microservice not running. **Solution**: probe `\u002Fdocs` or `\u002Fhealth`; redeploy via `vss-deploy-profile` or the matching `vss-deploy-*` skill.\n- **Error**: HTTP 401\u002F403 from NGC pulls. **Cause**: missing\u002Fexpired `NGC_CLI_API_KEY`. **Solution**: `docker login nvcr.io` and re-export the key before retrying.\n- **Error**: container OOM or model fails to load. **Cause**: insufficient GPU memory for the selected profile. **Solution**: switch to a smaller variant or free GPUs via `docker compose down`.\n\n# Deploy and Use RT-VLM Dense Captioning (VSS 3.2)\n\nRT-VLM is NVIDIA's real-time vision-language microservice: decode video (file or\nRTSP), segment it into chunks, run a VLM (`cosmos-reason1`, `cosmos-reason2`, or any\nOpenAI-compatible model), stream dense captions back over SSE\u002FHTTP, and publish\ncaptions, incident alerts, and errors to Kafka. Use this skill to deploy the\nstandalone RT-VLM service when a full VSS profile is not already running, then call\nits `\u002Fv1\u002F...` API for caption generation, file upload, live-stream management, health\nchecks, NIM-compatible chat completions, or Prometheus metrics. API reference:\n\u003Chttps:\u002F\u002Fdocs.nvidia.com\u002Fvss\u002Flatest\u002Freal-time-vlm-api.html>.\n\n## Deployment Routing\n\nIf the user asks to deploy a full VSS profile, use\n[`..\u002Fvss-deploy-profile\u002FSKILL.md`](..\u002Fvss-deploy-profile\u002FSKILL.md). That skill\nowns profile routing, `generated.env`, `resolved.yml`, multi-service sizing, and\nfull-stack deploy\u002Fteardown.\n\nIf the user asks for standalone RT-VLM dense captioning, or no VSS profile is\nalready running, use the standalone RT-VLM flow in\n[`references\u002Fdeploy-rt-vlm-service.md`](references\u002Fdeploy-rt-vlm-service.md)\nbefore calling the API. This follows the same compose-centric pattern as\n`vss-deploy-profile`: gather context, run preflights, work from a local copy,\ndry-run with `docker compose config`, review, deploy, then wait for health.\n\n## Standalone Deployment Flow\n\nAlways follow this sequence. Never skip the dry-run.\n\n```bash\n# 1. Copy deploy\u002Fdocker\u002Fservices\u002Frtvi\u002Frtvi-vlm\u002Frtvi-vlm-docker-compose.yml\n#    into any writable standalone working directory.\n# 2. Derive RTVI_VLM_IMAGE_TAG from that compose copy.\n# 3. Strip the standalone-only dangling depends_on block from the copy.\n# 4. Create a gitignored .env with the required RT-VLM values.\n# 5. Prepare host bind paths such as $VSS_DATA_DIR\u002Fdata_log\u002Fvst\u002Fclip_storage.\n# 6. docker compose --env-file .env -f rtvi-vlm-docker-compose.yml config --quiet\n# 7. docker pull the exact RT-VLM image tag.\n# 8. docker compose ... up -d rtvi-vlm, wait for ready, then smoke test.\n```\n\nRun preflights before any pull or `up`; stop and fix failures here before\ndebugging RT-VLM itself:\n\n```bash\nnvidia-smi --query-gpu=index,name --format=csv,noheader\nnvidia-container-cli info\ndocker compose version\ndocker run --rm --gpus all nvidia\u002Fcuda:12.4.0-base-ubuntu22.04 nvidia-smi\n```\n\nFor standalone single-file deployments, do not run the raw\n`deploy\u002Fdocker\u002Fservices\u002Frtvi\u002Frtvi-vlm\u002Frtvi-vlm-docker-compose.yml` directly: it\ncontains `depends_on` references to sibling VLM\u002FNIM services that are only\ndefined in the full VSS\u002Fmet-blueprints compose project. The standalone reference\nshows how to copy the compose file, derive the current image tag from it, strip\nthe `depends_on` block, and validate the result before `up`.\n\nIf `docker pull` fails with a containerd snapshotter\u002Funpack error on Docker 28+,\napply the `\u002Fetc\u002Fdocker\u002Fdaemon.json` `containerd-snapshotter=false` fix in the\nstandalone reference before retrying.\n\nMinimum standalone `.env` values:\n\n| Host env var | Required when | Purpose |\n|---|---|---|\n| `NGC_CLI_API_KEY` | Standalone deploy path | NGC registry image pull and NGC model\u002Fartifact download |\n| `RTVI_VLM_API_KEY` or `NGC_CLI_API_KEY` | Authenticated API calls | RT-VLM bearer auth after the service is running |\n| `RTVI_VLM_PORT` | Always | Host API port mapped to container `8000` |\n| `HOST_IP` | Always | Kafka bootstrap host (`${HOST_IP}:9092`) |\n| `VSS_DATA_DIR` | Always | Required clip-storage bind mount |\n| `RTVI_VLM_MODEL_TO_USE` | Always for standalone | Backend selector; use `cosmos-reason2` for the default local model or `openai-compat` for a remote\u002Fsibling endpoint |\n| `RTVI_VLM_MODEL_PATH` | Local self-hosted model | Source-backed Cosmos Reason 2 path: `ngc:nim\u002Fnvidia\u002Fcosmos-reason2-8b:0303-fp8-dynamic-kv8` |\n| `RTVI_VLM_ENDPOINT` | `RTVI_VLM_MODEL_TO_USE=openai-compat` | Remote\u002Fsibling OpenAI-compatible VLM endpoint |\n| `VLM_NAME` | `RTVI_VLM_MODEL_TO_USE=openai-compat` | Model\u002Fdeployment name exposed by that endpoint |\n\n## Setup\n\n```bash\nexport BASE_URL=\"http:\u002F\u002Flocalhost:${RTVI_VLM_PORT:-8018}\"  # host-side RT-VLM port\nexport API_KEY=\"${NGC_CLI_API_KEY:-${RTVI_VLM_API_KEY:-}}\" # bearer token used by host-side curl commands\n: \"${API_KEY:?Set NGC_CLI_API_KEY or RTVI_VLM_API_KEY before calling authenticated endpoints}\"\n```\n\nEvery request below uses `Authorization: Bearer $API_KEY`. Health endpoints\n(`\u002Fv1\u002Fhealth\u002F*`, `\u002Fv1\u002Fready`, `\u002Fv1\u002Flive`, `\u002Fv1\u002Fstartup`) typically work without auth.\n\n**Smoke test before use:**\n```bash\ncurl -fsS \"$BASE_URL\u002Fv1\u002Fhealth\u002Fready\"\nMODEL_ID=\"$(curl -fsS \"$BASE_URL\u002Fv1\u002Fmodels\" -H \"Authorization: Bearer $API_KEY\" | jq -r '.data[0].id \u002F\u002F .id')\"\ncurl -fsS \"$BASE_URL\u002Fopenapi.json\" | jq -r '.paths | keys[]' | sort\n```\n\n## Quick Start — dense captions from a local video\n\n```bash\n# 1. Upload the video, capture its file id\nFILE_ID=$(curl -fsS -X POST \"$BASE_URL\u002Fv1\u002Ffiles\" \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Fwarehouse.mp4\" \\\n  -F \"purpose=vision\" \\\n  -F \"media_type=video\" | jq -r '.id')\n\n# 2. Generate captions + alerts (SSE stream of chunked responses)\ncurl -N -X POST \"$BASE_URL\u002Fv1\u002Fgenerate_captions\" \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d \"{\n    \\\"id\\\": \\\"$FILE_ID\\\",\n    \\\"prompt\\\": \\\"Write a concise dense caption for each 10-second segment of this warehouse video.\\\",\n    \\\"model\\\": \\\"$MODEL_ID\\\",\n    \\\"chunk_duration\\\": 10,\n    \\\"stream\\\": true\n  }\"\n```\n\n## Endpoints\n\n### Captions\n> Generate VLM captions and alerts for videos and live streams.\n\n#### `POST \u002Fv1\u002Fgenerate_captions` — Generate VLM captions (and alerts) for video\u002Fstream\n\n**Required:**\n| Field | Type | Description |\n|-------|------|-------------|\n| `id` | string \\| array | UUID of a previously-uploaded file, or id of an active live stream. Accepts a list of ids for batch |\n| `prompt` | string | User prompt to the VLM (e.g. dense-caption instruction) |\n| `model` | string | Exact model id returned by `GET \u002Fv1\u002Fmodels`, for example `nim_nvidia_cosmos-reason2-8b_0303-fp8-dynamic-kv8`; backend selector aliases such as `cosmos-reason2` are not request model ids |\n\n**Key optional fields:**\n| Field | Type | Default | Description |\n|-------|------|---------|-------------|\n| `system_prompt` | string | — | System prompt; use `\u003Cthink>\u003C\u002Fthink>\u003Canswer>\u003C\u002Fanswer>` tags to enable reasoning on Cosmos Reason |\n| `enable_reasoning` | boolean | false | Turn on reasoning for Cosmos Reason models |\n| `enable_audio` | boolean | false | Transcribe audio (via Riva) and fold into captions |\n| `chunk_duration` | integer | — | Segment video into N-second chunks (`0` = no chunking) |\n| `chunk_overlap_duration` | integer | 0 | Overlap between consecutive chunks |\n| `num_frames_per_second_or_fixed_frames_chunk` | number | — | FPS (if `use_fps_for_chunking=true`) or fixed frames per chunk |\n| `use_fps_for_chunking` | boolean | false | Interpret above as FPS vs. fixed-frame count |\n| `vlm_input_width` \u002F `vlm_input_height` | int | — | Resize frames before inference (0 = native) |\n| `media_info` | object | — | `{\"type\":\"offset\",\"start_offset\":0,\"end_offset\":10}` to process a slice of a file (not live streams) |\n| `stream` | boolean | false | SSE: emit per-chunk caption deltas as `data:` events (recommended for long videos) |\n| `max_tokens` \u002F `temperature` \u002F `top_p` \u002F `top_k` \u002F `seed` \u002F `ignore_eos` | | | Standard sampling controls |\n| `response_format` | object | — | Query response format object |\n| `mm_processor_kwargs` | object | — | Extra kwargs for the multimodal processor (e.g. size, shortest\u002Flongest edge) |\n\n```bash\ncurl -N -X POST \"$BASE_URL\u002Fv1\u002Fgenerate_captions\" \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"id\": \"123e4567-e89b-12d3-a456-426614174000\",\n    \"prompt\": \"Dense-caption this warehouse video, one sentence per 10s chunk.\",\n    \"model\": \"nim_nvidia_cosmos-reason2-8b_0303-fp8-dynamic-kv8\",\n    \"chunk_duration\": 10,\n    \"stream\": true\n  }'\n```\n\n**Response shape:** live 26.05 responses use `chunk_responses` with\n`start_time`\u002F`end_time`; SSE streams terminate with `data: [DONE]`. See\n[`references\u002Fapi-surface-26.05.md`](references\u002Fapi-surface-26.05.md).\n\n#### `DELETE \u002Fv1\u002Fgenerate_captions\u002F{stream_id}` — Stop caption generation for a live stream, if exposed\n\nSome deployments expose this companion stop endpoint. Check the live OpenAPI\n(`curl -fsS \"$BASE_URL\u002Fopenapi.json\" | jq '.paths | keys[]'`) before using it.\nAlways pair live-stream cleanup with `DELETE \u002Fv1\u002Fstreams\u002Fdelete\u002F{stream_id}` to\nun-register the RTSP source.\n\n```bash\ncurl -X DELETE \"$BASE_URL\u002Fv1\u002Fgenerate_captions\u002F$STREAM_ID\" -H \"Authorization: Bearer $API_KEY\"\n```\n\n### Files\n> Upload and manage media files consumed by `\u002Fv1\u002Fgenerate_captions`.\n\n#### `POST \u002Fv1\u002Ffiles` — Upload a media file (multipart)\n```bash\ncurl -X POST \"$BASE_URL\u002Fv1\u002Ffiles\" -H \"Authorization: Bearer $API_KEY\" \\\n  -F \"file=@.\u002Fvideo.mp4\" -F \"purpose=vision\" -F \"media_type=video\"\n```\n**Response:** `{ \"id\", \"object\": \"file\", \"bytes\", \"created_at\", \"filename\", \"purpose\" }`.\nOptional metadata such as `sensor_name` may be accepted by newer builds; check\nthe live OpenAPI before sending it.\n\n#### `GET \u002Fv1\u002Ffiles?purpose=vision` — List uploaded files\n#### `GET \u002Fv1\u002Ffiles\u002F{file_id}` — File metadata\n#### `GET \u002Fv1\u002Ffiles\u002F{file_id}\u002Fcontent` — Download original file content\n#### `DELETE \u002Fv1\u002Ffiles\u002F{file_id}` — Delete file (releases asset storage)\n\n### Live Stream\n> RTSP stream lifecycle.\n\n#### `POST \u002Fv1\u002Fstreams\u002Fadd` — Register one or more RTSP streams\n**Required per stream:** `liveStreamUrl` (must start with `rtsp:\u002F\u002F`), `description`.\nOptional: `username`, `password`, `sensor_name`, and placement metadata\n(`place_name`, `place_type`, `place_lat`, `place_lon`, `place_alt`,\n`place_coordinate_x`, `place_coordinate_y`).\n\nPrecheck public or external RTSP sources before registering them. A probe exit\ncode alone is not enough; `gst-discoverer-1.0` can exit `0` while reporting an\nunknown media type. Treat the stream as usable only when a probe output\nidentifies at least one video stream\u002Fcaps entry. If one probe is inconclusive,\ncross-check with another tool such as `ffprobe` before failing or registering:\n\n```bash\nffprobe -v error -select_streams v:0 \\\n  -show_entries stream=codec_type -of csv=p=0 \"$RTSP_URL\" | grep -qx video\n```\n\n```bash\nSTREAM_ID=$(curl -fsS -X POST \"$BASE_URL\u002Fv1\u002Fstreams\u002Fadd\" \\\n  -H \"Authorization: Bearer $API_KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"streams\":[{\"liveStreamUrl\":\"rtsp:\u002F\u002Fcam:8554\u002Flive\",\"description\":\"warehouse cam 1\"}]}' \\\n  | jq -r '.results[0].id')\n```\n\n#### `GET \u002Fv1\u002Fstreams\u002Fget-stream-info` — List active streams\n#### `DELETE \u002Fv1\u002Fstreams\u002Fdelete\u002F{stream_id}` — Remove a single stream\n#### `DELETE \u002Fv1\u002Fstreams\u002Fdelete-batch` — Remove many (`{\"stream_ids\":[...]}`)\n\n#### CV-style singular stream endpoints\n\n26.05 deployments also expose CV-style stream control paths:\n`POST \u002Fv1\u002Fstream\u002Fadd`, `GET \u002Fv1\u002Fstream\u002Fget-stream-info`, and\n`POST \u002Fv1\u002Fstream\u002Fremove`. Use these when a workflow or release note explicitly uses\nthe key\u002Fvalue envelope; otherwise prefer the plural RT-VLM stream endpoints\nabove. See [`references\u002Fapi-surface-26.05.md`](references\u002Fapi-surface-26.05.md)\nfor examples and the `stream_count:0` compatibility caveat.\n\n### NIM Compatible\n> OpenAI-compatible endpoints for interop with OpenAI\u002FNVIDIA-API clients.\n\n#### `POST \u002Fv1\u002Fchat\u002Fcompletions` — OpenAI-compatible chat (text + multimodal)\n**Required:** `messages`, `model`. Text-only requests work and omit `id`,\n`video_url`, and `image_url`. For uploaded-video, direct `video_url`,\ndirect `image_url`, streaming, and RTSP-backed chat examples, see\n[`references\u002Fapi-surface-26.05.md`](references\u002Fapi-surface-26.05.md).\n\n```bash\ncurl -X POST \"$BASE_URL\u002Fv1\u002Fchat\u002Fcompletions\" -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d \"{\\\"model\\\":\\\"$MODEL_ID\\\",\\\"messages\\\":[{\\\"role\\\":\\\"user\\\",\\\"content\\\":\\\"Summarize this scene.\\\"}]}\"\n```\n\n#### `POST \u002Fv1\u002Fcompletions` — OpenAI-compatible legacy completions\nThis endpoint exists for compatibility, but on current 26.05 builds text-only legacy\ncompletion requests return HTTP 400 by design. Use `\u002Fv1\u002Fchat\u002Fcompletions` for\ntext-only and multimodal requests.\n\n#### `GET \u002Fv1\u002Fversion` — `{ \"version\": \"3.2.0-...\" }`\n#### `GET \u002Fv1\u002Fmanifest` — NIM manifest\n#### `GET \u002Fv1\u002Fhealth\u002Flive` · `GET \u002Fv1\u002Fhealth\u002Fready` — NIM-style probes\n\nDo not assume `\u002Fv1\u002Flicense` exists. The current 26.05 live OpenAPI does not expose it\nand the endpoint returns 404; only call it after checking `GET \u002Fopenapi.json`.\n\n### Models · Metadata · Metrics · Health Check\n#### `GET \u002Fv1\u002Fmodels` — List loaded VLMs: `{ \"data\": [{ \"id\", \"object\": \"model\", \"owned_by\" }] }`\n#### `GET \u002Fv1\u002Fmetadata` — Service metadata (build, release, image tag)\n#### `GET \u002Fv1\u002Fassets\u002Fstats` — Asset storage counts, TTL, and oldest-asset age\n#### `GET \u002Fv1\u002Fmetrics` — Prometheus metrics (plain text)\n#### `GET \u002Fv1\u002Fready` · `GET \u002Fv1\u002Flive` · `GET \u002Fv1\u002Fstartup` — Kubernetes-style probes\n\n---\n\n## Common Workflows\n\nThe four standard dense-captioning scenarios.\n\n### 1. Dense captions from a stored video file\n\n```bash\n# Upload → capture file id → generate captions (SSE stream)\nFILE_ID=$(curl -fsS -X POST \"$BASE_URL\u002Fv1\u002Ffiles\" \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -F \"file=@warehouse.mp4\" -F \"purpose=vision\" -F \"media_type=video\" | jq -r '.id')\n\ncurl -N -X POST \"$BASE_URL\u002Fv1\u002Fgenerate_captions\" \\\n  -H \"Authorization: Bearer $API_KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d \"{\n    \\\"id\\\": \\\"$FILE_ID\\\",\n    \\\"prompt\\\": \\\"Describe warehouse events in 1 sentence per 10s chunk.\\\",\n    \\\"model\\\": \\\"$MODEL_ID\\\",\n    \\\"chunk_duration\\\": 10,\n    \\\"stream\\\": true\n  }\"\n\n# When done, free storage:\ncurl -X DELETE \"$BASE_URL\u002Fv1\u002Ffiles\u002F$FILE_ID\" -H \"Authorization: Bearer $API_KEY\"\n```\n\n### 2. Dense captions from an RTSP live stream\n\n```bash\n# Register the stream\nSTREAM_ID=$(curl -fsS -X POST \"$BASE_URL\u002Fv1\u002Fstreams\u002Fadd\" \\\n  -H \"Authorization: Bearer $API_KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"streams\":[{\"liveStreamUrl\":\"rtsp:\u002F\u002F10.0.0.5:8554\u002Fwarehouse\",\"description\":\"warehouse cam\"}]}' \\\n  | jq -r '.results[0].id')\n\n# Start continuous caption generation\ncurl -N -X POST \"$BASE_URL\u002Fv1\u002Fgenerate_captions\" \\\n  -H \"Authorization: Bearer $API_KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d \"{\n    \\\"id\\\": \\\"$STREAM_ID\\\",\n    \\\"prompt\\\": \\\"Describe each event; start each sentence with a timestamp.\\\",\n    \\\"model\\\": \\\"$MODEL_ID\\\",\n    \\\"chunk_duration\\\": 10,\n    \\\"num_frames_per_second_or_fixed_frames_chunk\\\": 2,\n    \\\"use_fps_for_chunking\\\": true,\n    \\\"stream\\\": true\n  }\" &\n\n# Tear down when finished. If the live OpenAPI exposes\n# DELETE \u002Fv1\u002Fgenerate_captions\u002F{stream_id}, call it before unregistering.\ncurl -X DELETE \"$BASE_URL\u002Fv1\u002Fstreams\u002Fdelete\u002F$STREAM_ID\"  -H \"Authorization: Bearer $API_KEY\"\n```\n\n### 3. Dense captions with alerts from an RTSP stream\n\n```bash\n# Pre-req: Kafka is enabled and topics match the deployment source.\n# The checked-in rtvi-vlm\u002F.env and VSS alerts profiles use:\n#   RTVI_VLM_KAFKA_ENABLED=true\n#   RTVI_VLM_KAFKA_TOPIC=mdx-vlm\n#   RTVI_VLM_KAFKA_INCIDENT_TOPIC=mdx-vlm-incidents\n#   RTVI_VLM_ERROR_MESSAGE_TOPIC=vision-llm-errors\n#   HOST_IP=\u003Ckafka-host>\n# A copied compose without those env overrides falls back to vision-llm-* topics.\n# Confirm the live container before consuming:\n#   docker exec vss-rtvi-vlm printenv KAFKA_TOPIC KAFKA_INCIDENT_TOPIC ERROR_MESSAGE_TOPIC\n\nSTREAM_ID=$(curl -fsS -X POST \"$BASE_URL\u002Fv1\u002Fstreams\u002Fadd\" \\\n  -H \"Authorization: Bearer $API_KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"streams\":[{\"liveStreamUrl\":\"rtsp:\u002F\u002F10.0.0.5:8554\u002Fwarehouse\",\"description\":\"warehouse cam\"}]}' \\\n  | jq -r '.results[0].id')\n\ncurl -N -X POST \"$BASE_URL\u002Fv1\u002Fgenerate_captions\" \\\n  -H \"Authorization: Bearer $API_KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d \"{\n    \\\"id\\\": \\\"$STREAM_ID\\\",\n    \\\"prompt\\\": \\\"You are a warehouse monitoring system. Describe the scene in one sentence, then on a new line output exactly:\\\\nAnomaly Detected: Yes\u002FNo\\\\nReason: \u003Cone sentence>\\\\nFlag an anomaly if any worker is missing a hard hat or high-vis vest.\\\",\n    \\\"system_prompt\\\": \\\"Answer the user's question correctly in yes or no.\\\",\n    \\\"model\\\": \\\"$MODEL_ID\\\",\n    \\\"chunk_duration\\\": 60,\n    \\\"chunk_overlap_duration\\\": 10,\n    \\\"stream\\\": true\n  }\"\n```\n\n**Consume alerts from Kafka**. Kafka values are NvSchema protobuf payloads, so\nuse `print.value=false` for a clean validation pass that shows timestamp, key,\nand headers without dumping binary payload bytes. The VSS alerts\u002Fprofile source\nuses `mdx-vlm-incidents`; a bare copied compose may fall back to\n`vision-llm-events-incidents` if no `RTVI_VLM_KAFKA_INCIDENT_TOPIC` override is\nloaded. Prefer the live container environment over hard-coded topic names.\n```bash\nINCIDENT_TOPIC=\"${INCIDENT_TOPIC:-$(docker exec vss-rtvi-vlm printenv KAFKA_INCIDENT_TOPIC 2>\u002Fdev\u002Fnull || true)}\"\nINCIDENT_TOPIC=\"${INCIDENT_TOPIC:-mdx-vlm-incidents}\"\n\ndocker exec mdx-kafka kafka-console-consumer \\\n  --bootstrap-server 127.0.0.1:9092 \\\n  --topic \"$INCIDENT_TOPIC\" \\\n  --from-beginning \\\n  --timeout-ms 5000 \\\n  --max-messages 10 \\\n  --property print.timestamp=true \\\n  --property print.key=true \\\n  --property print.headers=true \\\n  --property print.value=false\n```\n\nIf Kafka is not running in the VSS `mdx-kafka` container, use the Kafka CLI from\nthe host or container running the broker:\n```bash\nINCIDENT_TOPIC=\"${INCIDENT_TOPIC:-mdx-vlm-incidents}\"\n\nkafka-console-consumer \\\n  --bootstrap-server \"$HOST_IP:9092\" \\\n  --topic \"$INCIDENT_TOPIC\" \\\n  --from-beginning \\\n  --timeout-ms 5000 \\\n  --max-messages 10 \\\n  --property print.timestamp=true \\\n  --property print.key=true \\\n  --property print.headers=true \\\n  --property print.value=false\n```\n\nFor standalone validation, remember that the RT-VLM compose maps Kafka through\n`KAFKA_BOOTSTRAP_SERVERS=${HOST_IP}:9092`; setting `KAFKA_BOOTSTRAP_SERVERS`\ndirectly in `.env` is ignored unless the compose is changed. The broker must\nadvertise a listener reachable from the `vss-rtvi-vlm` container. `localhost`\ninside the broker and service containers is not the host, and a broker alias\nsuch as `kafka:9092` only works when both containers share that Docker network.\nFor RT-VLM-only validation, prefer the self-contained broker in\n`references\u002Fkafka-workflows.md` over the full repo infra compose; the latter\nexpects full-profile SDRC env\u002Fconfig. If Kafka is already running, ask the user\nwhether to reuse it or launch a dedicated broker before stopping or replacing\nanything. Run CLI checks inside the actual broker container, but still configure\nthe advertised listener so RT-VLM can connect from its container network.\n\nIncident protobuf (`ext.proto :: Incident`) key fields: `sensorId`, `timestamp`, `end`,\n`objectIds`, `frameIds`, `place`, `analyticsModule`, `category`, `isAnomaly` (`true` for\nalerts), `llm` (nested VisionLLM), `info` map including `triggerPhrase`, `verdict`,\n`requestId`, `chunkIdx`, `streamId`, `alertCategory` (if the deployment supports the\n`alert_category` query field — post-3.1).\n\n### 4. Kafka workflows (alerts + message bus)\n\nDense captioning with alerts on an RTSP stream and the HTTP-vs-Kafka response model are documented in [`references\u002Fkafka-workflows.md`](references\u002Fkafka-workflows.md).\n\n## Error Reference\n\n| Code | Meaning | Common Cause |\n|------|---------|--------------|\n| 400 | Bad Request | Missing required field (`id`, `prompt`, `model`); unsupported `media_type`; unknown `model` name |\n| 401 | Unauthorized | Missing\u002Finvalid `Authorization: Bearer $API_KEY` — or wrong key format (expect `nvapi-...`) |\n| 404 | Not Found | `file_id` deleted \u002F stream_id not registered \u002F wrong endpoint path (note: `{stream_id}` is required on `DELETE \u002Fv1\u002Fstreams\u002Fdelete\u002F{stream_id}`) |\n| 413 | Payload Too Large | Uploaded file exceeds server `MAX_FILE_SIZE`; increase or pre-chunk the video |\n| 422 | Unprocessable Entity | Pydantic schema violation — e.g. `use_fps_for_chunking=true` without `num_frames_per_second_or_fixed_frames_chunk`; stream ids supplied to a file-only field like `media_info` |\n| 429 | Rate Limited | Too many concurrent streams — raise `VLM_BATCH_SIZE` or spread across instances |\n| 500 | Server Error | VLM inference exception (OOM, model unavailable) — check `docker logs vss-rtvi-vlm` |\n| 503 | Service Busy | Startup not complete (model still downloading) or upstream NIM dependency unhealthy |\n\n---\n\n## Gotchas\n\n- **Use the live OpenAPI as the source of truth.** For VSS 3.2, the caption-generation endpoint is `\u002Fv1\u002Fgenerate_captions`. Some older references and images used `\u002Fv1\u002Fgenerate_captions_alerts`; do not assume that path exists unless `GET \u002Fopenapi.json` shows it.\n- **URL-based input support depends on the deployed service version.** If the live schema does not expose `url`\u002F`media_type`\u002F`creation_time`, upload via `POST \u002Fv1\u002Ffiles` first and pass the returned `id`.\n- **Alert trigger = the tokens `\"yes\"` or `\"true\"` in the VLM response (case-insensitive)**. There is no per-request alert flag. Design prompts with an explicit `Anomaly Detected: Yes\u002FNo` line and set `system_prompt` to constrain the model to Yes\u002FNo answers (per the VSS docs). Every chunk is published to `KAFKA_TOPIC`; matched chunks additionally go to `KAFKA_INCIDENT_TOPIC` with `isAnomaly=true`, `info[\"triggerPhrase\"]` set to the matched tokens, and `info[\"verdict\"]=\"confirmed\"`.\n- **`alert_category` support depends on the deployed service version.** If the live OpenAPI schema does not expose it, Kafka incidents default `incident.category = \"vlm-alert\"`.\n- **Kafka topics are server-side config, not per-request.** The `KAFKA_*` env vars (via compose `RTVI_VLM_KAFKA_*` rewrites) are fixed at container start — clients can't override topics on a per-request basis. Kafka publish is *additive* to the HTTP response, never a replacement.\n- **Topic names differ by deployment source.** The checked-in RT-VLM `.env` and VSS alerts\u002Fprofile sources use `mdx-vlm` and `mdx-vlm-incidents`; a bare copied compose with no `RTVI_VLM_KAFKA_*` overrides falls back to `vision-llm-messages` and `vision-llm-events-incidents`. Always trust the live `vss-rtvi-vlm` environment before consuming.\n- **Standalone Kafka must advertise `${HOST_IP}:9092`.** The RT-VLM compose uses `KAFKA_BOOTSTRAP_SERVERS=${HOST_IP}:9092`; a broker that advertises `localhost:9094` or `kafka:9092` may pass producer\u002Fconsumer tests inside the broker container while RT-VLM publish fails.\n- **Start Kafka before RT-VLM when Kafka is enabled.** For deterministic standalone validation, make the broker reachable at `${HOST_IP}:9092` first. If you start Kafka later or change its advertised listener, restart\u002Frecreate `rtvi-vlm` before expecting Kafka offsets to move.\n- **`stream=true` returns Server-Sent Events, not chunked JSON.** Use `curl -N` (no buffering). Each event is `data: {...}\\n\\n` with per-chunk fields such as `content`, `start_time`, and `end_time`, terminated by `data: [DONE]`. Without `stream=true` the server buffers until the full video is processed — fine for short clips (\u003C1 min), avoid for live streams.\n- **Trust live OpenAPI for optional NIM-compatible endpoints.** `\u002Fv1\u002Flicense` is not exposed by current 26.05 builds and returns 404, even though older generic NIM docs may mention it.\n- **Prefer `\u002Fv1\u002Fchat\u002Fcompletions` over `\u002Fv1\u002Fcompletions`.** Text-only legacy completions return HTTP 400 by design on current 26.05 builds; text-only chat completions work.\n- **`chunk_duration=0` disables chunking** — the entire video is sent to the VLM as one shot. Only meaningful for short clips; long videos will OOM or exceed `max_model_len`.\n- **Default frame budget caps at `VLLM_MM_PROCESSOR_VIDEO_NUM_FRAMES` (256).** Requesting FPS that implies >256 frames per chunk is silently capped; drop FPS or shorten `chunk_duration` to stay within budget.\n- **`enable_reasoning` requires a Cosmos Reason model.** Passing it with Qwen3-VL or other non-reasoning models is a no-op.\n- **`\u002Fv1\u002Fmetrics` is unauthenticated on current 26.05 standalone builds.** A Bearer token is harmless if a deployment has stricter auth, but do not fail validation when `\u002Fv1\u002Fmetrics` returns HTTP 200 without auth.\n- **File upload is multipart, not JSON.** Use `-F file=@path -F purpose=vision -F media_type=video`; a `-d` body returns 422.\n- **Live-stream lifecycle cleanup must unregister the stream:** `DELETE \u002Fv1\u002Fstreams\u002Fdelete\u002F{stream_id}` removes the RTSP source. If the live schema also exposes `DELETE \u002Fv1\u002Fgenerate_captions\u002F{stream_id}`, call it first to stop inference explicitly.\n","## Purpose\n\nStand up the RT-VLM dense-captioning microservice on its own and exercise every endpoint it exposes (file upload, generate_captions, stream add\u002Fdelete, chat-completions, Kafka topics).\n\n## Prerequisites\n\nFor standalone RT-VLM deployment:\n- Docker, Docker Compose, NVIDIA Container Toolkit, and a visible GPU.\n- NGC registry credentials in `$NGC_CLI_API_KEY` for `docker login nvcr.io`,\n  image pulls, and local NGC model\u002Fartifact downloads.\n- `curl`, `jq`, and any writable working directory for the standalone compose copy.\n\nFor API calls against an existing service:\n- Running RT-VLM service reachable at `$BASE_URL`.\n- Bearer token in `$RTVI_VLM_API_KEY` or `$NGC_CLI_API_KEY`, depending on how the\n  service was configured.\n\nFor full VSS profile deployment:\n- Use `..\u002Fvss-deploy-profile\u002FSKILL.md`; this skill does not deploy full VSS profiles.\n\n## Instructions\n\nFollow the routing tables and step-by-step workflows below. Each section that ends in *workflow*, *quick start*, or *flow* is intended to be executed top-to-bottom. Detailed reference material lives in `references\u002F` and helper scripts live in `scripts\u002F` — call them via `run_script` when the skill points to a script by name.\n\n## Examples\n\nWorked end-to-end examples are kept under `evals\u002F` (each `*.json` manifest contains a runnable scenario) and inline in the per-workflow `curl` blocks below. Run a Tier-3 evaluation with `nv-base validate \u003Cthis-skill-dir> --agent-eval` to replay them.\n\n## Limitations\n\n- Requires either a standalone RT-VLM service deployed via this skill or an\n  existing RT-VLM service reachable from the caller.\n- NGC-hosted models and NIMs may be subject to rate-limits, GPU memory requirements, and license restrictions.\n- Concurrency, GPU memory, and storage limits depend on the host hardware and the profile's compose file.\n\n## Troubleshooting\n\n- **Error**: REST call returns connection refused. **Cause**: target microservice not running. **Solution**: probe `\u002Fdocs` or `\u002Fhealth`; redeploy via `vss-deploy-profile` or the matching `vss-deploy-*` skill.\n- **Error**: HTTP 401\u002F403 from NGC pulls. **Cause**: missing\u002Fexpired `NGC_CLI_API_KEY`. **Solution**: `docker login nvcr.io` and re-export the key before retrying.\n- **Error**: container OOM or model fails to load. **Cause**: insufficient GPU memory for the selected profile. **Solution**: switch to a smaller variant or free GPUs via `docker compose down`.\n\n# Deploy and Use RT-VLM Dense Captioning (VSS 3.2)\n\nRT-VLM is NVIDIA's real-time vision-language microservice: decode video (file or\nRTSP), segment it into chunks, run a VLM (`cosmos-reason1`, `cosmos-reason2`, or any\nOpenAI-compatible model), stream dense captions back over SSE\u002FHTTP, and publish\ncaptions, incident alerts, and errors to Kafka. Use this skill to deploy the\nstandalone RT-VLM service when a full VSS profile is not already running, then call\nits `\u002Fv1\u002F...` API for caption generation, file upload, live-stream management, health\nchecks, NIM-compatible chat completions, or Prometheus metrics. API reference:\n\u003Chttps:\u002F\u002Fdocs.nvidia.com\u002Fvss\u002Flatest\u002Freal-time-vlm-api.html>.\n\n## Deployment Routing\n\nIf the user asks to deploy a full VSS profile, use\n[`..\u002Fvss-deploy-profile\u002FSKILL.md`](..\u002Fvss-deploy-profile\u002FSKILL.md). That skill\nowns profile routing, `generated.env`, `resolved.yml`, multi-service sizing, and\nfull-stack deploy\u002Fteardown.\n\nIf the user asks for standalone RT-VLM dense captioning, or no VSS profile is\nalready running, use the standalone RT-VLM flow in\n[`references\u002Fdeploy-rt-vlm-service.md`](references\u002Fdeploy-rt-vlm-service.md)\nbefore calling the API. This follows the same compose-centric pattern as\n`vss-deploy-profile`: gather context, run preflights, work from a local copy,\ndry-run with `docker compose config`, review, deploy, then wait for health.\n\n## Standalone Deployment Flow\n\nAlways follow this sequence. Never skip the dry-run.\n\n```bash\n# 1. Copy deploy\u002Fdocker\u002Fservices\u002Frtvi\u002Frtvi-vlm\u002Frtvi-vlm-docker-compose.yml\n#    into any writable standalone working directory.\n# 2. Derive RTVI_VLM_IMAGE_TAG from that compose copy.\n# 3. Strip the standalone-only dangling depends_on block from the copy.\n# 4. Create a gitignored .env with the required RT-VLM values.\n# 5. Prepare host bind paths such as $VSS_DATA_DIR\u002Fdata_log\u002Fvst\u002Fclip_storage.\n# 6. docker compose --env-file .env -f rtvi-vlm-docker-compose.yml config --quiet\n# 7. docker pull the exact RT-VLM image tag.\n# 8. docker compose ... up -d rtvi-vlm, wait for ready, then smoke test.\n```\n\nRun preflights before any pull or `up`; stop and fix failures here before\ndebugging RT-VLM itself:\n\n```bash\nnvidia-smi --query-gpu=index,name --format=csv,noheader\nnvidia-container-cli info\ndocker compose version\ndocker run --rm --gpus all nvidia\u002Fcuda:12.4.0-base-ubuntu22.04 nvidia-smi\n```\n\nFor standalone single-file deployments, do not run the raw\n`deploy\u002Fdocker\u002Fservices\u002Frtvi\u002Frtvi-vlm\u002Frtvi-vlm-docker-compose.yml` directly: it\ncontains `depends_on` references to sibling VLM\u002FNIM services that are only\ndefined in the full VSS\u002Fmet-blueprints compose project. The standalone reference\nshows how to copy the compose file, derive the current image tag from it, strip\nthe `depends_on` block, and validate the result before `up`.\n\nIf `docker pull` fails with a containerd snapshotter\u002Funpack error on Docker 28+,\napply the `\u002Fetc\u002Fdocker\u002Fdaemon.json` `containerd-snapshotter=false` fix in the\nstandalone reference before retrying.\n\nMinimum standalone `.env` values:\n\n| Host env var | Required when | Purpose |\n|---|---|---|\n| `NGC_CLI_API_KEY` | Standalone deploy path | NGC registry image pull and NGC model\u002Fartifact download |\n| `RTVI_VLM_API_KEY` or `NGC_CLI_API_KEY` | Authenticated API calls | RT-VLM bearer auth after the service is running |\n| `RTVI_VLM_PORT` | Always | Host API port mapped to container `8000` |\n| `HOST_IP` | Always | Kafka bootstrap host (`${HOST_IP}:9092`) |\n| `VSS_DATA_DIR` | Always | Required clip-storage bind mount |\n| `RTVI_VLM_MODEL_TO_USE` | Always for standalone | Backend selector; use `cosmos-reason2` for the default local model or `openai-compat` for a remote\u002Fsibling endpoint |\n| `RTVI_VLM_MODEL_PATH` | Local self-hosted model | Source-backed Cosmos Reason 2 path: `ngc:nim\u002Fnvidia\u002Fcosmos-reason2-8b:0303-fp8-dynamic-kv8` |\n| `RTVI_VLM_ENDPOINT` | `RTVI_VLM_MODEL_TO_USE=openai-compat` | Remote\u002Fsibling OpenAI-compatible VLM endpoint |\n| `VLM_NAME` | `RTVI_VLM_MODEL_TO_USE=openai-compat` | Model\u002Fdeployment name exposed by that endpoint |\n\n## Setup\n\n```bash\nexport BASE_URL=\"http:\u002F\u002Flocalhost:${RTVI_VLM_PORT:-8018}\"  # host-side RT-VLM port\nexport API_KEY=\"${NGC_CLI_API_KEY:-${RTVI_VLM_API_KEY:-}}\" # bearer token used by host-side curl commands\n: \"${API_KEY:?Set NGC_CLI_API_KEY or RTVI_VLM_API_KEY before calling authenticated endpoints}\"\n```\n\nEvery request below uses `Authorization: Bearer $API_KEY`. Health endpoints\n(`\u002Fv1\u002Fhealth\u002F*`, `\u002Fv1\u002Fready`, `\u002Fv1\u002Flive`, `\u002Fv1\u002Fstartup`) typically work without auth.\n\n**Smoke test before use:**\n```bash\ncurl -fsS \"$BASE_URL\u002Fv1\u002Fhealth\u002Fready\"\nMODEL_ID=\"$(curl -fsS \"$BASE_URL\u002Fv1\u002Fmodels\" -H \"Authorization: Bearer $API_KEY\" | jq -r '.data[0].id \u002F\u002F .id')\"\ncurl -fsS \"$BASE_URL\u002Fopenapi.json\" | jq -r '.paths | keys[]' | sort\n```\n\n## Quick Start — dense captions from a local video\n\n```bash\n# 1. Upload the video, capture its file id\nFILE_ID=$(curl -fsS -X POST \"$BASE_URL\u002Fv1\u002Ffiles\" \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Fwarehouse.mp4\" \\\n  -F \"purpose=vision\" \\\n  -F \"media_type=video\" | jq -r '.id')\n\n# 2. Generate captions + alerts (SSE stream of chunked responses)\ncurl -N -X POST \"$BASE_URL\u002Fv1\u002Fgenerate_captions\" \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d \"{\n    \\\"id\\\": \\\"$FILE_ID\\\",\n    \\\"prompt\\\": \\\"Write a concise dense caption for each 10-second segment of this warehouse video.\\\",\n    \\\"model\\\": \\\"$MODEL_ID\\\",\n    \\\"chunk_duration\\\": 10,\n    \\\"stream\\\": true\n  }\"\n```\n\n## Endpoints\n\n### Captions\n> Generate VLM captions and alerts for videos and live streams.\n\n#### `POST \u002Fv1\u002Fgenerate_captions` — Generate VLM captions (and alerts) for video\u002Fstream\n\n**Required:**\n| Field | Type | Description |\n|-------|------|-------------|\n| `id` | string \\| array | UUID of a previously-uploaded file, or id of an active live stream. Accepts a list of ids for batch |\n| `prompt` | string | User prompt to the VLM (e.g. dense-caption instruction) |\n| `model` | string | Exact model id returned by `GET \u002Fv1\u002Fmodels`, for example `nim_nvidia_cosmos-reason2-8b_0303-fp8-dynamic-kv8`; backend selector aliases such as `cosmos-reason2` are not request model ids |\n\n**Key optional fields:**\n| Field | Type | Default | Description |\n|-------|------|---------|-------------|\n| `system_prompt` | string | — | System prompt; use `\u003Cthink>\u003C\u002Fthink>\u003Canswer>\u003C\u002Fanswer>` tags to enable reasoning on Cosmos Reason |\n| `enable_reasoning` | boolean | false | Turn on reasoning for Cosmos Reason models |\n| `enable_audio` | boolean | false | Transcribe audio (via Riva) and fold into captions |\n| `chunk_duration` | integer | — | Segment video into N-second chunks (`0` = no chunking) |\n| `chunk_overlap_duration` | integer | 0 | Overlap between consecutive chunks |\n| `num_frames_per_second_or_fixed_frames_chunk` | number | — | FPS (if `use_fps_for_chunking=true`) or fixed frames per chunk |\n| `use_fps_for_chunking` | boolean | false | Interpret above as FPS vs. fixed-frame count |\n| `vlm_input_width` \u002F `vlm_input_height` | int | — | Resize frames before inference (0 = native) |\n| `media_info` | object | — | `{\"type\":\"offset\",\"start_offset\":0,\"end_offset\":10}` to process a slice of a file (not live streams) |\n| `stream` | boolean | false | SSE: emit per-chunk caption deltas as `data:` events (recommended for long videos) |\n| `max_tokens` \u002F `temperature` \u002F `top_p` \u002F `top_k` \u002F `seed` \u002F `ignore_eos` | | | Standard sampling controls |\n| `response_format` | object | — | Query response format object |\n| `mm_processor_kwargs` | object | — | Extra kwargs for the multimodal processor (e.g. size, shortest\u002Flongest edge) |\n\n```bash\ncurl -N -X POST \"$BASE_URL\u002Fv1\u002Fgenerate_captions\" \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"id\": \"123e4567-e89b-12d3-a456-426614174000\",\n    \"prompt\": \"Dense-caption this warehouse video, one sentence per 10s chunk.\",\n    \"model\": \"nim_nvidia_cosmos-reason2-8b_0303-fp8-dynamic-kv8\",\n    \"chunk_duration\": 10,\n    \"stream\": true\n  }'\n```\n\n**Response shape:** live 26.05 responses use `chunk_responses` with\n`start_time`\u002F`end_time`; SSE streams terminate with `data: [DONE]`. See\n[`references\u002Fapi-surface-26.05.md`](references\u002Fapi-surface-26.05.md).\n\n#### `DELETE \u002Fv1\u002Fgenerate_captions\u002F{stream_id}` — Stop caption generation for a live stream, if exposed\n\nSome deployments expose this companion stop endpoint. Check the live OpenAPI\n(`curl -fsS \"$BASE_URL\u002Fopenapi.json\" | jq '.paths | keys[]'`) before using it.\nAlways pair live-stream cleanup with `DELETE \u002Fv1\u002Fstreams\u002Fdelete\u002F{stream_id}` to\nun-register the RTSP source.\n\n```bash\ncurl -X DELETE \"$BASE_URL\u002Fv1\u002Fgenerate_captions\u002F$STREAM_ID\" -H \"Authorization: Bearer $API_KEY\"\n```\n\n### Files\n> Upload and manage media files consumed by `\u002Fv1\u002Fgenerate_captions`.\n\n#### `POST \u002Fv1\u002Ffiles` — Upload a media file (multipart)\n```bash\ncurl -X POST \"$BASE_URL\u002Fv1\u002Ffiles\" -H \"Authorization: Bearer $API_KEY\" \\\n  -F \"file=@.\u002Fvideo.mp4\" -F \"purpose=vision\" -F \"media_type=video\"\n```\n**Response:** `{ \"id\", \"object\": \"file\", \"bytes\", \"created_at\", \"filename\", \"purpose\" }`.\nOptional metadata such as `sensor_name` may be accepted by newer builds; check\nthe live OpenAPI before sending it.\n\n#### `GET \u002Fv1\u002Ffiles?purpose=vision` — List uploaded files\n#### `GET \u002Fv1\u002Ffiles\u002F{file_id}` — File metadata\n#### `GET \u002Fv1\u002Ffiles\u002F{file_id}\u002Fcontent` — Download original file content\n#### `DELETE \u002Fv1\u002Ffiles\u002F{file_id}` — Delete file (releases asset storage)\n\n### Live Stream\n> RTSP stream lifecycle.\n\n#### `POST \u002Fv1\u002Fstreams\u002Fadd` — Register one or more RTSP streams\n**Required per stream:** `liveStreamUrl` (must start with `rtsp:\u002F\u002F`), `description`.\nOptional: `username`, `password`, `sensor_name`, and placement metadata\n(`place_name`, `place_type`, `place_lat`, `place_lon`, `place_alt`,\n`place_coordinate_x`, `place_coordinate_y`).\n\nPrecheck public or external RTSP sources before registering them. A probe exit\ncode alone is not enough; `gst-discoverer-1.0` can exit `0` while reporting an\nunknown media type. Treat the stream as usable only when a probe output\nidentifies at least one video stream\u002Fcaps entry. If one probe is inconclusive,\ncross-check with another tool such as `ffprobe` before failing or registering:\n\n```bash\nffprobe -v error -select_streams v:0 \\\n  -show_entries stream=codec_type -of csv=p=0 \"$RTSP_URL\" | grep -qx video\n```\n\n```bash\nSTREAM_ID=$(curl -fsS -X POST \"$BASE_URL\u002Fv1\u002Fstreams\u002Fadd\" \\\n  -H \"Authorization: Bearer $API_KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"streams\":[{\"liveStreamUrl\":\"rtsp:\u002F\u002Fcam:8554\u002Flive\",\"description\":\"warehouse cam 1\"}]}' \\\n  | jq -r '.results[0].id')\n```\n\n#### `GET \u002Fv1\u002Fstreams\u002Fget-stream-info` — List active streams\n#### `DELETE \u002Fv1\u002Fstreams\u002Fdelete\u002F{stream_id}` — Remove a single stream\n#### `DELETE \u002Fv1\u002Fstreams\u002Fdelete-batch` — Remove many (`{\"stream_ids\":[...]}`)\n\n#### CV-style singular stream endpoints\n\n26.05 deployments also expose CV-style stream control paths:\n`POST \u002Fv1\u002Fstream\u002Fadd`, `GET \u002Fv1\u002Fstream\u002Fget-stream-info`, and\n`POST \u002Fv1\u002Fstream\u002Fremove`. Use these when a workflow or release note explicitly uses\nthe key\u002Fvalue envelope; otherwise prefer the plural RT-VLM stream endpoints\nabove. See [`references\u002Fapi-surface-26.05.md`](references\u002Fapi-surface-26.05.md)\nfor examples and the `stream_count:0` compatibility caveat.\n\n### NIM Compatible\n> OpenAI-compatible endpoints for interop with OpenAI\u002FNVIDIA-API clients.\n\n#### `POST \u002Fv1\u002Fchat\u002Fcompletions` — OpenAI-compatible chat (text + multimodal)\n**Required:** `messages`, `model`. Text-only requests work and omit `id`,\n`video_url`, and `image_url`. For uploaded-video, direct `video_url`,\ndirect `image_url`, streaming, and RTSP-backed chat examples, see\n[`references\u002Fapi-surface-26.05.md`](references\u002Fapi-surface-26.05.md).\n\n```bash\ncurl -X POST \"$BASE_URL\u002Fv1\u002Fchat\u002Fcompletions\" -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d \"{\\\"model\\\":\\\"$MODEL_ID\\\",\\\"messages\\\":[{\\\"role\\\":\\\"user\\\",\\\"content\\\":\\\"Summarize this scene.\\\"}]}\"\n```\n\n#### `POST \u002Fv1\u002Fcompletions` — OpenAI-compatible legacy completions\nThis endpoint exists for compatibility, but on current 26.05 builds text-only legacy\ncompletion requests return HTTP 400 by design. Use `\u002Fv1\u002Fchat\u002Fcompletions` for\ntext-only and multimodal requests.\n\n#### `GET \u002Fv1\u002Fversion` — `{ \"version\": \"3.2.0-...\" }`\n#### `GET \u002Fv1\u002Fmanifest` — NIM manifest\n#### `GET \u002Fv1\u002Fhealth\u002Flive` · `GET \u002Fv1\u002Fhealth\u002Fready` — NIM-style probes\n\nDo not assume `\u002Fv1\u002Flicense` exists. The current 26.05 live OpenAPI does not expose it\nand the endpoint returns 404; only call it after checking `GET \u002Fopenapi.json`.\n\n### Models · Metadata · Metrics · Health Check\n#### `GET \u002Fv1\u002Fmodels` — List loaded VLMs: `{ \"data\": [{ \"id\", \"object\": \"model\", \"owned_by\" }] }`\n#### `GET \u002Fv1\u002Fmetadata` — Service metadata (build, release, image tag)\n#### `GET \u002Fv1\u002Fassets\u002Fstats` — Asset storage counts, TTL, and oldest-asset age\n#### `GET \u002Fv1\u002Fmetrics` — Prometheus metrics (plain text)\n#### `GET \u002Fv1\u002Fready` · `GET \u002Fv1\u002Flive` · `GET \u002Fv1\u002Fstartup` — Kubernetes-style probes\n\n---\n\n## Common Workflows\n\nThe four standard dense-captioning scenarios.\n\n### 1. Dense captions from a stored video file\n\n```bash\n# Upload → capture file id → generate captions (SSE stream)\nFILE_ID=$(curl -fsS -X POST \"$BASE_URL\u002Fv1\u002Ffiles\" \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -F \"file=@warehouse.mp4\" -F \"purpose=vision\" -F \"media_type=video\" | jq -r '.id')\n\ncurl -N -X POST \"$BASE_URL\u002Fv1\u002Fgenerate_captions\" \\\n  -H \"Authorization: Bearer $API_KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d \"{\n    \\\"id\\\": \\\"$FILE_ID\\\",\n    \\\"prompt\\\": \\\"Describe warehouse events in 1 sentence per 10s chunk.\\\",\n    \\\"model\\\": \\\"$MODEL_ID\\\",\n    \\\"chunk_duration\\\": 10,\n    \\\"stream\\\": true\n  }\"\n\n# When done, free storage:\ncurl -X DELETE \"$BASE_URL\u002Fv1\u002Ffiles\u002F$FILE_ID\" -H \"Authorization: Bearer $API_KEY\"\n```\n\n### 2. Dense captions from an RTSP live stream\n\n```bash\n# Register the stream\nSTREAM_ID=$(curl -fsS -X POST \"$BASE_URL\u002Fv1\u002Fstreams\u002Fadd\" \\\n  -H \"Authorization: Bearer $API_KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"streams\":[{\"liveStreamUrl\":\"rtsp:\u002F\u002F10.0.0.5:8554\u002Fwarehouse\",\"description\":\"warehouse cam\"}]}' \\\n  | jq -r '.results[0].id')\n\n# Start continuous caption generation\ncurl -N -X POST \"$BASE_URL\u002Fv1\u002Fgenerate_captions\" \\\n  -H \"Authorization: Bearer $API_KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d \"{\n    \\\"id\\\": \\\"$STREAM_ID\\\",\n    \\\"prompt\\\": \\\"Describe each event; start each sentence with a timestamp.\\\",\n    \\\"model\\\": \\\"$MODEL_ID\\\",\n    \\\"chunk_duration\\\": 10,\n    \\\"num_frames_per_second_or_fixed_frames_chunk\\\": 2,\n    \\\"use_fps_for_chunking\\\": true,\n    \\\"stream\\\": true\n  }\" &\n\n# Tear down when finished. If the live OpenAPI exposes\n# DELETE \u002Fv1\u002Fgenerate_captions\u002F{stream_id}, call it before unregistering.\ncurl -X DELETE \"$BASE_URL\u002Fv1\u002Fstreams\u002Fdelete\u002F$STREAM_ID\"  -H \"Authorization: Bearer $API_KEY\"\n```\n\n### 3. Dense captions with alerts from an RTSP stream\n\n```bash\n# Pre-req: Kafka is enabled and topics match the deployment source.\n# The checked-in rtvi-vlm\u002F.env and VSS alerts profiles use:\n#   RTVI_VLM_KAFKA_ENABLED=true\n#   RTVI_VLM_KAFKA_TOPIC=mdx-vlm\n#   RTVI_VLM_KAFKA_INCIDENT_TOPIC=mdx-vlm-incidents\n#   RTVI_VLM_ERROR_MESSAGE_TOPIC=vision-llm-errors\n#   HOST_IP=\u003Ckafka-host>\n# A copied compose without those env overrides falls back to vision-llm-* topics.\n# Confirm the live container before consuming:\n#   docker exec vss-rtvi-vlm printenv KAFKA_TOPIC KAFKA_INCIDENT_TOPIC ERROR_MESSAGE_TOPIC\n\nSTREAM_ID=$(curl -fsS -X POST \"$BASE_URL\u002Fv1\u002Fstreams\u002Fadd\" \\\n  -H \"Authorization: Bearer $API_KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"streams\":[{\"liveStreamUrl\":\"rtsp:\u002F\u002F10.0.0.5:8554\u002Fwarehouse\",\"description\":\"warehouse cam\"}]}' \\\n  | jq -r '.results[0].id')\n\ncurl -N -X POST \"$BASE_URL\u002Fv1\u002Fgenerate_captions\" \\\n  -H \"Authorization: Bearer $API_KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d \"{\n    \\\"id\\\": \\\"$STREAM_ID\\\",\n    \\\"prompt\\\": \\\"You are a warehouse monitoring system. Describe the scene in one sentence, then on a new line output exactly:\\\\nAnomaly Detected: Yes\u002FNo\\\\nReason: \u003Cone sentence>\\\\nFlag an anomaly if any worker is missing a hard hat or high-vis vest.\\\",\n    \\\"system_prompt\\\": \\\"Answer the user's question correctly in yes or no.\\\",\n    \\\"model\\\": \\\"$MODEL_ID\\\",\n    \\\"chunk_duration\\\": 60,\n    \\\"chunk_overlap_duration\\\": 10,\n    \\\"stream\\\": true\n  }\"\n```\n\n**Consume alerts from Kafka**. Kafka values are NvSchema protobuf payloads, so\nuse `print.value=false` for a clean validation pass that shows timestamp, key,\nand headers without dumping binary payload bytes. The VSS alerts\u002Fprofile source\nuses `mdx-vlm-incidents`; a bare copied compose may fall back to\n`vision-llm-events-incidents` if no `RTVI_VLM_KAFKA_INCIDENT_TOPIC` override is\nloaded. Prefer the live container environment over hard-coded topic names.\n```bash\nINCIDENT_TOPIC=\"${INCIDENT_TOPIC:-$(docker exec vss-rtvi-vlm printenv KAFKA_INCIDENT_TOPIC 2>\u002Fdev\u002Fnull || true)}\"\nINCIDENT_TOPIC=\"${INCIDENT_TOPIC:-mdx-vlm-incidents}\"\n\ndocker exec mdx-kafka kafka-console-consumer \\\n  --bootstrap-server 127.0.0.1:9092 \\\n  --topic \"$INCIDENT_TOPIC\" \\\n  --from-beginning \\\n  --timeout-ms 5000 \\\n  --max-messages 10 \\\n  --property print.timestamp=true \\\n  --property print.key=true \\\n  --property print.headers=true \\\n  --property print.value=false\n```\n\nIf Kafka is not running in the VSS `mdx-kafka` container, use the Kafka CLI from\nthe host or container running the broker:\n```bash\nINCIDENT_TOPIC=\"${INCIDENT_TOPIC:-mdx-vlm-incidents}\"\n\nkafka-console-consumer \\\n  --bootstrap-server \"$HOST_IP:9092\" \\\n  --topic \"$INCIDENT_TOPIC\" \\\n  --from-beginning \\\n  --timeout-ms 5000 \\\n  --max-messages 10 \\\n  --property print.timestamp=true \\\n  --property print.key=true \\\n  --property print.headers=true \\\n  --property print.value=false\n```\n\nFor standalone validation, remember that the RT-VLM compose maps Kafka through\n`KAFKA_BOOTSTRAP_SERVERS=${HOST_IP}:9092`; setting `KAFKA_BOOTSTRAP_SERVERS`\ndirectly in `.env` is ignored unless the compose is changed. The broker must\nadvertise a listener reachable from the `vss-rtvi-vlm` container. `localhost`\ninside the broker and service containers is not the host, and a broker alias\nsuch as `kafka:9092` only works when both containers share that Docker network.\nFor RT-VLM-only validation, prefer the self-contained broker in\n`references\u002Fkafka-workflows.md` over the full repo infra compose; the latter\nexpects full-profile SDRC env\u002Fconfig. If Kafka is already running, ask the user\nwhether to reuse it or launch a dedicated broker before stopping or replacing\nanything. Run CLI checks inside the actual broker container, but still configure\nthe advertised listener so RT-VLM can connect from its container network.\n\nIncident protobuf (`ext.proto :: Incident`) key fields: `sensorId`, `timestamp`, `end`,\n`objectIds`, `frameIds`, `place`, `analyticsModule`, `category`, `isAnomaly` (`true` for\nalerts), `llm` (nested VisionLLM), `info` map including `triggerPhrase`, `verdict`,\n`requestId`, `chunkIdx`, `streamId`, `alertCategory` (if the deployment supports the\n`alert_category` query field — post-3.1).\n\n### 4. Kafka workflows (alerts + message bus)\n\nDense captioning with alerts on an RTSP stream and the HTTP-vs-Kafka response model are documented in [`references\u002Fkafka-workflows.md`](references\u002Fkafka-workflows.md).\n\n## Error Reference\n\n| Code | Meaning | Common Cause |\n|------|---------|--------------|\n| 400 | Bad Request | Missing required field (`id`, `prompt`, `model`); unsupported `media_type`; unknown `model` name |\n| 401 | Unauthorized | Missing\u002Finvalid `Authorization: Bearer $API_KEY` — or wrong key format (expect `nvapi-...`) |\n| 404 | Not Found | `file_id` deleted \u002F stream_id not registered \u002F wrong endpoint path (note: `{stream_id}` is required on `DELETE \u002Fv1\u002Fstreams\u002Fdelete\u002F{stream_id}`) |\n| 413 | Payload Too Large | Uploaded file exceeds server `MAX_FILE_SIZE`; increase or pre-chunk the video |\n| 422 | Unprocessable Entity | Pydantic schema violation — e.g. `use_fps_for_chunking=true` without `num_frames_per_second_or_fixed_frames_chunk`; stream ids supplied to a file-only field like `media_info` |\n| 429 | Rate Limited | Too many concurrent streams — raise `VLM_BATCH_SIZE` or spread across instances |\n| 500 | Server Error | VLM inference exception (OOM, model unavailable) — check `docker logs vss-rtvi-vlm` |\n| 503 | Service Busy | Startup not complete (model still downloading) or upstream NIM dependency unhealthy |\n\n---\n\n## Gotchas\n\n- **Use the live OpenAPI as the source of truth.** For VSS 3.2, the caption-generation endpoint is `\u002Fv1\u002Fgenerate_captions`. Some older references and images used `\u002Fv1\u002Fgenerate_captions_alerts`; do not assume that path exists unless `GET \u002Fopenapi.json` shows it.\n- **URL-based input support depends on the deployed service version.** If the live schema does not expose `url`\u002F`media_type`\u002F`creation_time`, upload via `POST \u002Fv1\u002Ffiles` first and pass the returned `id`.\n- **Alert trigger = the tokens `\"yes\"` or `\"true\"` in the VLM response (case-insensitive)**. There is no per-request alert flag. Design prompts with an explicit `Anomaly Detected: Yes\u002FNo` line and set `system_prompt` to constrain the model to Yes\u002FNo answers (per the VSS docs). Every chunk is published to `KAFKA_TOPIC`; matched chunks additionally go to `KAFKA_INCIDENT_TOPIC` with `isAnomaly=true`, `info[\"triggerPhrase\"]` set to the matched tokens, and `info[\"verdict\"]=\"confirmed\"`.\n- **`alert_category` support depends on the deployed service version.** If the live OpenAPI schema does not expose it, Kafka incidents default `incident.category = \"vlm-alert\"`.\n- **Kafka topics are server-side config, not per-request.** The `KAFKA_*` env vars (via compose `RTVI_VLM_KAFKA_*` rewrites) are fixed at container start — clients can't override topics on a per-request basis. Kafka publish is *additive* to the HTTP response, never a replacement.\n- **Topic names differ by deployment source.** The checked-in RT-VLM `.env` and VSS alerts\u002Fprofile sources use `mdx-vlm` and `mdx-vlm-incidents`; a bare copied compose with no `RTVI_VLM_KAFKA_*` overrides falls back to `vision-llm-messages` and `vision-llm-events-incidents`. Always trust the live `vss-rtvi-vlm` environment before consuming.\n- **Standalone Kafka must advertise `${HOST_IP}:9092`.** The RT-VLM compose uses `KAFKA_BOOTSTRAP_SERVERS=${HOST_IP}:9092`; a broker that advertises `localhost:9094` or `kafka:9092` may pass producer\u002Fconsumer tests inside the broker container while RT-VLM publish fails.\n- **Start Kafka before RT-VLM when Kafka is enabled.** For deterministic standalone validation, make the broker reachable at `${HOST_IP}:9092` first. If you start Kafka later or change its advertised listener, restart\u002Frecreate `rtvi-vlm` before expecting Kafka offsets to move.\n- **`stream=true` returns Server-Sent Events, not chunked JSON.** Use `curl -N` (no buffering). Each event is `data: {...}\\n\\n` with per-chunk fields such as `content`, `start_time`, and `end_time`, terminated by `data: [DONE]`. Without `stream=true` the server buffers until the full video is processed — fine for short clips (\u003C1 min), avoid for live streams.\n- **Trust live OpenAPI for optional NIM-compatible endpoints.** `\u002Fv1\u002Flicense` is not exposed by current 26.05 builds and returns 404, even though older generic NIM docs may mention it.\n- **Prefer `\u002Fv1\u002Fchat\u002Fcompletions` over `\u002Fv1\u002Fcompletions`.** Text-only legacy completions return HTTP 400 by design on current 26.05 builds; text-only chat completions work.\n- **`chunk_duration=0` disables chunking** — the entire video is sent to the VLM as one shot. Only meaningful for short clips; long videos will OOM or exceed `max_model_len`.\n- **Default frame budget caps at `VLLM_MM_PROCESSOR_VIDEO_NUM_FRAMES` (256).** Requesting FPS that implies >256 frames per chunk is silently capped; drop FPS or shorten `chunk_duration` to stay within budget.\n- **`enable_reasoning` requires a Cosmos Reason model.** Passing it with Qwen3-VL or other non-reasoning models is a no-op.\n- **`\u002Fv1\u002Fmetrics` is unauthenticated on current 26.05 standalone builds.** A Bearer token is harmless if a deployment has stricter auth, but do not fail validation when `\u002Fv1\u002Fmetrics` returns HTTP 200 without auth.\n- **File upload is multipart, not JSON.** Use `-F file=@path -F purpose=vision -F media_type=video`; a `-d` body returns 422.\n- **Live-stream lifecycle cleanup must unregister the stream:** `DELETE \u002Fv1\u002Fstreams\u002Fdelete\u002F{stream_id}` removes the RTSP source. If the live schema also exposes `DELETE \u002Fv1\u002Fgenerate_captions\u002F{stream_id}`, call it first to stop inference explicitly.\n",{"name":5,"license":15,"metadata":24,"description":7},{"tags":25,"version":26,"github-url":27},"nvidia blueprint operational deployment","3.2.0","https:\u002F\u002Fgithub.com\u002FNVIDIA-AI-Blueprints\u002Fvideo-search-and-summarization","main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fvss-deploy-dense-captioning",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill vss-deploy-dense-captioning",{"tool":43,"command":44},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill vss-deploy-dense-captioning",{"tool":46,"command":47},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill vss-deploy-dense-captioning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fvss-deploy-dense-captioning\u002FSKILL.md",true,[51,57,62,66,70,74,78,82,87,91],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"BENCHMARK.md","REFERENCE","参考文档",6834,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fvss-deploy-dense-captioning\u002FBENCHMARK.md",{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":31,"sourceHtmlUrl":61},"evals\u002F.gitkeep","OTHER","其他","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fvss-deploy-dense-captioning\u002Fevals\u002F.gitkeep",{"path":63,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":64,"sourceHtmlUrl":65},"evals\u002Falerts_profile_api.json",5129,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fvss-deploy-dense-captioning\u002Fevals\u002Falerts_profile_api.json",{"path":67,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":68,"sourceHtmlUrl":69},"evals\u002Fstandalone_api.json",7144,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fvss-deploy-dense-captioning\u002Fevals\u002Fstandalone_api.json",{"path":71,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fapi-surface-26.05.md",5626,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fvss-deploy-dense-captioning\u002Freferences\u002Fapi-surface-26.05.md",{"path":75,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fdeploy-rt-vlm-service.md",35435,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fvss-deploy-dense-captioning\u002Freferences\u002Fdeploy-rt-vlm-service.md",{"path":79,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fkafka-workflows.md",15352,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fvss-deploy-dense-captioning\u002Freferences\u002Fkafka-workflows.md",{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":31,"sourceHtmlUrl":86},"scripts\u002F.gitkeep","SCRIPT","脚本","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fvss-deploy-dense-captioning\u002Fscripts\u002F.gitkeep",{"path":88,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":89,"sourceHtmlUrl":90},"skill-card.md",2031,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fvss-deploy-dense-captioning\u002Fskill-card.md",{"path":92,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":93,"sourceHtmlUrl":94},"skill.oms.sig",5581,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fvss-deploy-dense-captioning\u002Fskill.oms.sig",[96,104,111,118,125,132],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]