How microsoft/responsible-ai-toolbox works
Responsible AI Toolbox provides interactive interfaces and libraries for assessing model errors and fairness, interpreting predictions, and supporting data-driven decisions. The principal workflow is to open an assessment experience, explore model or cohort behavior, and investigate individual predictions or possible interventions. Shared UI components support cohort and chart interactions; Python managers and the error-analysis package provide analysis capabilities. README capabilities are included where implementation was not sampled, so some integration wiring is intentionally left unspecified.
Main entry points: app/App.tsx RAI dashboard · model-assessment/App.tsx Model assessment · error_analyzer.py Error analysis engine · model-assessment-vision/App.tsx Vision assessment
Components 22
User experience
- RAI dashboard
apps/dashboard/src/app/App.tsx - App datasets
apps/dashboard/src/app/applications.ts - Embeddable widget
apps/widget/src/app/App.tsx
Model assessment
- Model assessment
apps/dashboard/src/model-assessment/App.tsx - Forecast assessment
apps/dashboard/src/model-assessment-forecasting/App.tsx - Error analysis UI
apps/dashboard/src/error-analysis/App.tsx - Fairness UI
apps/dashboard/src/fairness/App.tsx - Text assessment
apps/dashboard/src/model-assessment-text/App.tsx - Vision assessment
apps/dashboard/src/model-assessment-vision/App.tsx
Interpretability
- Interpretability UI
apps/dashboard/src/interpret/App.tsx - Text explanations
apps/dashboard/src/interpret-text/App.tsx
Decision support
- Counterfactual manager
responsibleai/responsibleai/managers/counterfactual_manager.py - Causal manager
responsibleai/responsibleai/managers/causal_manager.py - Causal analysis UI
libs/causality/src/lib/CausalAnalysisDashboard/CausalInsightsTab.tsx
Analysis runtime
- Shared UI components
libs/core-ui/src/lib/Cohort/Cohort.ts - Error analysis engine
erroranalysis/erroranalysis/analyzer/error_analyzer.py - Text error manager
responsibleai_text/responsibleai_text/managers/error_analysis_manager.py - Vision error manager
responsibleai_vision/responsibleai_vision/managers/error_analysis_manager.py - Text explainer
responsibleai_text/responsibleai_text/managers/explainer_manager.py - Vision explainer
responsibleai_vision/responsibleai_vision/managers/explainer_manager.py - Error analysis library
erroranalysis/erroranalysis/__init__.py
Other components
- Practitioner
Connections 21
- Practitioner → RAI dashboard: opens
- Practitioner → Embeddable widget: embeds
- RAI dashboard → App datasets: selects datasets
- RAI dashboard → Model assessment: presents assessment
- RAI dashboard → Error analysis UI: presents errors
- RAI dashboard → Fairness UI: presents fairness
- RAI dashboard → Interpretability UI: presents explanations
- RAI dashboard → Text explanations: presents text
- Model assessment → Shared UI components: uses shared UI
- Forecast assessment → Shared UI components: uses shared UI
- Error analysis UI → Error analysis library: requests analysis
- Text assessment → Text error manager: supports text analysis
- Vision assessment → Vision error manager: supports vision analysis
- Text explanations → Text explainer: obtains explanations
- Vision assessment → Vision explainer: obtains explanations
- Model assessment → Counterfactual manager: requests counterfactuals
- Model assessment → Causal analysis UI: presents causal insights
- Causal analysis UI → Causal manager: requests causal effects
- Error analysis library → Error analysis engine: provides analysis
- Error analysis engine → Text error manager: supports text analysis
- Error analysis engine → Vision error manager: supports vision analysis