Skip to content

About

Explainable supplier risk and performance evaluation with expert calibration and human review.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Four supplier-evaluation approaches compared qualitatively across 15 success factors

The author's qualitative assessment, not an empirical measurement or an overall ranking. Scoring basis and rationale · Commercial-platform sources · Repository sources.

Watch the 42-second product demo · Synthetic demo data

Watch the 42-second product demo · Synthetic demo data

Watch the product demo on YouTube

Lean Agentic AI - Supplier Risk System

Assess supplier risk and performance together, understand each result, and correct assumptions with confidence.

CI Python 3.10+ MIT license

A local procurement workspace for category managers and procurement teams. Open-source prototype with synthetic demo data: no real-world validation or continuous live monitoring yet.

Key benefits

  1. Risk and performance together. Assess supplier exposure and delivery performance side by side on a shared criteria catalogue.
  2. Trace every assessment. Follow results back to inputs, rules, weights and each criterion's contribution.
  3. Correct with confidence. Fix assumptions with a reason, a before/after preview, explicit confirmation and a recorded history.
  4. Calibrate against expertise. Fit weights to expert judgements and check improvements on held-out data before proposing adoption.
  5. Keep people in control. Reproduce scores while retaining human control over rules, escalations and approvals.
  6. Use AI where it helps. Request readable explanations from an optional LLM while all assessments remain deterministic.
  7. Adapt an open, modular system. Extend criteria, rules, data sources and specialised agents to fit your procurement method.
  8. Turn benchmarks into priorities. Use systematic comparison to identify improvement opportunities and guide development priorities.

How these benefits map to the 15 benchmark dimensions, including evidence and limits. Benchmarking is a development process; regular updates are a goal, not an established cadence.

Try the demo

Requires Python 3.10 or newer. Clone the repository, or use your existing checkout:

git clone https://github.com/CsabaRanks/Lean-Agentic-AI-Supplier-Risk-System.git
cd Lean-Agentic-AI-Supplier-Risk-System

Create and activate an environment — Windows PowerShell:

py -3 -m venv .venv
.\.venv\Scripts\Activate.ps1

Or macOS / Linux:

python3 -m venv .venv
source .venv/bin/activate

Install and launch from the repository folder:

python -m pip install -e ".[ui]"
python -m streamlit run ui/app.py

Open localhost:8501 and select Try the demo. The base demo needs no API key and contains six synthetic suppliers. Use DE | EN at the top of the sidebar; the initial language follows your browser (German for de, English otherwise). Switching preserves your selection, filters and correction preview.

First walkthrough: load the demo → select Delta Fibre Media in Portfolio → open Why this assessment? in Supplier detail → enter a correction and reason → Preview before/after → Confirm correction. Follow the worked example to see a compliance correction affect both assessments.

Optional AI explanations need separate LLM configuration and an explicit request; the demo never calls an AI provider automatically.

See it in action

Actual English UI, synthetic data. Open an image for the full-size view.

English portfolio showing six synthetic suppliers with Risk and Performance results, search and filters

Compare exposure and performance in one table, then focus your review with search and filters.

English supplier detail showing both assessments, main score contributions and the compliance escalation

See what drives each assessment and why a rule can raise the risk class beyond the numeric score.

English Explain and Correct workflow with a reason and Risk and Performance before-and-after previews

Check the effect on both assessments before confirming a reasoned correction.

How it works

flowchart LR
    D[Supplier inputs and file imports] --> S[Deterministic scoring and rules]
    M[Criteria and weights in YAML] --> S
    S --> R[Risk and Performance with calculation traces]
    R --> H[Human review and correction preview]
    H -->|confirmed correction| D
    E[Expert judgements] --> C[Calibration and held-out checks]
    C --> A[Human approval]
    A --> M
    R -. explicit request .-> L[Optional LLM explanation]
Loading

A LangGraph supervisor coordinates specialised agents. Scoring, escalation rules, calibration, rule-based actions and routing are deterministic Python. Corrections recompute both views; approved weights and confirmed corrections are recorded in local files. The optional LLM explains the calculation trace and cannot change scores, classes or weights.

The main navigation is Home → Portfolio → Supplier detail, with Actions alongside. Administration & analysis groups Dashboard, History, Data & import, Calibration, Approvals and Settings. Architecture and component status explain the implementation and extension points.

Paper and documentation

Limitations

The templates and calibration evidence are illustrative and synthetic; no field validation with category managers or real supplier data has been completed. There is no continuous live monitoring; external APIs are placeholders and inputs come from files or manual entry. This is a single-user prototype without authentication or verified reviewer identities. LLM explanations can contain errors. See validation boundaries and operational limits.

Contributing

Issues and pull requests are welcome. Install development tools with python -m pip install -e ".[dev,ui,research,llm]", then run ruff check src tests examples scripts ui and pytest -q as in CI. Keep scoring deterministic and test changed behaviour; use synthetic data only. Benchmark changes belong in research/comparison-matrix.yaml, with rationale and confidence, followed by python scripts/generate_spider.py — see the benchmark workflow.

Built by Csaba Bakay, drawing on procurement, supplier development and cost engineering experience, as a first Agentic-AI portfolio project.

License

MIT, Copyright © 2026 Csaba Bakay: code, documentation, working paper and figures. See third-party notices for dependencies, references, data and trademarks.

About

Explainable supplier risk and performance evaluation with expert calibration and human review.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages