Repository navigation
Faster defaults: standard OCR by default, cheaper E-Books listing; fix main CI - #6
Conversation
…x main CI Speed: - Upload page defaults to standard OCR. Advanced layout analysis measured ~3x slower per page (5.7s vs 1.9s on a 300 DPI page) and only helps tables/forms/stamps; the toggle now says so and remembers each user's choice (localStorage). - GET /api/projects/ebooks read every document's full OCR text to compute a word count and a 300-char snippet. Word counts are now stored (ocr_text.word_count, refreshed whenever OCR/cleanup/batch writes text, backfilled on startup for existing databases) and the snippet is cut in SQLite. 2,000 documents x 6,000 words: 579 ms -> 135 ms per request, same response. CI on main has been red since 3ae2fc5 (lint only): unused imports/state in Cleanup.jsx and Metadata.jsx (the extraction error was already shown as a toast), and import ordering in routes/projects.py and services/pdfa.py. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jze3nDgZGqUXGceiu5RCAf
ECC Tools / Security EvidenceCommit: Security evidence gate passed (success) No security-sensitive scanner-evidence gap detected. Mode: enforce Scanned 10 changed file(s). No missing scanner-evidence signal was detected. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / PR Risk TaxonomyCommit: PR taxonomy review recommended (neutral) Detected 1 PR taxonomy bucket(s): CI/CD Recommendation. Scanned 10 changed file(s). Roadmap taxonomy buckets: CI/CD RecommendationCI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work. Signals:
Paths:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Reference Set ReadinessCommit: Reference set readiness gaps detected (neutral) Reference evidence present for 0/7 areas (0%) across 10 changed file(s). This check is based on files changed in this PR. Repository-level readiness is still reported by
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Hosted Promotion ReadinessCommit: Hosted promotion readiness passed (success) No hosted promotion evidence gaps detected across 10 changed file(s); 0 corpus scenarios had matching evidence. This check compares PR file changes against the evaluator/RAG promotion corpus in No evaluator corpus scenarios matched this PR. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
Speed
Standard OCR is now the default. Advanced layout analysis measured about 3× slower per page (5.7 s vs 1.9 s on a 300 DPI page), but it only helps documents with tables, forms or stamps.
The E-Books listing is 4.3× faster.
GET /api/projects/ebooksused to read every document's full OCR text just to compute a word count and a 300-character snippet.ocr_text.word_count.Fixes red CI on
mainCI has failed on the last 4 pushes to
main, all lint errors:Cleanup.jsxandMetadata.jsx, and an unusedextractionErrorstate. The error was already shown as a toast, so removing the state loses nothing.routes/projects.pyandservices/pdfa.py.Testing
Note for a follow-up (not changed here)
GET /api/projects/<id>/file?type=pdf(added onmainin 777c673) now runs a full OCR of a scanned PDF inside the request when no searchable PDF exists. On a long document that blocks the viewer for minutes. It would be better as a background job, with the viewer showing the original until the job finishes.🤖 Generated with Claude Code
https://claude.ai/code/session_01Jze3nDgZGqUXGceiu5RCAf
Generated by Claude Code