AIQ Research Skill
Purpose
Use this skill to call a locally running NVIDIA AI-Q Blueprint server through the helper script at
.
Use this skill for research-shaped requests, including:
- "deep research on ..."
- "AIQ research ..."
- "research ..."
- "use AI-Q to answer ..."
- "ask AI-Q about ..."
Do not use this skill for install, deploy, start, stop, UI, CLI, Docker, Helm, or troubleshooting requests. Those
belong to
.
Prerequisites
Users need:
- Python 3.11+ available as .
- A reachable local or self-hosted AI-Q Blueprint backend.
- set when the backend is not running at .
- A backend configured with authentication disabled for this public helper, or a separate authenticated AI-Q skill for
authenticated environments.
- Network access from the local machine to the AI-Q backend URL.
- Credentials configured in the backend environment, not in this skill. This public helper does not collect or manage
API keys.
The helper script has no third-party Python package dependencies; it uses Python standard-library HTTP modules.
Instructions
- Resolve the target backend URL.
- Run before sending research requests.
- If no backend is reachable, ask for a backend URL or hand off to .
- Tell the user the query will be sent to the configured AI-Q backend before sending it.
- Poll asynchronous deep research jobs when AI-Q returns a job ID.
- Present returned reports with citations and source URLs intact.
- Stop on failed jobs and show the returned error; do not retry automatically.
Step 1 - Resolve the backend
Use
when set. Otherwise try the default local backend:
bash
python3 $SKILL_DIR/scripts/aiq.py health
Expected output: JSON from a reachable AI-Q health endpoint.
If
fails and no explicit
was set, ask:
text
I do not see a reachable local AI-Q backend. Do you already have an AI-Q backend URL you want to use, or should I deploy a local Skill backend?
- If the user provides a URL, set for subsequent helper calls and rerun .
- If the user wants local deployment, hand off to and preserve the original research request.
- If a reachable backend returns or , stop and explain that this public skill does not manage
authentication. Ask the user to use an authenticated AI-Q skill or configure authentication for their environment.
- If succeeds but or fails, report that the backend is reachable but not
compatible with this public research flow, then offer to run validation.
Step 2 - Send the routed research request
Before sending the request, state the resolved endpoint:
text
I will send this query to <AIQ_SERVER_URL>. Make sure this endpoint is trusted before sending sensitive information.
Do not send credentials, cookies, bearer tokens, or secret values through the query text.
Run:
bash
python3 $SKILL_DIR/scripts/aiq.py chat "<USER_QUESTION>"
Expected output:
- A normal JSON response for shallow or direct answers.
- Or structured JSON containing
{"status": "deep_research_running", "job_id": "<JOB_ID>"}
for asynchronous deep
research.
If the response is normal JSON, present the result immediately. Do not force polling when there is no
.
Step 3 - Poll asynchronous jobs
If the response includes
, extract the
and poll with the same absolute script path:
bash
python3 $SKILL_DIR/scripts/aiq.py research_poll <JOB_ID>
Expected output: the final report JSON when the job completes successfully.
Use the runtime's non-blocking or background execution mechanism when available. If the chosen execution method requires
escalated permissions, request explicit user approval first and explain why. Tell the user that deep research is running
in the background.
Step 4 - Resume after interruptions
If polling is interrupted, the job continues server-side. Resume with:
bash
python3 $SKILL_DIR/scripts/aiq.py status <JOB_ID>
python3 $SKILL_DIR/scripts/aiq.py report <JOB_ID>
python3 $SKILL_DIR/scripts/aiq.py research_poll <JOB_ID>
Use
to inspect job status and saved artifacts. Use
when the job has already finished and you only need
the final output. Use
to keep waiting for completion.
Step 5 - Present the report
When
completes successfully, fetch and present the full report. Keep citations and source URLs intact.
If the job status is
,
, or
, show the error from the status response and ask whether the
user wants to retry with a narrower query or different approach.
Version Compatibility
IMPORTANT: This skill is designed for NVIDIA AI-Q Blueprint version 2.1.0.
Semantic Versioning Compatibility Rules:
text
Skill version: X.Y.Z
Blueprint or endpoint version: A.B.C
Compatible IF:
1. A == X (Major versions MUST match)
2. B >= Y (Minor version must be equal or greater)
3. C can be anything (Patch version does not affect compatibility)
Examples:
- Skill version 2.1.0 is compatible with Blueprint version 2.1.0.
- Skill version 2.1.0 is compatible with Blueprint version 2.2.0.
- Skill version 2.1.0 is compatible with Blueprint version 2.1.5.
- Skill version 2.1.0 is not compatible with Blueprint version 3.0.0.
- Skill version 2.1.0 is not compatible with Blueprint version 2.0.0.
If your Blueprint version is not compatible:
- Check for an updated skill version matching your Blueprint version.
- Use a Blueprint version compatible with this skill.
- Proceed with caution only when the user accepts the compatibility risk; API routes or response shapes may have
changed.
Available Scripts
| Script | Purpose | Arguments |
|---|
| Check whether the configured server responds | none |
| POST ; may return inline output or a deep-research job ID | |
| List available async agent types | none |
| Submit an explicit async job | |
| Submit an async job, poll, and print the final report JSON | |
scripts/aiq.py research_poll
| Resume polling an existing async job | |
| Fetch job status plus artifacts | |
| Fetch event-store artifacts only | |
| Fetch the final report for a completed job | |
| Stream SSE events from a job | |
| Cancel a running job | |
When the host supports a
helper, call it with
and the arguments above. Otherwise, run
the equivalent shell command, such as
python3 $SKILL_DIR/scripts/aiq.py health
.
Environment Variables
| Variable | Required | Default | Description |
|---|
| No | | Local or self-hosted AI-Q server base URL |
Security Best Practices
- Do not put API keys, bearer tokens, cookies, or basic-auth credentials in .
- Store backend credentials in the AI-Q deployment environment, not in this skill or command examples.
- User query text is transmitted to the configured . Confirm the endpoint is trusted before sending
sensitive or confidential information.
- Treat returned reports as potentially sensitive if the backend uses private data sources.
- Do not truncate citations or source URLs from returned reports.
Limitations
- This skill requires a running AI-Q backend; it does not deploy one.
- The public helper does not manage authentication tokens or cookies.
- Remote endpoints may log prompts, responses, and metadata.
- If the backend returns HTTP 500 or lacks async agents, report the failure instead of fabricating a research answer.
Examples
Example 1: Run a routed chat or research request
bash
python3 $SKILL_DIR/scripts/aiq.py health
python3 $SKILL_DIR/scripts/aiq.py chat "Compare local AIQ deep research with a standard web search workflow"
Expected output:
text
<health JSON from AI-Q>
<JSON chat response or {"status": "deep_research_running", "job_id": "<JOB_ID>"}>
If AI-Q returns a job ID, continue with
.
Example 2: Resume an existing job
bash
python3 $SKILL_DIR/scripts/aiq.py status <JOB_ID>
python3 $SKILL_DIR/scripts/aiq.py research_poll <JOB_ID>
Replace
with the UUID returned by AI-Q. Expected output: status JSON followed by the report JSON when the
job completes. If the job failed, show the returned status and do not retry automatically.
References
| Topic | Documentation |
|---|
| Helper script | |
| Deployment and backend validation | |
Common Issues
Issue: No backend is reachable
Symptoms:
- fails with connection refused.
- The default URL does not respond.
Causes:
- AI-Q is not running.
- AI-Q is running on a different host or port.
- A local firewall or network setting blocks the connection.
Solutions:
- Ask whether the user has an existing AI-Q backend URL.
- If they provide one, set it and rerun health:
bash
export AIQ_SERVER_URL="http://localhost:<PORT>"
python3 $SKILL_DIR/scripts/aiq.py health
- If they want a local backend, hand off to and preserve the original research request.
Issue: Backend requires authentication
Symptoms:
- Requests fail with HTTP 401 or HTTP 403.
- The backend is reachable but rejects or async job calls.
Causes:
- The backend was deployed with authentication enabled.
- The public helper does not attach user tokens or cookies.
Solutions:
- Stop and explain that this public skill does not manage authentication.
- Ask the user to use an authenticated AI-Q skill or configure their backend for this public local workflow.
- Rerun and the original query only after the authentication boundary is resolved.
Issue: Health succeeds but research routes fail
Symptoms:
- returns successfully.
- , , or polling commands fail.
Causes:
- The backend is not using an API-enabled AI-Q config.
- The async job registry is not available in the selected backend.
- The backend version is incompatible with this skill.
Solutions:
- Run:
bash
python3 $SKILL_DIR/scripts/aiq.py agents
- If agents are unavailable, report the compatibility failure and offer to run validation.
- Confirm the deployed Blueprint version is compatible with skill version 2.1.0.
Issue: Job is interrupted or appears stuck
Symptoms:
- Local polling is interrupted.
- The job keeps showing .
- Poll output shows , but a report is returned or cancel says the job is already .
Causes:
- Deep research is asynchronous and continues server-side.
- Local polling output can lag behind terminal server state.
Solutions:
- Check current state:
bash
python3 $SKILL_DIR/scripts/aiq.py status <JOB_ID>
- If or
job_status.status: success
, fetch the report:
bash
python3 $SKILL_DIR/scripts/aiq.py report <JOB_ID>
- If the job is still running, continue polling:
bash
python3 $SKILL_DIR/scripts/aiq.py research_poll <JOB_ID>