Vision: rewrite the prompt to fully describe EVERY image (charts, graphs,
diagrams, tables with values, figures, visible text, layout, insights)
instead of charts-only and ignoring tables. Raise max_tokens 1000->2000,
keep partial output on finish_reason=length instead of dropping the image,
and always emit >=1 VisionChunk per analyzed image so non-chart images
now contribute to RAG instead of returning nothing.
RAG/pipeline: thread a progress callback through from_files ->
build_all_indexes and map stage messages (embed load, vector, KG triplets,
BM25, hybrid ready) onto the 70-95% band, so the UI shows real movement
during the long indexing/training step instead of freezing at 74%.
Gradio: keep status busy at 100% inside the consume loop and only flip to
ready (and reveal Go-to-Chat) in the post-loop yield after RAG_SYSTEMS is
populated, closing the race where the UI said trained/ready before chat
actually worked.
Co-Authored-By: Claude <noreply@anthropic.com>
Force embedding model to CPU (avoid ZeroGPU CUDA init outside @spaces.GPU)