Skip to content

docs(eval): install the flagship agent in the eval guides - #6925

Merged
kovtcharov-amd merged 5 commits into
amd:mainfrom
huong8373tt-beep:fix/3424-eval-ui-dependencies
Nov 7, 2026
Merged

kovtcharov-amd merged 5 commits into
amd:mainfrom
huong8373tt-beep:fix/3424-eval-ui-dependencies

Conversation

@huong8373tt-beep

@huong8373tt-beep huong8373tt-beep commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

The eval guides install .[eval,ui] (since #6933) but not the flagship agent package. The default gaia agent lives in hub/agents/gaia/python, and no extra pulls it in. Anyone following the guide gets the Agent UI backend running, then hits a ModuleNotFoundError when the eval tries to create a session. This adds -e hub/agents/gaia/python to every eval install line that starts the backend, the same install GAIA's own eval workflow uses. The audit-only job stays on .[eval] because it only reads source.

Follows #6933, which fixed the missing web stack for #3424.

Test plan

  • docs/guides/eval.mdx and the four backend-starting jobs in docs/guides/eval-ci.mdx install -e ".[eval,ui]" -e hub/agents/gaia/python; the audit job installs .[eval]
  • Optional: run the Quick Start workflow from a clean checkout and confirm a rag_quality scenario creates its session

@github-actions github-actions Bot added dependencies Dependency updates tests Test changes labels Nov 7, 2026
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Verdict: Request changes

This fixes the immediate crash: the server in the eval-CI guide now gets its web stack and starts. But the guide's first job is a RAG-quality eval, and the document-search libraries it needs (faiss, the PDF readers) are still missing from this install. A user who copies the workflow gets past startup and then fails at the first document question, with an error that's harder to trace than today's.

  • Install the full UI set, not a hand-picked part of it. GAIA's own eval workflows install the eval and UI extras together. Pointing the guide at that same pair fixes the whole recipe and leaves one dependency list instead of two that can drift apart. If you'd rather keep everything in the eval extra, add the document-search libraries as well and test for them.

Real-world evidence

N/A: no evidence bundle was produced for this run (packaging/test-only change from a fork). The verdict rests on static review alone. Nobody has run the guide's workflow from a clean install with this change.

🔍 Technical details

Issues

🟡 [eval] still can't run the guide's RAG eval (setup.py:303-312)

  • docs/guides/eval-ci.mdx installs .[eval], starts gaia.ui.server, then runs --category rag_quality. The server's boot job (src/gaia/ui/server.py:603) imports faiss, and src/gaia/rag/sdk.py:40-43 swallows a missing faiss at import and raises later from RAGSDK._check_dependencies(). RAG also needs pypdf/pypdfium2, and the guide's document fixtures need python-docx/python-pptx/openpyxl. [eval] has pypdf and numpy but not faiss-cpu, pypdfium2 or the office readers.
  • The repo's own lane (.github/workflows/test_gaia_agent_eval.yml:284) installs [dev]+[eval]+[ui]+[api]. The closest fix is changing the five uv pip install -e ".[eval]" --system lines in eval-ci.mdx (L52, L178, L279, L297, L338) to ".[eval,ui]" and dropping the copied lines from [eval]. Copying five of [ui]'s pins into [eval] leaves two lists to keep in sync, e.g. the httpx bound.
  • If you keep the [eval] approach, add the RAG dists to [eval] and to the new test's required set.

🟡 Follow-up: eval-ci guide doesn't install the flagship agent package. The flagship lives in hub/agents/gaia/python and no extra pulls it in. test_gaia_agent_eval.yml:286-289 notes that session creation fails with ModuleNotFoundError without the local editable install. The guide's recipe probably needs that step as well. Worth confirming and filing if this PR doesn't fix it.

🟢 Test parses requirement names with chained splits (tests/unit/test_api_extras.py:145-146). This misses ~=/!=/[extra] forms. re.split(r"[<>=!~\[;\s]", r, 1)[0] covers them. Minor, since today's entries all parse.

Licences: fastapi (MIT), uvicorn (BSD-3), python-multipart (Apache-2.0), httpx (BSD-3), psutil (BSD-3). All permissive, and [ui] already ships them.

Strengths

  • The fix is backed by a static packaging test in the same style as test_ui_extras.py, so it runs in the unit venv without installing the extra.
  • Small and well scoped: no runtime code changes, and Fixes #3424 links the audit finding.

@huong8373tt-beep

Copy link
Copy Markdown
Contributor Author

Addressed the review findings in e3aad8f07.

The documented eval recipe now installs the same complete stack used by GAIA's own eval workflows: .[eval,ui] plus the editable flagship package hub/agents/gaia/python. The UI extra supplies the RAG/document readers and backend dependencies, while the hub package registers the default gaia agent. The UI dependencies were removed from [eval] to avoid two dependency lists drifting.

Both docs/guides/eval.mdx and all five eval-ci.mdx install steps are covered by a static regression test.

Validation on D: 6 passed; Black, compileall, and git diff --check pass.

# Conflicts:
#	docs/guides/eval-ci.mdx
#	docs/guides/eval.mdx
@github-actions github-actions Bot added the documentation Documentation changes label Nov 7, 2026
@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Thanks, @huong8373tt-beep. Your second commit took the approach from the review. While this PR was open, #6933 merged and switched the guide to .[eval,ui] on its own. I merged main and resolved the conflicts, so this PR now adds the part #6933 didn't cover: installing the flagship agent package, which the eval needs to create a session.

🔍 Technical details
  • Conflicts: docs/guides/eval-ci.mdx and docs/guides/eval.mdx conflicted with docs(eval): install the ui extra in the CI guide workflows #6933 (.[eval,ui]) and docs(guides): drop bare uv run from code-index and eval commands #6900 (dropped the bare uv run). I resolved them on top of main and added only your -e hub/agents/gaia/python to each install line. The audit-only job also gets .[eval,ui] plus the flagship, as in your commit.
  • Diff vs main: the two guides plus your static test in tests/unit/test_api_extras.py. There are no setup.py changes.
  • Validation: tests/unit/test_api_extras.py and tests/unit/test_ui_extras.py pass (11 passed). black, isort and flake8 are clean.

@swastiktawate swastiktawate left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this fix. The eval guides now install the full stack the workflows need, and the new test pins the recipe so it cannot silently drift again.

One small nit: the new test checks the whole guide file for the .[eval,ui] and hub/agents/gaia/python strings, so it passes as long as any one of the five install blocks still has them. If a single block regressed, for example the Architecture Audit job slipping back to .[eval] alone, the test would still pass. Checking each install block separately, or counting the occurrences, would catch that.

Not blocking, the fix itself is correct and the test covers the current state.

…de test

The audit job only reads source, so it needs no UI stack or flagship
package. The static test read two docs that test_unit.yml doesn't
trigger on and passed on a single mention, so it is removed.
@kovtcharov-amd kovtcharov-amd changed the title fix(eval): install Agent UI dependencies in the eval extra docs(eval): install the flagship agent in the eval guides Nov 7, 2026
@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Quick follow-up: #6933 had already landed the .[eval,ui] change, so I trimmed this down to what was still missing, the flagship agent install in the eval guides. I dropped the static test (CI wouldn't run it when the docs change) and kept the audit-only job on .[eval], since it only reads source. Thanks again!

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 7, 2026
Merged via the queue into amd:main with commit 3a81872 Nov 7, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency updates documentation Documentation changes tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants