Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@ Bundled libraries (npm)
- js-yaml ...................... MIT

Vendored code
- public/vendor/paddleocr-vl/ — PaddleOCR-VL WebGPU 0.1.0 (commit f7d2f8a), Apache-2.0,
Copyright 2026 SotaOCR. Modified: configurable model base URL, no second cache copy while
loading. See public/vendor/paddleocr-vl/LICENSE.txt and NOTICE.txt.
- src/ocr/ppocr.worker.js — pre/post-processing written after PaddleOCR's DBPostProcess,
CTCLabelDecode and get_rotate_crop_image (PaddleOCR, Apache-2.0).

Models downloaded at runtime (from the configured host)
- PP-OCRv6 tiny / medium (det + rec ONNX), PaddlePaddle ............ Apache-2.0
- PaddleOCR-VL 1.6 WebGPU build (glebkudr/PaddleOCR-VL-1.6-WebGPU) .. Apache-2.0
- IBM Granite Embedding 311M Multilingual R2 (ONNX q8)
(ibm-granite / onnx-community ports) ............................. Apache-2.0
- Qwen2.5 0.5B / 1.5B Instruct, Qwen3.5 0.8B (MLC builds) .......... Apache-2.0
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ When you add a document, models download once (then stay cached) and run **local

| Step | What it does | Model |
| --- | --- | --- |
| **Read the page** | Photo/PDF → text | PP-OCRv6 (tiny by default; medium or PaddleOCR-VL on desktop) |
| **Read the page** | Photo/PDF → text | PP-OCRv6 (tiny by default; medium optional) |
| **Fill the filing card** | Suggests title, sender, date, labels | Small Qwen models via WebLLM |
| **Search by meaning** | Finds docs by idea, not exact words | IBM Granite Embedding 311M Multilingual R2 |

Expand All @@ -119,9 +119,8 @@ Only **one** engine is in memory at a time (so phones stay stable). While models

| Model | Size | Notes |
| --- | --- | --- |
| PP-OCRv6 tiny | ~12 MB | Default; ships with the app; good on phones |
| PP-OCRv6 tiny | ~12 MB | Default; good on phones |
| PP-OCRv6 medium | ~107 MB | Same family, more accurate |
| PaddleOCR-VL 1.6 | ~1.9 GB | Desktop + WebGPU; 100+ languages (incl. Arabic) |

**Metadata (title / from / date / labels)**

Expand All @@ -144,7 +143,6 @@ Weights are **not** in git. They download on first use and cache on the device.
| Model | Job | License |
| --- | --- | --- |
| PP-OCRv6 tiny / medium | OCR | Apache-2.0 |
| PaddleOCR-VL 1.6 | OCR (desktop) | Apache-2.0 |
| Qwen2.5 / Qwen3.5 (above) | Metadata | Apache-2.0 |
| Granite Embedding 311M R2 | Meaning search | Apache-2.0 |

Expand Down Expand Up @@ -175,7 +173,7 @@ More detail: [docs/architecture.md](docs/architecture.md) · [ADR 0001](docs/adr
- Closing the tab while a document is still being read loses that upload
- Trash can be restored here; “delete forever” is left to whatever manages the bucket
- Large documents use a single PUT (no multipart upload)
- PP-OCRv6 has no Arabic; use PaddleOCR-VL on desktop for that
- PP-OCRv6 has no Arabic or Japanese
- After changing embedding models, rebuild the search index in Settings → Search

## Contributing & license
Expand Down
2 changes: 1 addition & 1 deletion docs/adr/0001-browser-only-pwa-with-direct-s3-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ or keys.
deleted on start.
- The S3 keys are encrypted with a user password: PBKDF2-SHA-256 (600,000 rounds) → AES-256-GCM, stored in
IndexedDB. The app shows an unlock screen on every open and forgets the plain keys after 15 minutes idle.
- OCR (PP-OCRv6 via onnxruntime-web, optional PaddleOCR-VL via WebGPU), metadata (WebLLM / Qwen) and meaning-search
- OCR (PP-OCRv6 via onnxruntime-web), metadata (WebLLM / Qwen) and meaning-search
embeddings (**IBM Granite Embedding 311M Multilingual R2** via transformers.js, Apache-2.0) all run on the device.
Models download from Hugging Face / official WebLLM libs on first use and are cached in the browser (not in the document bucket).
- Memory rules for phones: one model in memory at a time, downloads one file at a time streamed into the cache,
Expand Down
202 changes: 0 additions & 202 deletions public/vendor/paddleocr-vl/LICENSE.txt

This file was deleted.

7 changes: 0 additions & 7 deletions public/vendor/paddleocr-vl/NOTICE.txt

This file was deleted.

Loading
Loading