PDF image extraction now renders pages with pdf2image, detects figure
regions using docling-layout-heron (RT-DETRv2), and crops only the
detected pictures. Removes full-page fallback for text-only pages.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Backend port changed from 8000 to 8002 due to port conflict (frpc on Windows).
- Add resolveImageUrl() to convert relative image URLs to full backend URLs
- Fix all spatial page image src and download handlers to use backend address
- Fix chat message image rendering to use correct port
- Switch download to blob-based approach to support cross-origin file saving
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Markdown image src with relative paths (/images/...) now resolves to
backend API URL instead of frontend port. Added SVG favicon to eliminate
404 on /favicon.ico.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Add global FastAPI exception handler for unhandled errors
- Add get_current_user_obj() dependency for cleaner auth patterns
- Switch VLM image description from serial to asyncio.gather concurrency
- Extract score conversion to shared score_utils module
- Docker: use env vars for passwords, remove hardcoded API key default
- Add .gitattributes and update .gitignore for tar.gz and tsbuildinfo
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Extract images from PDFs using pymupdf, generate descriptions via
Qwen3-VL-8B, store in ChromaDB alongside text chunks, and render
images in chat answers. Includes image proxy rewrite, force re-process
endpoint, and VLM API timeout.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>