feat: Update HowItWorks to show 5-agent consolidation pipeline flow"

#13
by MouleeswaranM - opened
Files changed (1) hide show
  1. landing/src/components/HowItWorks.tsx +27 -12
landing/src/components/HowItWorks.tsx CHANGED
@@ -3,25 +3,39 @@ import './HowItWorks.css'
3
  const steps = [
4
  {
5
  step: '01',
6
- title: 'Generate your API key',
7
- desc: 'Sign up free, create an API key in the dashboard. It works immediately β€” no quota forms, no approval process.',
8
- code: 'x-api-key: fr_live_sk_xxxxxxxx',
9
  color: '#f97316',
10
  },
11
  {
12
  step: '02',
13
- title: 'POST your drivers & routes',
14
- desc: 'Send your drivers (with wellness data) and routes (with constraints) in one JSON payload. Any language, any stack.',
15
- code: 'POST /v1/allocate\n{ drivers: [...], routes: [...] }',
16
  color: '#3b82f6',
17
  },
18
  {
19
  step: '03',
20
- title: 'Get fair allocations + explanations',
21
- desc: 'Receive optimized assignments with Gini fairness index, per-driver wellness scores, carbon estimates, and plain-English explanations.',
22
- code: '{ gini_index: 0.12, grade: "A",\n explanation: "..." }',
23
  color: '#10b981',
24
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  ]
26
 
27
  export default function HowItWorks() {
@@ -29,10 +43,11 @@ export default function HowItWorks() {
29
  <section className="hiw" id="how-it-works">
30
  <div className="container">
31
  <div className="section-header">
32
- <div className="tag">How it works</div>
33
- <h2 className="section-title">From integration to fair routes in minutes</h2>
34
  <p className="section-sub">
35
- No ML team, no weeks of setup. Add fairness-aware routing to any logistics platform with 3 steps.
 
36
  </p>
37
  </div>
38
 
 
3
  const steps = [
4
  {
5
  step: '01',
6
+ title: 'Geographic Clustering Agent',
7
+ desc: 'scikit-learn KMeans clusters shipments by pickup/drop proximity (4D feature vectors). Silhouette-score selects optimal K. Groups nearby shipments heading the same direction.',
8
+ code: 'Agent 1: GeoClusteringAgent\n→ KMeans + Silhouette Score\n→ 15 shipments → 4 clusters',
9
  color: '#f97316',
10
  },
11
  {
12
  step: '02',
13
+ title: 'Time Window Compatibility Agent',
14
+ desc: 'Filters clusters by delivery time window overlap. Splits groups where shipments have incompatible schedules. Configurable tolerance (default: 120 min).',
15
+ code: 'Agent 2: TimeWindowAgent\n→ Temporal overlap filter\n→ 4 clusters → 5 time-valid groups',
16
  color: '#3b82f6',
17
  },
18
  {
19
  step: '03',
20
+ title: 'Capacity Optimization Agent',
21
+ desc: 'OR-Tools CP-SAT integer programming solver assigns shipments to trucks. Minimizes vehicles used while respecting weight + volume constraints. FFD heuristic fallback.',
22
+ code: 'Agent 3: CapacityOptimizationAgent\n→ OR-Tools CP-SAT solver (3s limit)\n→ 5 groups → 3 packed trucks',
23
  color: '#10b981',
24
  },
25
+ {
26
+ step: '04',
27
+ title: 'Scoring & Confidence Agent',
28
+ desc: 'Computes per-group AI confidence (capacity fit Γ— geo proximity Γ— time alignment). Calculates global metrics: utilization%, trips reduced, COβ‚‚ saved, cost saved.',
29
+ code: 'Agent 4: ScoringConfidenceAgent\n→ Confidence: 78-95%\n→ Utilization: 27% → 82%',
30
+ color: '#f59e0b',
31
+ },
32
+ {
33
+ step: '05',
34
+ title: 'Continuous Learning Agent',
35
+ desc: 'Q-learning RL agent records (state, action, reward) per run. Builds Q-table over time to recommend optimal (radius, tolerance) parameters. Self-improves with every execution.',
36
+ code: 'Agent 5: RL Q-Learning\n→ Episodes: 47 | Reward: 73.2/100\n→ Optimal: radius=30km, tol=120min',
37
+ color: '#ec4899',
38
+ },
39
  ]
40
 
41
  export default function HowItWorks() {
 
43
  <section className="hiw" id="how-it-works">
44
  <div className="container">
45
  <div className="section-header">
46
+ <div className="tag">5-Agent Pipeline</div>
47
+ <h2 className="section-title">How the AI Consolidation Engine works</h2>
48
  <p className="section-sub">
49
+ 5 specialized AI agents orchestrated by LangGraph β€” each handles one aspect of the
50
+ consolidation problem, collaborating to maximize vehicle utilization.
51
  </p>
52
  </div>
53