Repository navigation
fix(talk): require document indexing before voice startup - #6638
Conversation
Stop requested-document voice sessions when indexing fails, and document the talk and RAG extras needed for document Q&A. Closes amd#3481
|
Verdict: Approve
Real-world evidenceN/A: no evidence bundle was produced for this run. The PR description includes the author's own CLI run of the failure path: it prints the 🔍 Technical detailsIssues found: none blocking. Checks done
🟢 Generic RAG failures lose the install hint ( Strengths
|
Closes #3481
Summary
Voice chat now refuses to start when a requested document cannot be indexed, rather than silently answering without its context.
Why
The voice guide installed only the talk extra, while document indexing also needs RAG dependencies. Other indexing errors had the same silent fallback.
Changes
amd-gaia[talk,rag]install and make the runtime install hint work outside a source checkout.enable_rag()calls returning a boolean.Test plan
1afdf340.git diff --checkpassed.Evidence
With
gaia talk --indexin an environment without RAG dependencies, the original code warned and continued into voice startup. With the fix, it reported the package installation command and exited with status 1 before starting voice chat. A second run with RAG installed and a read-only state directory also exited before voice startup.Command:
gaia talk --index tests/fixtures/gaia/tiers_documents/vendor_quotes/cobalt_quote.pdf --no-tts --no-lemonade-check --base-url http://127.0.0.1:9/api/v1
Output after the fix:
WARNING | RAG dependencies not available. Install with: uv pip install "amd-gaia[talk,rag]"
Error: gaia talk failed: Could not index the requested documents for voice chat. Check the RAG error above and retry.
Exit status: 1. No "Starting voice chat" message.
Checklist