Skip to content

docs: fix wrong model defaults, fabricated CLI commands, and stale references - #1298

Merged
kovtcharov-amd merged 5 commits into
mainfrom
kalin/docs-accuracy-fixes
Jun 3, 2026
Merged

kovtcharov-amd merged 5 commits into
mainfrom
kalin/docs-accuracy-fixes

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

A repo-wide doc audit found documentation that actively misleads users and contributors. docs/reference/cli.mdx documented six commands that don't exist (gaia mcp add/remove, visualize, groundtruth, batch-experiment, eval -f) — anyone copy-pasting them hits an error — plus wrong defaults (SD model, download/Lemonade ports) and a duplicate Kill section. The chat/global default model is Gemma-4-E4B-it-GGUF, but CLAUDE.md, the LLM and Chat SDK docs, and the EMR guide all claimed Qwen variants (CLAUDE.md contradicted itself). The code guide falsely stated Python generation was removed (it's still the default), CLAUDE.md's structure/agent/tool tables had drifted from the source, and agent-ui.mdx showed the wrong Lemonade port. After this PR the docs match the code.

This is the documentation half of the audit; the code-hygiene + test-coverage findings ship separately.

Test plan

  • python -c "import json; json.load(open('docs/docs.json'))" — nav still valid JSON
  • grep -rE "gaia (mcp add|mcp remove|visualize|groundtruth|batch-experiment)" docs/reference/cli.mdx — returns nothing
  • Spot-check the corrected defaults against the CLI: gaia sd -h (SDXL-Turbo), gaia download -h (port 13305), gaia init -h (npu profile present)
  • grep -rn "GaiaAgent" src/gaia — still zero matches, confirming the "planned, not done" wording is correct

…ale references

Several docs described commands and defaults that don't exist in the code, so
users copy-pasting them hit errors and contributors trusted wrong values. The
chat/global default model is Gemma-4-E4B-it-GGUF, but CLAUDE.md, the LLM SDK
doc, the Chat SDK doc, and the EMR guide all claimed Qwen variants (CLAUDE.md
even contradicted itself). docs/reference/cli.mdx documented six commands that
were never implemented (`gaia mcp add`/`remove`, `visualize`, `groundtruth`,
`batch-experiment`, `eval -f`) plus wrong defaults (sd model, download/Lemonade
ports) and a duplicate Kill section. CLAUDE.md's structure tree, agent table,
tool-mixin table, and CLI list had drifted from the code, and the code guide
falsely claimed Python generation was removed.

Changes:
- Default model corrected to Gemma-4-E4B-it-GGUF across CLAUDE.md, llm.mdx,
  chat.mdx, and emr.mdx (EMR VLM included); per-agent table now matches code.
- cli.mdx: removed the six fabricated commands, fixed sd/download/Lemonade
  defaults, added the `npu` init profile, dropped the stale duplicate Kill
  section, and documented previously-missing real commands (summarize, jira,
  docker, telegram).
- CLAUDE.md: structure tree, agent table, and KNOWN_TOOLS table synced to the
  real source; GaiaAgent rename marked planned (not done); CLI list corrected.
- code.mdx: Python generation documented as still supported (it's the default).
- agent-ui.mdx: Lemonade port 13305 and a broken in-page anchor fixed.
- AGENTS.md: removed the stale "currently active PR #606" note (merged).
- Removed the orphaned duplicate guides/telegram.mdx (superseded by
  telegram-adapter.mdx).
@github-actions github-actions Bot added documentation Documentation changes devops DevOps/infrastructure changes labels May 29, 2026
@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

@claude review this PR.

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Reviewed — every corrected fact in this PR matches the source. 🟢 Looks good to merge.

I verified the substantive claims against src/gaia/:

Claim Source ✓
Global default Gemma-4-E4B-it-GGUF lemonade_client.py:119 (DEFAULT_MODEL_NAME) ✓
Lemonade port 13305 lemonade_client.py:50 (DEFAULT_PORT); gaia download --port default ✓
SD default SDXL-Turbo cli.py:1604 (default="SDXL-Turbo") ✓
gaia init --profile includes npu cli.py:2622 choices list ✓
gaia mcp add/remove don't exist mcp subparsers register only start/stop/status/test/agent/docker/serve/list/tools/test-client ✓
EMR VLM default Gemma-4-E4B-it emr/agent.py:79 (vlm_model=) ✓
GaiaAgent still planned, not in code 0 matches in src/gaia ✓
Python codegen still supported (code.mdx) matches CodeAgent behavior ✓

Also confirmed the housekeeping is clean: docs.json still parses, the new security/connectors nav target exists (docs/security/connectors.mdx), and the deleted guides/telegram.mdx stub leaves no dangling nav refs (nav points at guides/telegram-adapter, which is a separate live file).

One note for whoever merges: the pr-diff.txt snapshot I was handed was slightly behind the branch head — it showed the gaia mcp {…} synopsis still listing add|remove, but the committed CLAUDE.md:559 already drops them with the #977 note. The actual head state is internally consistent, so this is just a stale-artifact observation, not a fix needed.

Nice cleanup — this removes the copy-paste-and-it-errors traps. No blockers from me.

Resolve conflicts in CLAUDE.md and docs/reference/cli.mdx by taking main's
versions: PRs #1337, #1340, #1364 already synced both files to the code more
recently, and the PR's stale side reintroduced removed commands (mcp
add/remove) and the broken /guides/summarize link that was failing the
internal cross-reference CI check.

Keep the PR's still-valid accuracy fixes (Gemma-4-E4B-it default in
chat/llm/emr docs, agent-ui Lemonade port 13305 + #install anchor, code
agent Python-gen still supported, telegram.mdx removal, #606 stale-note
removal).

Fix one contradiction the merge surfaced: main's CLAUDE.md and emr/cli.py
listed the EMR VLM as Qwen3-VL-4B, but agent.py and all --vlm-model
defaults are Gemma-4-E4B-it-GGUF. Aligned both with the code and emr.mdx.
@github-actions github-actions Bot added the agents label Jun 3, 2026
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

🟡 Two missed spots in the VLM model rename — both will leave Qwen3-VL-4B in the docs/code after this lands:

docs/sdk/sdks/vlm.mdx:18 — setup line still references the old model:

Setup: gaia init --profile vlm installs ... downloads the Qwen3-VL-4B vision model (~3 GB).

Should be Gemma-4-E4B-it-GGUF (~3 GB).

src/gaia/vlm/mixin.py:45 — class docstring says:

    vlm_model: VLM model to use (default: Qwen3-VL-4B-Instruct-GGUF)

but the actual default at line 55 is already Gemma-4-E4B-it-GGUF. The docstring just wasn't updated.

Everything else in the diff looks consistent and correct.

Two spots still referenced the old Qwen3-VL-4B as the VLM default, both
contradicting the code: `gaia init --profile vlm` downloads
Gemma-4-E4B-it-GGUF (init_command.py) and VLMToolsMixin.init_vlm defaults
to it (mixin.py:55).

- docs/sdk/sdks/vlm.mdx: setup line now says Gemma-4-E4B-it-GGUF
- src/gaia/vlm/mixin.py: docstring matches the actual default
@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Both fixed in 0d2891b — verified against the code:

  • docs/sdk/sdks/vlm.mdx:18 → Gemma-4-E4B-it-GGUF (matches init_command.py, where the vlm profile downloads ["Gemma-4-E4B-it-GGUF"])
  • src/gaia/vlm/mixin.py:45 docstring → Gemma-4-E4B-it-GGUF (matches the actual init_vlm default at line 55)

The other Qwen3-VL-4B mentions across the SD/EMR playbooks and plans are intentional explicit model choices (it is still a supported VLM), not stale default claims — left for a separate audit rather than widening this PR.

…ction

Full doc-vs-code audit of the CLI reference and SDK/guide docs surfaced
several stale values that contradicted the actual code:

- init profile table was entirely wrong — it listed Qwen3.5-35B / Qwen3-VL-4B
  ~25 GB setups, but INIT_PROFILES (src/gaia/installer/init_command.py) uses
  Gemma-4-E4B-it-GGUF across the board (3-4 GB). Rewrote every row to match,
  added the missing `npu` profile, and dropped the `mcp` row (it is not a real
  INIT_PROFILES entry — `gaia init --profile mcp` raises ValueError).
- `gaia download --port` and `gaia kill` Lemonade port: 8000 -> 13305.
- `gaia sd --sd-model` default: SD-Turbo -> SDXL-Turbo.
- `gaia prompt`/`gaia talk` `--model` default: Qwen3-0.6B-GGUF -> auto
  (parent parser default is None; the agent auto-selects).
- Removed the false "all profiles include Qwen3-0.6B" note; `gaia llm` uses the
  global default (Gemma-4-E4B-it-GGUF).
- Added a Connectors CLI section (the command existed but had no reference).
- rag.mdx: chunk_size default 512 -> 500 (matches RAGConfig and the example).
- emr.mdx: LLM named precisely as Qwen3.5-35B-A3B-GGUF.
- CLAUDE.md: EMR model name format consistency; tools/ description clarity.
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

🟡 docs/reference/cli.mdx — --profile mcp removed from docs but still supported in code

cli.py:2661 still lists "mcp" in the choices list, and cli.py:4011-4014 routes it to run_mcp_init. Users reading the updated docs will assume --profile mcp is gone, but it still works and does something different from the other profiles (no model download, just MCP config setup).

Either:

  • Keep the row in the profile table (noting it's MCP-only, no LLM download), or
  • Also remove "mcp" from choices in cli.py:2661 and the branch at cli.py:4011

The --minimal flag help text (~400 MB) in cli.py:2667 is also now stale (actual size is ~3 GB per INIT_PROFILES), but that's a pre-existing issue not introduced here.

Second-round doc-vs-code audit across the remaining guides, CLI sections,
and SDK reference docs:

- sd.mdx: the SD agent uses a single multimodal Gemma-4-E4B-it-GGUF for both
  the LLM (orchestration) and VLM (vision/stories) roles plus SDXL-Turbo, but
  the guide described Qwen3-8B + Qwen3-VL-4B as separate models throughout
  (overview, model lists, diagrams, tables, code, sizing). Corrected every
  reference, consolidated the duplicated model rows, and fixed the ~15 GB ->
  ~10 GB download total.
- connectors.mdx: get_access_token / get_access_token_sync examples used
  connector_id=, but the API parameter is provider= (grant_agent and
  ConnectorRequirement correctly use connector_id, so those were left as-is).
- code-index.mdx: --base-url default 8000 -> 13305.
- cli.mdx: removed the documented `gaia api start --background` flag (the api
  parser has no such option); completed the Summarize and Blender option
  tables to match their argparse definitions.
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

🟡 docs/reference/cli.mdx — mcp profile dropped from docs but still valid in code

The updated --profile options table omits mcp, but cli.py:2661 still lists it:

choices=["minimal", "sd", "chat", "code", "rag", "mcp", "vlm", "npu", "all"],

gaia init --help therefore still advertises mcp as a valid choice, directly contradicting the updated docs. This also affects the same profile list in CLAUDE.md.

Either add mcp back to the table (with a deprecation note if it's being retired), or remove it from the choices list and help string in cli.py so the docs and CLI are in sync.

@kovtcharov-amd
kovtcharov-amd enabled auto-merge June 3, 2026 05:12
@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Jun 3, 2026
Merged via the queue into main with commit a12c39e Jun 3, 2026
41 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the kalin/docs-accuracy-fixes branch June 3, 2026 05:15
kovtcharov-amd pushed a commit that referenced this pull request Jun 3, 2026
19 PRs merged to main after the v0.20.0 notes were drafted; merge main into
the release branch and update the notes to match.

- Multi-Device: note #1338 wired the selector end-to-end (it was a no-op
  after #1252 alone) and added loud runtime validation for unavailable devices.
- PowerPoint RAG: note #1366 unblocked .pptx in the Agent UI file picker
  (backend already accepted it; the frontend rejected it pre-upload).
- Activations: note #1310 widened the "Active for" panel to MCP-consuming
  agents (e.g. the chat agent), not just static REQUIRED_CONNECTORS.
- New bug fixes: RAG embedding reuse (#1306), overlapping-chat-turn 409
  (#1304), Memory/Settings mutual exclusivity (#1368).
- Tooling/CI: doc-vs-code realignment (#1298/#1337/#1340), gaia-testing
  skill (#1372), Claude CI + Codecov hardening.
- Full Changelog regenerated: 44 -> 63 commits.
pull Bot pushed a commit to bhardwajRahul/gaia that referenced this pull request Jun 3, 2026
…md#1377)

`gaia init --profile mcp` finishes by telling the user to run `gaia mcp
add time "uvx mcp-server-time"`, and `gaia mcp list` (empty state) says
the same. That command was **removed in amd#977** — anyone who follows the
on-screen guidance hits an "invalid choice" error on their very first
step. This swaps both messages for the path that works today: edit
`~/.gaia/mcp_servers.json` directly (shown with a correct `mcpServers`
example) and verify with `gaia mcp list`. The stale `/docs/` doc link is
corrected to the live `https://amd-gaia.ai/guides/mcp/client` too.

Split out of amd#1298, which purged these same dead `gaia mcp add`/`remove`
references from the **docs** but deliberately scoped itself to `docs/` —
this fixes the matching **runtime CLI output** that amd#1298 left
untouched. Related to amd#1075 (init profiles need attention) but distinct
from it: amd#1075 tracks model-download profiles collapsing to Gemma-4-E4B,
whereas the `mcp` profile downloads no model at all and was failing
purely on its post-setup guidance.

## Test plan
- [x] `pytest tests/unit/installer/test_mcp_init.py` — new regression
test asserts the guidance contains no `gaia mcp add` and does point at
editing `mcp_servers.json`
- [x] `gaia init --profile mcp --yes` — "Next steps" shows the
config-file edit + `gaia mcp list`, no dead command
- [x] `gaia mcp list` (no servers configured) — empty-state guidance
shows the config example, no dead command
- [x] `python util/lint.py --black --isort` passes

---------

Co-authored-by: Ovtcharov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents devops DevOps/infrastructure changes documentation Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants