Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .agents/recipes/docs-and-references/recipe.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: docs-and-references
description: Audit documentation freshness - docstrings vs signatures, broken links, architecture refs, docs site content accuracy
trigger: schedule
tool: claude-code
timeout_minutes: 20
max_turns: 30
timeout_minutes: 40
max_turns: 50
permissions:
contents: write
---
Expand Down
31 changes: 19 additions & 12 deletions .github/workflows/agentic-ci-issue-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,25 @@ jobs:
echo "Claude CLI version: $(claude --version 2>&1 || true)"

if [ -n "$ANTHROPIC_BASE_URL" ] && [ -n "$ANTHROPIC_API_KEY" ]; then
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" \
--max-time 30 \
-X POST "${ANTHROPIC_BASE_URL}/v1/messages" \
-H "Content-Type: application/json" \
-H "x-api-key: ${ANTHROPIC_API_KEY}" \
-H "anthropic-version: 2023-06-01" \
-d "{\"model\":\"${AGENTIC_CI_MODEL}\",\"max_tokens\":5,\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}]}")
if [ "$HTTP_CODE" -lt 200 ] || [ "$HTTP_CODE" -ge 300 ]; then
echo "::error::API pre-flight failed with HTTP ${HTTP_CODE}"
exit 1
fi
echo "API pre-flight passed (HTTP ${HTTP_CODE})"
for ATTEMPT in 1 2 3; do
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" \
--max-time 30 \
-X POST "${ANTHROPIC_BASE_URL}/v1/messages" \
-H "Content-Type: application/json" \
-H "x-api-key: ${ANTHROPIC_API_KEY}" \
-H "anthropic-version: 2023-06-01" \
-d "{\"model\":\"${AGENTIC_CI_MODEL}\",\"max_tokens\":5,\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}]}")
if [ "$HTTP_CODE" -ge 200 ] && [ "$HTTP_CODE" -lt 300 ]; then
echo "API pre-flight passed (HTTP ${HTTP_CODE})"
break
fi
if [ "$ATTEMPT" = "3" ]; then
echo "::error::API pre-flight failed with HTTP ${HTTP_CODE}"
exit 1
fi
echo "API pre-flight failed with HTTP ${HTTP_CODE}; retrying (${ATTEMPT}/3)"
sleep $((ATTEMPT * 10))
done
fi

- name: Run issue triage recipe
Expand Down
30 changes: 29 additions & 1 deletion .github/workflows/build-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,35 @@ jobs:
echo "No previous successful run found, proceeding without cache"
fi
- name: Convert and execute notebooks
run: make convert-execute-notebooks ${{ inputs.use_cache && 'USE_CACHE=1' || '' }}
run: |
if [ "$GITHUB_EVENT_NAME" = "schedule" ]; then
.venv/bin/python - <<'PY'
from pathlib import Path

def replace_once(path: str, old: str, new: str) -> None:
target = Path(path)
text = target.read_text()
if old not in text:
raise SystemExit(f"Could not patch {target}")
target.write_text(text.replace(old, new, 1))

replace_once(
"docs/notebook_source/4-providing-images-as-context.py",
"config_builder = dd.DataDesignerConfigBuilder()\n",
"config_builder = dd.DataDesignerConfigBuilder()\n"
"for model_config in config_builder.model_configs:\n"
" if model_config.alias == \"nvidia-vision\":\n"
" model_config.skip_health_check = True\n"
" break\n",
)
replace_once(
"docs/notebook_source/6-editing-images-with-image-context.py",
'num_records=5, dataset_name="tutorial-6-edited-images"',
'num_records=2, dataset_name="tutorial-6-edited-images"',
)
PY
fi
make convert-execute-notebooks ${{ inputs.use_cache && 'USE_CACHE=1' || '' }}
- name: Upload notebooks as artifacts
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
Expand Down
66 changes: 33 additions & 33 deletions docs/colab_notebooks/4-providing-images-as-context.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "4ca15f91",
"id": "48e22ade",
"metadata": {
"nemo_colab_inject": true
},
Expand All @@ -12,15 +12,15 @@
},
{
"cell_type": "markdown",
"id": "2cd80b1e",
"id": "818cd54c",
"metadata": {},
"source": [
"# 🎨 Data Designer Tutorial: Providing Images as Context for Vision-Based Data Generation"
]
},
{
"cell_type": "markdown",
"id": "f4907fbd",
"id": "d647ae72",
"metadata": {},
"source": [
"#### 📚 What you'll learn\n",
Expand All @@ -37,7 +37,7 @@
},
{
"cell_type": "markdown",
"id": "64041401",
"id": "bb480625",
"metadata": {},
"source": [
"### 📦 Import Data Designer\n",
Expand All @@ -49,7 +49,7 @@
},
{
"cell_type": "markdown",
"id": "a272a017",
"id": "925a998c",
"metadata": {
"nemo_colab_inject": true
},
Expand All @@ -62,7 +62,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "786e739e",
"id": "e7fdd944",
"metadata": {
"nemo_colab_inject": true
},
Expand All @@ -75,7 +75,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "c71603f7",
"id": "f7d6f416",
"metadata": {
"nemo_colab_inject": true
},
Expand All @@ -95,7 +95,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "798b74f0",
"id": "b9abde6c",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -118,7 +118,7 @@
},
{
"cell_type": "markdown",
"id": "fcc79cd5",
"id": "a1c77bae",
"metadata": {},
"source": [
"### ⚙️ Initialize the Data Designer interface\n",
Expand All @@ -131,7 +131,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "d0c5ad95",
"id": "68b1d829",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -140,7 +140,7 @@
},
{
"cell_type": "markdown",
"id": "dde957c8",
"id": "8389f7ff",
"metadata": {},
"source": [
"### 🏗️ Initialize the Data Designer Config Builder\n",
Expand All @@ -155,7 +155,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "ed9f9c8d",
"id": "69aa26ef",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -164,7 +164,7 @@
},
{
"cell_type": "markdown",
"id": "1cfa8352",
"id": "8b41e1a8",
"metadata": {},
"source": [
"### 🌱 Seed Dataset Creation\n",
Expand All @@ -181,7 +181,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "ad5dcc9e",
"id": "7d4d6b79",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -196,7 +196,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "94f73f6a",
"id": "25db08ec",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -241,7 +241,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "641d0d6f",
"id": "99f8e510",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -259,7 +259,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4cc6da4d",
"id": "704b9fb8",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -269,7 +269,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "82d962de",
"id": "26520718",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -280,7 +280,7 @@
},
{
"cell_type": "markdown",
"id": "5a8fcb53",
"id": "2e183dbb",
"metadata": {},
"source": [
"### 🧩 Media context and model capabilities\n",
Expand Down Expand Up @@ -317,7 +317,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "571b94a9",
"id": "3a7e6d36",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -339,7 +339,7 @@
},
{
"cell_type": "markdown",
"id": "f591a975",
"id": "aaad5a53",
"metadata": {},
"source": [
"### 🔁 Iteration is key – preview the dataset!\n",
Expand All @@ -356,7 +356,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "25cdbea4",
"id": "5cb6556a",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -366,7 +366,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "6a2e9028",
"id": "464d9b59",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -377,7 +377,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "f29e5a7a",
"id": "ed758a46",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -387,7 +387,7 @@
},
{
"cell_type": "markdown",
"id": "48dd0ead",
"id": "cf99670b",
"metadata": {},
"source": [
"### 📊 Analyze the generated data\n",
Expand All @@ -400,7 +400,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "e0570168",
"id": "81323c51",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -410,7 +410,7 @@
},
{
"cell_type": "markdown",
"id": "95fa4cea",
"id": "236dc69b",
"metadata": {},
"source": [
"### 🔎 Visual Inspection\n",
Expand All @@ -421,7 +421,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "622d3d4a",
"id": "ad69c8f9",
"metadata": {
"lines_to_next_cell": 2
},
Expand All @@ -445,7 +445,7 @@
},
{
"cell_type": "markdown",
"id": "a4e4b2ee",
"id": "68455649",
"metadata": {},
"source": [
"### 🆙 Scale up!\n",
Expand All @@ -458,7 +458,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "1fa4a946",
"id": "e7d28398",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -468,7 +468,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "cbdb22bc",
"id": "a977eca8",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -481,7 +481,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "e3c86efa",
"id": "a0977b4e",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -493,7 +493,7 @@
},
{
"cell_type": "markdown",
"id": "2ac40b13",
"id": "e0ae9fbc",
"metadata": {},
"source": [
"## ⏭️ Next Steps\n",
Expand Down
Loading
Loading