How snowlindhanusha/ai-sustainability-consequence-intelligence works
This is a Streamlit decision-support MVP that helps people examine possible sustainability consequences without issuing a verdict or ranking. A user submits a decision; the system clarifies its assumptions, pauses for human confirmation, then produces consequence analysis, overlooked effects, alternatives, and verification questions. The report links findings to curated evidence and qualitative uncertainty labels. Analysis can use a configured language model or scenario-specific demo data. The graph reflects the documented workflow and sampled imports/calls; some UI-stage orchestration details and unsampled modules are not independently verified.
Main entry points: report.py Report assembly · ai_engine.py AI and fallback engine · app.py Decision clarification · retrieval.py Evidence retrieval
Components 15
User experience
- Streamlit interface
app.py - Decision clarification
app.py - Human confirmation
app.py - Analysis presentation
app.py
Decision analysis
- AI and fallback engine
src/ai_engine.py - Prompts and demo data
src/prompts.py - Configured language model
- Consequence analysis
src/ai_engine.py
Evidence and reporting
- Report assembly
src/report.py - Evidence retrieval
src/retrieval.py - Curated knowledge base
data/knowledge_base.json - Evidence status
src/retrieval.py - Structured report
src/report.py
Shared support
- Validation and chain helpers
src/utils.py
Other components
- Decision-maker
Connections 18
- Decision-maker → Streamlit interface: submits decision
README.md - Streamlit interface → Decision clarification: starts clarification
README.md - Decision clarification → AI and fallback engine: requests understanding
README.md - AI and fallback engine → Prompts and demo data: uses templates
src/ai_engine.py - AI and fallback engine → Configured language model: calls API
src/ai_engine.py - AI and fallback engine → Prompts and demo data: uses demo data
src/ai_engine.py - Decision clarification → Human confirmation: presents understanding
README.md - Decision-maker → Human confirmation: confirms understanding
README.md - Human confirmation → Consequence analysis: enables analysis
README.md - Consequence analysis → AI and fallback engine: requests analysis
src/ai_engine.py - Consequence analysis → Report assembly: provides findings
- Report assembly → Evidence retrieval: retrieves evidence
src/report.py - Evidence retrieval → Curated knowledge base: reads entries
src/retrieval.py - Report assembly → Evidence status: assigns status
src/report.py - Report assembly → Validation and chain helpers: builds consequence chain
src/report.py - Report assembly → Structured report: assembles report
src/report.py - Structured report → Analysis presentation: renders findings
README.md - Analysis presentation → Decision-maker: shows results
README.md