How thoyazavishwa/senderra-idp-demo works
Senderra IDP Demo is a Streamlit read-only monitor for the existing document-processing pipeline, with PDF upload as its sole pipeline-changing action. The main workflow is upload to the watched blob container, refresh and join pipeline records, then explore dashboard metrics or per-document evidence and results. The README documents the downstream event-driven stages; their implementation is outside this repository. Source excerpts show the app, storage, and view boundaries, but not every call within unsampled modules, so uncertain links are omitted.
Main entry points: app.py App entry · store.py Document store · dashboard.py Dashboard tab · documents.py Documents tab
Components 20
Streamlit UI
- App entry
app.py - Password gate
senderra_demo/auth.py - PDF upload
senderra_demo/views/upload.py - Dashboard tab
senderra_demo/views/dashboard.py - Documents tab
senderra_demo/views/documents.py
Metrics and details
- Record schema
senderra_demo/schema.py - Metric aggregation
senderra_demo/aggregate.py - Chart rendering
senderra_demo/charts.py - Display formatting
senderra_demo/format.py
Data access
- Settings
senderra_demo/config.py - Document store
senderra_demo/store.py - Blob access
senderra_demo/blobstore.py - Cosmos projection
senderra_demo/cosmosstore.py
Pipeline services
- Azure Blob Storage
- Azure Cosmos DB
- Event Grid
- Service Bus
- OCR stage
- Extraction stage
Other components
- Viewer
Connections 29
- Viewer → App entry: opens
README.md - App entry → Settings: loads settings
app.py - App entry → Password gate: checks access
README.md - App entry → Document store: syncs records
app.py - App entry → PDF upload: renders tab
README.md - App entry → Dashboard tab: renders tab
README.md - App entry → Documents tab: renders tab
app.py - PDF upload → Blob access: writes PDFs
senderra_demo/views/upload.py - PDF upload → Settings: reads settings
senderra_demo/views/upload.py - Dashboard tab → Metric aggregation: computes metrics
senderra_demo/views/dashboard.py - Dashboard tab → Chart rendering: renders charts
senderra_demo/views/dashboard.py - Dashboard tab → Display formatting: formats values
senderra_demo/views/dashboard.py - Documents tab → Document store: loads results
senderra_demo/views/documents.py - Documents tab → Metric aggregation: flattens fields
senderra_demo/views/documents.py - Documents tab → Display formatting: formats values
senderra_demo/views/documents.py - Document store → Blob access: lists and fetches
senderra_demo/store.py - Document store → Cosmos projection: queries projection
senderra_demo/store.py - Document store → Record schema: maps records
senderra_demo/store.py - Document store → Settings: uses settings
senderra_demo/store.py - Blob access → Azure Blob Storage: reads and writes
senderra_demo/blobstore.py - Cosmos projection → Azure Cosmos DB: queries records
senderra_demo/cosmosstore.py - Cosmos projection → Settings: uses settings
senderra_demo/cosmosstore.py - Metric aggregation → Record schema: uses fields
senderra_demo/aggregate.py - Azure Blob Storage → Event Grid: notifies upload
README.md - Event Grid → Service Bus: dispatches event
README.md - Service Bus → OCR stage: queues work
README.md - OCR stage → Azure Blob Storage: writes OCR output
README.md - Azure Blob Storage → Event Grid: notifies output
README.md - Event Grid → Extraction stage: dispatches event
README.md