Skip to content

Fix VLM and Chat Documentation Discrepancies - #327

Closed
kovtcharov wants to merge 1 commit into
mainfrom
kalin/fix-vlm-documentation
Closed

kovtcharov wants to merge 1 commit into
mainfrom
kalin/fix-vlm-documentation

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

Summary

Fixes critical documentation discrepancies found in comprehensive review of VLM and Chat documentation.

Issues Fixed

Critical

  • VLM default model: Updated all references from Qwen2.5-VL-7B-Instruct-GGUF to Qwen3-VL-4B-Instruct-GGUF in docs/spec/vlm-client.mdx
  • VLM timeout: Corrected from 60 seconds to 300 seconds (5 minutes) for image extraction, clarified 60s is for model loading
  • ChatConfig default: Fixed assistant_name default from "assistant" to "gaia" in docs/guides/chat.mdx
  • Invalid model example: Removed non-existent Qwen3-VL-8B-Instruct-GGUF example from src/gaia/vlm/mixin.py docstring

Files Changed

  • docs/spec/vlm-client.mdx - VLM specification (model name + timeout)
  • docs/guides/chat.mdx - Chat guide (assistant_name)
  • src/gaia/vlm/mixin.py - VLMToolsMixin (invalid example)

Verification

All changes verified against implementation:

  • src/gaia/llm/vlm_client.py:73 - Confirms Qwen3-VL-4B default
  • src/gaia/llm/vlm_client.py:253 - Confirms 300s timeout
  • src/gaia/chat/sdk.py:39 - Confirms "gaia" assistant_name

Impact

  • Documentation now matches actual code behavior
  • Users following docs will get correct model names
  • Timeout expectations realistic for processing time
  • Code examples work without errors

Testing

  • Documentation only changes
  • All updates verified against source code
  • No functional changes

Critical fixes:
- Update VLM default model from Qwen2.5-VL-7B to Qwen3-VL-4B in spec
- Fix VLM timeout documentation (60s → 300s for extraction, 60s for loading)
- Fix ChatConfig assistant_name default (assistant → gaia)
- Remove invalid Qwen3-VL-8B model example from VLMToolsMixin

These changes align documentation with actual implementation in:
- src/gaia/llm/vlm_client.py
- src/gaia/chat/sdk.py

Resolves documentation review findings for VLM and Chat components.
@kovtcharov kovtcharov closed this Feb 9, 2026
@kovtcharov
kovtcharov deleted the kalin/fix-vlm-documentation branch February 9, 2026 09:54
@github-actions github-actions Bot added the documentation Documentation changes label Feb 9, 2026
pull Bot pushed a commit to bhardwajRahul/gaia that referenced this pull request Jul 18, 2026
…ivilege workflow permissions (amd#2236)

Any browser client of the Agent UI memory dashboard or the EMR dashboard
could see raw exception text — internal file paths, exception classes,
and error internals — whenever a scan, inference, or model load failed.
Responses now return a generic message with a short correlation id, and
the full exception (with traceback) is logged server-side, so debugging
stays possible without exposing internals. `test_eval_rag.yml` also
drops the default token grants in favor of an explicit `contents: read`.

Closes 8 of the 9 open medium-severity CodeQL alerts in these two rule
classes; the 9th is dismissed as a verified false positive.

| Alert | Rule | Location | Resolution |
|---|---|---|---|
| #249 | py/stack-trace-exposure | `src/gaia/ui/routers/memory.py`
stream-discovery SSE | Generic message + correlation id; full detail
logged server-side |
| #250 | py/stack-trace-exposure | `src/gaia/ui/routers/memory.py`
stream-inference SSE | Same |
| amd#346 | py/stack-trace-exposure | `src/gaia/ui/routers/memory.py`
settings `system_context_error` | Same |
| amd#347–amd#349 | py/stack-trace-exposure | EMR dashboard `/api/init` (3
sinks) | Removed `str(e)` from the returned `steps` payload; logged
instead |
| amd#323, amd#324 | actions/missing-workflow-permissions |
`.github/workflows/test_eval_rag.yml` | Top-level `permissions:
contents: read` (both jobs only checkout + run the eval) |
| amd#327 | py/stack-trace-exposure | EMR dashboard `/api/chat` |
**Dismissed (false positive)** — response already routed through
`_sanitize_response_text`, which strips tracebacks, `File` lines,
exception class names, and paths; CodeQL can't model the regex barrier |

## Test plan

- [x] `python util/lint.py --all` passes
- [x] `tests/unit/test_memory_router.py` — 768 passed (1 pre-existing,
unrelated failure also fails on clean main: expects faiss missing, but
it's installed locally)
- [x] EMR package tests — 67 passed
- [x] Workflow YAML parses; both jobs verified read-only (checkout +
eval run, no writes to repo/issues/checks)
- [ ] CodeQL on this PR reports no new alerts and closes the fixed ones
after merge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant