[inter-v2-10] Real E2E: upload → index → Q&A (OpenRouter) (#417) - #455
Open
CodingMinh wants to merge 1 commit into
Open
[inter-v2-10] Real E2E: upload → index → Q&A (OpenRouter) (#417)#455CodingMinh wants to merge 1 commit into
CodingMinh wants to merge 1 commit into
Conversation
… OpenRouter (#417) - Hoàn thành chu trình Real E2E (không MSW) trên stack Docker Compose: upload -> convert worker -> OpenRouter embedding (Qwen 8B) -> grounded Q&A. - Bổ sung thử nghiệm mở rộng (Stretch Goal): Deferred Vision OCR trên tài liệu scan PDF 1 trang với model qwen/qwen3.7-flash, xác minh placeholder markhand:ocr-pending được worker stage thay thế hoàn toàn bằng text OCR. - Ghi nhận chi tiết checklist biến môi trường, thời gian thực thi (timings) và phân tích các failure modes (SignatureMismatch, Upstream 429). - Đảm bảo 100% bảo mật: giữ nguyên cách ly sandbox converter, không commit secret. Fixes #417
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.
Mục tiêu PR
Thực hiện và tài liệu hóa chu trình kiểm thử đầu-cuối thực tế (Real E2E stack, không sử dụng mock mạng / MSW) theo yêu cầu của Issue #417 và kiến trúc ADR 0016:
Document Upload→Convert Worker→OpenRouter Embedding (Qwen 8B)→Qdrant Vector Storage→Grounded Q&A+Deferred Vision OCR.Nội dung thay đổi
bench/INTER_V2_10_REAL_E2E.md.[CITE-0001], hash SHA-256 của chunk và dẫn chứng cụ thể.CLONE_NEWNETvới placeholder<!-- markhand:ocr-pending ... -->, sau đó worker stage ngoài sandbox gọi OpenRouterqwen/qwen3.7-flashđể trích xuất văn bản tiếng Việt và cập nhật vào Markdown preview.SignatureMismatchkhi tính toán sai chữ ký index và cách hệ thống xử lý fail-closed khi gặp upstream rate limit 429 từ OpenRouter.Kết quả thực nghiệm & Thời gian đo được
deploy/scripts/poc-up.sh&poc-health.shPOST /api/v1/auth/login)admin@poc.example.txt)e03b67a7-865f-4151-9075-83a38f993594uploaded→converted→indexed(OpenRouter Qwen 8B)POST /api/v1/ask)[CITE-0001]Tiêu chuẩn An toàn & Bảo mật (Security Checklist)
deploy/.envđược giữ ở môi trường local (đã gitignore). Mọi API key hiển thị trong tài liệu báo cáo đều được gắn nhãn<REDACTED_OPENROUTER_KEY>.CLONE_NEWNETtuyệt đối; không truyền API key vào môi trường sandbox.cargo fmt --all -- --checkvàpython3 scripts/check-dependency-policy.py. Không thêm các test flaky phụ thuộc mạng ngoài vào CI mặc định.Liên kết liên quan
docs/adr/0016-openrouter-qwen-ocr-embedding.md)plans/reports/plan-2026-08-06-p2-20-real-e2e-foundation.md