Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
nvidia-video-search-and-summarization-video-search【部署与运维】Search video archives using natural language — find events, objects, actions, and people across recorded video using fusion search (Cosmos Embed1 semantic search + CV attribute search). Use when asked to search for something in video, find actions and events, locate objects and people, or query video archives. For these types of questions, default to…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Alpha Feature — not recommended for production use.
Search video archives by natural language using Cosmos Embed1 embeddings. Requires the search profile — deploy with the deploy skill (-p search). These videos sources can be ingested files or RTSP streams.
This skill requires the VSS search profile running on the host at $HOST_IP. Before any request:
Probe the stack:
curl -sf --max-time 5 "http://${HOST_IP}:8000/docs" >/dev/null \
&& curl -sf --max-time 5 "http://${HOST_IP}:9200/" >/dev/null
(The second check confirms Elasticsearch is up — unique to the search profile.)
If the probe fails, ask the user:
"The VSS
searchprofile isn't running on$HOST_IP. Shall I deploy it now using the/deployskill with-p search?"
/deploy skill. Return here once it succeeds.(If your caller has granted explicit pre-authorization to deploy
autonomously — e.g. the request says "pre-authorized to deploy
prerequisites", or you are running in a non-interactive evaluation
harness with that permission — skip the confirmation and invoke
/deploy directly.)
If the probe passes, proceed.
This search orchestrated by VSS agent can lead to 3 behaviors:
When using this skill, ALWAYS follow this high-level workflow:
$HOST_IP
is not explicitly provided. See § Input resolution below. Do NOT
default to localhost, 127.0.0.1, the host the agent itself is
running on, or any other guess. Do NOT issue a
POST http://.../generate request until the user has supplied an
endpoint. Respond to the user with a single question asking for
HOST_IP / the VSS agent endpoint and wait.Video Search Results:
— Use clear section headers
Verification Stepscreenshot_url of the best candidates (highest similarity scores) from the search hits (JSON results) to /tmp. Read them and verify if they correspond to the user queryInfer these inputs only from the conversation or user query (no other files unless provided). If some cannot be inferred, ask the user immediately:
video-analytics skill to cross-reference search results with incident/alert dataDefault to using this REST API approach, unless user specifies otherwise.
# Consider only ingested video file sources by default
curl -s -X POST http://${HOST_IP}:8000/generate \
-H "Content-Type: application/json" \
-d '{"input_message": "find all instances of forklifts"}' | jq .
# Search by object
curl -s -X POST http://${HOST_IP}:8000/generate \
-H "Content-Type: application/json" \
-d '{"input_message": "find vehicles in the parking lot"}' | jq .
# Search by action
curl -s -X POST http://${HOST_IP}:8000/generate \
-H "Content-Type: application/json" \
-d '{"input_message": "show me people running"}' | jq .
# Search by time context
curl -s -X POST http://${HOST_IP}:8000/generate \
-H "Content-Type: application/json" \
-d '{"input_message": "what happened at the entrance between 2pm and 3pm?"}' | jq .
# Consider only RTSP sources with `search_source_type` filter i.e. live camera streams
curl -s -X POST http://${HOST_IP}:8000/generate \
-H "Content-Type: application/json" \
-d '{"input_message": "find all instances of forklifts", "search_source_type": "rtsp"}' | jq .
If user query is ambiguous, user wants more guidance or when fine-grained control is needed, augment the user input_message by calling out explicitly certain options in plain-text and steering the agent in the desired direction. Available control axes:
| Axes | Type | Default | Description |
|---|---|---|---|
video sources | string[] | null | Filter to specific cameras or sensor names |
top k | int | 10 | Max results |
minimum similarity | float | 0.0 | Min similarity threshold; raise (e.g. 0.3) to filter noise |
critic usage | bool | true | VLM verifies each result and removes false positives |
description | string | null | Filter by camera metadata (e.g. location, category) if metadata is available |
Pick and choose some of these tuning options. Adjust them as needed for the user’s situation and query. For examples of discovery modes leveraging these, see discovery_modes.md.
Open http://${HOST_IP}:3000/ and type natural-language queries:
find all instances of forklifts
show me people near the loading dock
when did a truck arrive at the gate?
find someone wearing a red jacket
Results include timestamped clips with similarity scores.
npx agent-browser --auto-connect open http://${HOST_IP}:3000
npx agent-browser --auto-connect wait --load networkidle
npx agent-browser --auto-connect snapshot -i
Find the chat input, enter a search query, and snapshot results.