en un clic
update-docs
// Update OpenVINO GenAI site documentation for API or feature changes. Use when: new pipelines, models, or use-cases are introduced; site docs need to reflect new capabilities.
// Update OpenVINO GenAI site documentation for API or feature changes. Use when: new pipelines, models, or use-cases are introduced; site docs need to reflect new capabilities.
| name | update-docs |
| description | Update OpenVINO GenAI site documentation for API or feature changes. Use when: new pipelines, models, or use-cases are introduced; site docs need to reflect new capabilities. |
| argument-hint | Description of what changed (e.g. 'added SpeculativeDecodingPipeline' or 'changed GenerationConfig fields') |
Updates Docusaurus site pages under /site/docs/ after a code change.
The user must provide (or the agent infers from the diff):
"added VisualLanguageModelPipeline", "changed GenerationConfig.max_new_tokens default")If the description is not provided, derive it from the git diff against master (see Step 1).
Use the get_changed_files tool to list files changed relative to master. Focus on paths under src/cpp/include/, src/python/, src/js/lib/.
To understand what changed in each relevant file, prefer using appropriate tool calls over custom bash commands.
Decide which site sections need updating based on what changed:
| Change type | Section to update |
|---|---|
| New pipeline / use-case | site/docs/use-cases/<category>/index.mdx |
| New model type supported | site/docs/supported-models/_components/ |
| New public API or config option | Relevant guide in site/docs/guides/ |
| New concept or algorithm | site/docs/concepts/ |
Rules:
index.mdx in use-cases for the tab component pattern).[Supported Models](/docs/supported-models/)).Rules for models.ts entries:
architecture value against the model's config.json ("architectures" field) or HuggingFace model card. Do not guess from the model name.models.ts as the source of truth for naming style. The name is usually the marketing / family name grouping related versions under one entry (e.g. name: 'Phi3' covers Phi-3, Phi-3.5, Phi-4). Strip organisation prefixes and per-size suffixes (-7B, -Instruct), but preserve hyphens and version numbers when the existing table uses them (e.g. Qwen2.5, Phi-3.5-MoE).architecture.From the site/ directory, run lint and then a production build to catch any errors:
cd site
npm run lint:fix
npm run build
Fix any errors reported before proceeding. Do not skip this step — a passing build confirms MDX syntax, broken imports, and broken internal links are all resolved.
Run the following checklist before declaring the documentation update done:
npm run lint:fix passes with no errors.npm run build completes successfully.Summarize to the user:
Validate a newly supported optimum-intel model with OpenVINO GenAI. Use when: checking new model support, verifying model export to OpenVINO IR, running GenAI inference test with llm_bench, benchmarking model accuracy with who-what-benchmark.
Open a pull request to openvinotoolkit/openvino.genai. Use when: submitting changes, creating PR, opening pull request, pushing work for review, finalizing a task with a PR.