DILIGENT Clinical Copilot supports clinicians during Drug-Induced Liver Injury (DILI) evaluations with a FastAPI backend and an Angular + TypeScript frontend. It collects anamnesis, medications, and lab values, then coordinates clinical analysis with optional RAG support and session persistence for review.
Work in Progress: This project is under active development and may contain incomplete features or defects.
Run:
DILIGENT\start_on_windows.batThe launcher prepares local runtimes/dependencies and starts backend plus frontend.
Prerequisites:
- Python 3.14+
- Node.js 18+ and npm
Backend:
python -m venv runtimes/.venv
source runtimes/.venv/bin/activate
pip install --upgrade pip
pip install -e .
uvicorn DILIGENT.server.app:app --host 127.0.0.1 --port 8000Frontend:
cd DILIGENT/client
npm install
npm run build
npm run preview -- --host 127.0.0.1 --port 7861DILIGENT is configuration-first and uses one active runtime file: DILIGENT/settings/.env.
Switch to local profile:
copy /Y DILIGENT\settings\.env.local.example DILIGENT\settings\.envSwitch to local Tauri profile:
copy /Y DILIGENT\settings\.env.local.tauri.example DILIGENT\settings\.envSee assets/docs/PACKAGING_AND_RUNTIME_MODES.md for full runtime and packaging details.
Typical workflow:
- Enter anamnesis, exam notes, medications, and lab values.
- Choose model/provider settings and optionally enable RAG/web search.
- Run analysis and review the generated report.
- Use Data Inspection for session history and data-update operations.
Detailed user journeys and feature guidance are documented in assets/docs/USER_MANUAL.md.
Main DILI analysis workspace with clinical inputs and patient context panel.
Analysis dashboard focused on the report output area and execution controls.
Runtime source selection and current model configuration summary.
Scrollable local model catalog with install and role-assignment actions.
Tavily access-key management entry point within the configuration panel.
Session inspection table with status, timing, and record actions.
Build Windows desktop artifacts:
release\tauri\build_with_tauri.batGenerated outputs:
release/windows/installersrelease/windows/portable
Run:
DILIGENT\setup_and_maintenance.batUse this script for offline maintenance operations (for example DB initialization and cleanup tasks).
assets/docs/USER_MANUAL.md: end-user operation, journeys, key commands.assets/docs/ARCHITECTURE.md: system boundaries and data flow.assets/docs/BACKGROUND_JOBS.md: job lifecycle and semantics.assets/docs/PACKAGING_AND_RUNTIME_MODES.md: runtime profiles and packaging.assets/docs/ERROR_HANDLING.md: backend/frontend error strategy.assets/docs/UI_STANDARDS.md: frontend design standards.
Non-commercial use is covered by the Polyform Noncommercial License 1.0.0; commercial licensing is available separately. See LICENSE.