How aminul1993/extraction-workbench works
Extraction Workbench turns an uploaded document into a schema-shaped record, then lets a reviewer verify and submit it. The browser renders the document and runs OCR locally while sending the file and OCR text to the Flask extraction API; the API converts available document text and asks Groq for structured fields. The review model associates values with page locations and statuses, while the workbench presents editing and review controls. Edges reflect the shown imports, calls, and README-documented integrations; unsampled implementation details are not inferred.
Main entry points: workbench.js Review workbench · app.py Flask API · main.js Page startup · extraction.py Extraction workflow
Components 20
Browser workbench
- Workbench page
index.html - Page startup
static/js/main.js - Review workbench
static/js/workbench.js - Document viewer
static/js/documents.js - Browser OCR
static/js/ocr.js - API client
static/js/api.js - API endpoints
static/js/config.js - Icon rendering
static/js/icons.js - Dialogs and notices
static/js/ui.js
Extraction API
- Flask API
api/app.py - Extraction workflow
api/extraction.py - Launch token checks
api/launch_token.py
Review domain
- Schema model
static/js/schema.js - Review rules
static/js/review-model.js - Shared utilities
static/js/util.js - Reference schema
api/reference_schema.json
External integrations
- Document conversion
api/extraction.py
Other components
- Reviewer
- Parent application
- Groq model
Connections 24
- Reviewer → Workbench page: opens and uploads
README.md - Workbench page → Page startup: loads
README.md - Page startup → Review workbench: starts
static/js/main.js - Page startup → API client: loads config
static/js/main.js - Review workbench → Document viewer: renders page
static/js/workbench.js - Review workbench → Browser OCR: recognizes text
static/js/workbench.js - Review workbench → API client: requests extraction
static/js/workbench.js - Review workbench → API endpoints: uses endpoints
static/js/workbench.js - Review workbench → Schema model: parses schema
static/js/workbench.js - Review workbench → Review rules: applies review rules
static/js/workbench.js - Review workbench → Dialogs and notices: shows notices
static/js/workbench.js - Review workbench → Icon rendering: uses icons
static/js/workbench.js - Dialogs and notices → Icon rendering: renders icons
static/js/ui.js - Review rules → Schema model: reads schema
static/js/review-model.js - Review rules → Shared utilities: uses helpers
static/js/review-model.js - Schema model → Shared utilities: uses helpers
static/js/schema.js - API client → Flask API: calls endpoints
README.md - Flask API → Workbench page: serves page
README.md - Flask API → Reference schema: loads schema
api/app.py - Flask API → Extraction workflow: invokes workflow
api/app.py - Flask API → Launch token checks: verifies token
api/app.py - Extraction workflow → Document conversion: converts documents
api/extraction.py - Extraction workflow → Groq model: requests structured data
README.md - Review workbench → Parent application: posts verified record
README.md