feat: multimodal RAG with PDF image extraction and display

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>
This commit is contained in:
2026-05-28 12:14:40 +08:00
parent 3f12e96ea0
commit 4bb50ae9c1
15 changed files with 351 additions and 40 deletions
+4
View File
@@ -32,6 +32,10 @@ const nextConfig = {
source: '/generated_images/:path*',
destination: `${backendUrl}/generated_images/:path*`,
},
{
source: '/images/:path*',
destination: `${backendUrl}/images/:path*`,
},
];
},
// 禁用静态生成,避免 SSR 时使用浏览器 API 的错误