【PaddlePaddle Hackathon 10】Add Doc-QnA demo with PaddleOCR-VL + OpenVINO#552
Open
bob798 wants to merge 4 commits into
Open
【PaddlePaddle Hackathon 10】Add Doc-QnA demo with PaddleOCR-VL + OpenVINO#552bob798 wants to merge 4 commits into
bob798 wants to merge 4 commits into
Conversation
Document understanding and RAG Q&A system: - PaddleOCR-VL for document parsing (scanned PDFs, tables, formulas) - Table-aware chunking preserving row-header context - Qwen3-Embedding-0.6B-int8 (OpenVINO) for vector indexing - Qwen3-1.7B-int4 (OpenVINO GenAI) for answer generation - Source citations [doc_name p.page] in every answer - CPU-only: ~3.5s/question on Intel i5 All inference through OpenVINO — no PyTorch at runtime. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- main.py: 检测到缺失依赖时自动 pip install,真正一键 python main.py - 添加 demo.png 效果截图 - README: 更新为 One Command 复现 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a new Document Q&A demo that combines PaddleOCR-VL with OpenVINO for intelligent document understanding and RAG-based question answering.
[doc_name p.page]source citationsDemo output example
One-click run
cd demos/doc_qna_demo pip install -r requirements.txt python main.pyModels are auto-downloaded from HuggingFace on first run (~1.6 GB total for Embedding + LLM).
Files added
Test plan
pip install -r requirements.txt+python main.pyruns end-to-end