-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocument-intelligence.html
More file actions
329 lines (315 loc) · 19.9 KB
/
Copy pathdocument-intelligence.html
File metadata and controls
329 lines (315 loc) · 19.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document Intelligence — Dundal Systems</title>
<link rel="stylesheet" href="styles.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.7/dist/chart.umd.min.js"></script>
</head>
<body>
<header class="topbar">
<a href="index.html" class="topbar-brand">
<div class="logo-mark">D</div>
<div class="brand-text">
<h1>Dundal Systems</h1>
<span>Petroleum & Energy Intelligence</span>
</div>
</a>
<div class="topbar-spacer"></div>
<div class="status-pill"><span class="dot"></span> SYSTEMS LIVE</div>
<div class="ministry-badge">Ministry of Petroleum & Energy — The Gambia</div>
<div class="user-avatar">MJ</div>
</header>
<nav class="page-nav">
<a href="index.html" class="nav-link"><span class="num amber">⌂</span> Overview</a>
<a href="ai-assistant.html" class="nav-link"><span class="num amber">✦</span> AI Assistant</a>
<a href="document-intelligence.html" class="nav-link active"><span class="num amber">1</span> Document Intelligence</a>
<a href="exploration-data-room.html" class="nav-link"><span class="num violet">2</span> Exploration Data Room</a>
<a href="load-shedding.html" class="nav-link"><span class="num teal">3</span> Load Shedding Comms</a>
<a href="minister-dashboard.html" class="nav-link"><span class="num navy">4</span> Minister's Dashboard</a>
</nav>
<main class="page">
<div class="section-header">
<div class="tier-badge t1">Tier 1 — Quick Win</div>
<h2>AI-Powered Document Intelligence</h2>
<p>Real-time monitoring of fuel quality reports, import manifests, and compliance filings for PURA and GNPC. Automated anomaly detection flags issues before they become crises.</p>
</div>
<!-- KPIs -->
<div class="grid g-4 mb-lg">
<div class="stat-card">
<div class="stat-label">Documents Processed</div>
<div class="stat-value amber">2,847</div>
<div class="stat-sub up">↑ 312 this month</div>
</div>
<div class="stat-card">
<div class="stat-label">Active Anomalies</div>
<div class="stat-value coral">14</div>
<div class="stat-sub down">3 critical, 6 warnings</div>
</div>
<div class="stat-card">
<div class="stat-label">Compliance Rate</div>
<div class="stat-value teal">91.3%</div>
<div class="stat-sub up">↑ 4.2% vs Q1</div>
</div>
<div class="stat-card">
<div class="stat-label">Avg Processing Time</div>
<div class="stat-value cyan">2.4<span class="unit">sec</span></div>
<div class="stat-sub neutral">Previously 3–5 days manual</div>
</div>
</div>
<!-- Alerts + Timeline -->
<div class="grid g-3-2 mb-lg">
<div class="card">
<div class="card-header">
<span class="icon">⚠️</span> Live Anomaly Alerts
<span class="count">14 total · 3 critical</span>
</div>
<table class="data-table">
<thead>
<tr><th>Severity</th><th>Type</th><th>Detail</th><th>Source</th><th>Flagged</th></tr>
</thead>
<tbody>
<tr>
<td><span class="badge critical"><span class="dot"></span> Critical</span></td>
<td>Fuel Quality</td>
<td class="bold">Sulphur content 3.8% — exceeds 3.5% PURA limit</td>
<td class="mono">MV Gambia Star · Banjul Port</td>
<td class="mono">2h ago</td>
</tr>
<tr>
<td><span class="badge critical"><span class="dot"></span> Critical</span></td>
<td>Import Manifest</td>
<td class="bold">Volume discrepancy: 12,400L missing vs declaration</td>
<td class="mono">GEG Ref #GM-2026-0891</td>
<td class="mono">5h ago</td>
</tr>
<tr>
<td><span class="badge critical"><span class="dot"></span> Critical</span></td>
<td>Fuel Quality</td>
<td class="bold">Water content 0.12% — exceeds 0.05% specification</td>
<td class="mono">Petrogen depot · Banjul</td>
<td class="mono">8h ago</td>
</tr>
<tr>
<td><span class="badge warning"><span class="dot"></span> Warning</span></td>
<td>Deadline</td>
<td class="bold">PURA quarterly filing due in 48hrs — Petrogen incomplete</td>
<td class="mono">Compliance Tracker</td>
<td class="mono">12h ago</td>
</tr>
<tr>
<td><span class="badge warning"><span class="dot"></span> Warning</span></td>
<td>Fuel Quality</td>
<td class="bold">Flash point 58°C — below 60°C minimum for diesel</td>
<td class="mono">Jah Oil depot · Kanifing</td>
<td class="mono">1d ago</td>
</tr>
<tr>
<td><span class="badge warning"><span class="dot"></span> Warning</span></td>
<td>Import</td>
<td class="bold">Customs clearance delayed 72hrs — MT Gambia River</td>
<td class="mono">Port Authority</td>
<td class="mono">1d ago</td>
</tr>
<tr>
<td><span class="badge info"><span class="dot"></span> Info</span></td>
<td>Price Watch</td>
<td>Dakar refinery HFO price up 8% this week</td>
<td class="mono">Market Intelligence</td>
<td class="mono">1d ago</td>
</tr>
<tr>
<td><span class="badge info"><span class="dot"></span> Info</span></td>
<td>Compliance</td>
<td>New ECOWAS fuel quality directive effective 1 June</td>
<td class="mono">Regulatory Watch</td>
<td class="mono">2d ago</td>
</tr>
</tbody>
</table>
</div>
<div class="card">
<div class="card-header">
<span class="icon">📄</span> Recent Document Ingestion
</div>
<div class="timeline">
<div class="timeline-item">
<div class="timeline-dot" style="background:var(--coral)"></div>
<div class="timeline-body">
<div class="title">Fuel Quality Test — Banjul Port</div>
<div class="desc">HFO sample from MV Gambia Star. AI flagged sulphur anomaly (3.8% vs 3.5% limit) and water content (0.12%).</div>
<div class="meta">14:23 GMT · Auto-classified · 2 anomalies</div>
</div>
</div>
<div class="timeline-item">
<div class="timeline-dot" style="background:var(--teal)"></div>
<div class="timeline-body">
<div class="title">GEG Quarterly Import Summary</div>
<div class="desc">Q1 2026 import volumes — 38,400 MT total. Cross-referenced with customs data, vessel logs, and depot receipts.</div>
<div class="meta">11:47 GMT · Verified · No anomalies</div>
</div>
</div>
<div class="timeline-item">
<div class="timeline-dot" style="background:var(--cyan)"></div>
<div class="timeline-body">
<div class="title">PURA Compliance Filing — GNPC</div>
<div class="desc">Monthly operations report covering storage, distribution, and safety. Deadline met 2 days early.</div>
<div class="meta">09:15 GMT · On time · Fully compliant</div>
</div>
</div>
<div class="timeline-item">
<div class="timeline-dot" style="background:var(--violet)"></div>
<div class="timeline-body">
<div class="title">Petrogen Storage Facility Inspection</div>
<div class="desc">Annual safety inspection. 2 minor findings: fire suppression system test overdue, spill containment needs repair.</div>
<div class="meta">Yesterday · Needs review · 2 follow-ups</div>
</div>
</div>
<div class="timeline-item">
<div class="timeline-dot" style="background:var(--amber)"></div>
<div class="timeline-body">
<div class="title">Jah Oil Depot — Diesel Quality Report</div>
<div class="desc">Routine monthly test. Flash point at 58°C flagged as below minimum.</div>
<div class="meta">Yesterday · Warning issued · 1 anomaly</div>
</div>
</div>
</div>
</div>
</div>
<div class="divider"></div>
<!-- AI Chat -->
<div class="ai-panel mb-lg">
<div class="ai-panel-header">
<div class="ai-dot"></div>
Document Intelligence AI
<span class="powered">Powered by Dundal AI</span>
</div>
<div class="ai-messages" id="docMessages">
<div class="ai-msg">
<div class="ai-avatar ai">D</div>
<div class="ai-bubble">
I'm monitoring <strong>2,847 documents</strong> across fuel quality, imports, and compliance. There are <strong>3 critical anomalies</strong> right now — the most urgent is the sulphur exceedance from MV Gambia Star. I can explain any document, compare filings, or investigate anomalies.
</div>
</div>
</div>
<div class="preset-questions">
<div class="label">Ask about documents, anomalies, or compliance</div>
<button class="preset-btn" data-q="sulphur-detail">Explain the sulphur contamination — how bad is it really?</button>
<button class="preset-btn" data-q="volume-gap">Tell me about the 12,400L volume discrepancy at GEG</button>
<button class="preset-btn" data-q="petrogen-status">Will Petrogen make the PURA filing deadline?</button>
<button class="preset-btn" data-q="compliance-trend">How has the overall compliance rate changed this year?</button>
<button class="preset-btn" data-q="jah-oil-flash">What's the flash point issue at Jah Oil?</button>
<button class="preset-btn" data-q="ecowas-new">What does the new ECOWAS fuel quality directive mean for us?</button>
</div>
<div class="ai-input-bar">
<input type="text" placeholder="Ask about any document, anomaly, or compliance issue…" id="docInput">
<button class="ai-btn" id="docSendBtn">Ask AI</button>
</div>
</div>
<!-- Bottom row -->
<div class="grid g-2">
<div class="card">
<div class="card-header">
<span class="icon">✅</span> Compliance Deadline Tracker
<span class="count">5 upcoming</span>
</div>
<div class="doc-list">
<a href="document-viewer.html?doc=pura-filing" class="doc-item" style="text-decoration:none;color:inherit">
<div class="doc-icon pdf">PDF</div>
<div class="doc-info">
<div class="name">PURA Quarterly Filing — Petrogen</div>
<div class="meta">Due 29 Apr 2026 · 67% complete</div>
</div>
<span class="badge warning">48hrs left</span>
</a>
<a href="document-viewer.html?doc=geg-import" class="doc-item" style="text-decoration:none;color:inherit">
<div class="doc-icon xls">XLS</div>
<div class="doc-info">
<div class="name">GEG Monthly Import Declaration</div>
<div class="meta">Due 1 May 2026 · Submitted</div>
</div>
<span class="badge ok">On track</span>
</a>
<a href="document-viewer.html?doc=gnpc-safety" class="doc-item" style="text-decoration:none;color:inherit">
<div class="doc-icon pdf">PDF</div>
<div class="doc-info">
<div class="name">GNPC Annual Safety Audit</div>
<div class="meta">Due 15 May 2026 · In review</div>
</div>
<span class="badge ok">On track</span>
</a>
<div class="doc-item">
<div class="doc-icon doc">DOC</div>
<div class="doc-info">
<div class="name">Jah Oil Environmental Impact Assessment</div>
<div class="meta">Due 30 May 2026 · Not started</div>
</div>
<span class="badge critical">At risk</span>
</div>
<div class="doc-item">
<div class="doc-icon xls">XLS</div>
<div class="doc-info">
<div class="name">Petrogen Quarterly Financial Report</div>
<div class="meta">Due 15 Jun 2026 · Template ready</div>
</div>
<span class="badge info">6 weeks</span>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<span class="icon">📊</span> Document Processing Volume
<span class="count">Oct 2025 — Apr 2026</span>
</div>
<div class="chart-wrap">
<canvas id="docVolumeChart"></canvas>
</div>
</div>
</div>
</main>
<script>
Chart.defaults.color = '#8E93A8';
Chart.defaults.borderColor = 'rgba(26,29,46,0.06)';
Chart.defaults.font.family = "'Nunito', sans-serif";
Chart.defaults.font.size = 12;
Chart.defaults.plugins.legend.labels.usePointStyle = true;
Chart.defaults.plugins.legend.labels.pointStyleWidth = 8;
Chart.defaults.plugins.legend.labels.padding = 18;
new Chart(document.getElementById('docVolumeChart'), {
type: 'bar',
data: {
labels: ['Oct','Nov','Dec','Jan','Feb','Mar','Apr'],
datasets: [
{ label: 'Fuel Quality Reports', data: [145,132,158,167,189,201,212], backgroundColor: 'rgba(232,147,12,0.75)', borderRadius: 6, borderSkipped: false },
{ label: 'Import Manifests', data: [89,95,78,102,98,115,124], backgroundColor: 'rgba(34,184,207,0.7)', borderRadius: 6, borderSkipped: false },
{ label: 'Compliance Filings', data: [34,28,42,38,45,51,48], backgroundColor: 'rgba(139,108,246,0.7)', borderRadius: 6, borderSkipped: false }
]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: { legend: { position: 'top' } },
scales: {
x: { stacked: true, grid: { display: false } },
y: { stacked: true, grid: { color: 'rgba(26,29,46,0.04)' } }
}
}
});
</script>
<script src="chat.js"></script>
<script>
new DundalChat({
messagesId: 'docMessages', inputId: 'docInput', sendBtnId: 'docSendBtn',
answers: {
'sulphur-detail': '<strong>Sulphur Contamination \u2014 Full Analysis:</strong><br><br>The MV Gambia Star cargo tested at <strong>3.8% sulphur</strong> vs the PURA limit of 3.5%. That 0.3% overshoot sounds small but the impact is serious:<br><br><strong>Engine damage:</strong> Sulphur creates sulphuric acid during combustion. At 3.8%, acid formation increases by ~25% compared to spec fuel. For NAWEC\u2019s MAN 18V48/60 engines at Kotu:<br>\u2022 Cylinder liner wear accelerates <strong>15\u201320%</strong><br>\u2022 Time between overhauls drops from 16,000 to ~13,000 hours<br>\u2022 Estimated cost: <strong>$340,000</strong> in premature maintenance<br><br><strong>Water content (0.12% vs 0.05%):</strong> This is actually the more immediately dangerous issue. Excess water causes fuel filter clogging \u2014 this is exactly what <strong>knocked out Brikama Units 2 & 4</strong> last week, removing 10 MW from the grid.<br><br><strong>Origin:</strong> Dakar SAR refinery. They had maintenance issues in February \u2014 may be producing off-spec product. We should require pre-shipment certificates for all future cargoes.<br><br><em><a href="document-viewer.html?doc=fuel-quality" style="color:var(--amber)">View Full Lab Report</a></em>',
'volume-gap': '<strong>GEG Volume Discrepancy \u2014 Import Ref #GM-2026-0891:</strong><br><br><strong>What happened:</strong> GEG declared importing <strong>8,500 MT</strong> of HFO on their March manifest, but port discharge measurements show only <strong>8,488 MT</strong> \u2014 however, the depot receipt logged just <strong>8,376 MT</strong>. That\u2019s <strong>124 MT missing</strong> between port and depot (equivalent to ~148,000 litres or 12,400L as initially flagged in the alert).<br><br><strong>Where did it go?</strong> Three possibilities:<br>\u2022 <strong>Measurement error:</strong> Tank gauging at the depot may be inaccurate (last calibrated 8 months ago)<br>\u2022 <strong>Pipeline losses:</strong> The port-to-depot transfer line is 3.2 km \u2014 leaks are possible but would be visible<br>\u2022 <strong>Diversion:</strong> Cannot be ruled out without investigation<br><br><strong>Financial impact:</strong> 124 MT of HFO at $412/MT = <strong>$51,088</strong> in unaccounted fuel<br><br><strong>Recommendation:</strong> Request GEG provide full chain-of-custody documentation. Mandate depot tank recalibration. Consider joint PURA/GRA inspection of the transfer pipeline.',
'petrogen-status': '<strong>Petrogen PURA Filing \u2014 48hrs to Deadline:</strong><br><br>Status: <strong>67% complete</strong> (4 of 7 sections done)<br><br><strong>Missing:</strong><br>\u2022 Section 5 (Safety): Needs depot manager Lamin Ceesay\u2019s input<br>\u2022 Section 6 (Environmental): SGS lab results still pending<br>\u2022 Section 7 (Workforce): HR data needed<br><br><strong>History:</strong> They missed Q3 2025 by 4 days \u2014 $5,000 fine. Second miss = enhanced scrutiny.<br><br><strong>Likelihood: 50/50.</strong> The SGS lab results are the bottleneck \u2014 typically 48\u201372 hours turnaround.<br><br><em><a href="document-viewer.html?doc=pura-filing" style="color:var(--amber)">View Filing Status</a></em>',
'compliance-trend': '<strong>Compliance Rate Trend \u2014 2025\u20132026:</strong><br><br>Current rate: <strong>91.3%</strong> (up from 87.1% in Q1 2025)<br><br><strong>Quarterly breakdown:</strong><br>\u2022 Q1 2025: 87.1% \u2014 3 late filings, 1 missed entirely (Jah Oil)<br>\u2022 Q2 2025: 88.4% \u2014 improvement after PURA warning letters<br>\u2022 Q3 2025: 89.2% \u2014 Petrogen late filing ($5K fine)<br>\u2022 Q4 2025: 90.5% \u2014 steady improvement<br>\u2022 Q1 2026: <strong>91.3%</strong> \u2014 best quarter on record<br><br><strong>Why the improvement?</strong> This system. Automated deadline tracking and reminder notifications have reduced late filings by 60%. Before this system, compliance officers were tracking deadlines on spreadsheets and often missed them.<br><br><strong>Remaining gap:</strong> Jah Oil (consistently late \u2014 small company, limited admin capacity) and Petrogen (current filing at risk).',
'jah-oil-flash': '<strong>Jah Oil Flash Point Issue:</strong><br><br><strong>Finding:</strong> Diesel sample from Jah Oil\u2019s Kanifing depot tested at <strong>58\u00b0C flash point</strong> \u2014 below the 60\u00b0C minimum under PURA Fuel Quality Regulations.<br><br><strong>What this means:</strong> Flash point is the temperature at which fuel vapour can ignite. Below 60\u00b0C, diesel is classified as a fire hazard during storage and transport. At 58\u00b0C, the risk increase is marginal but it violates the regulation.<br><br><strong>Likely cause:</strong> Contamination with a lighter hydrocarbon \u2014 possibly kerosene or gasoline mixing during storage. Jah Oil uses shared storage at their Kanifing depot.<br><br><strong>Action taken:</strong> Warning issued. Jah Oil required to retest within 7 days and submit depot cross-contamination prevention plan.<br><br><strong>Risk level:</strong> Low \u2014 58\u00b0C is marginally below spec. Not comparable to the MV Gambia Star sulphur issue.',
'ecowas-new': '<strong>New ECOWAS Fuel Quality Directive \u2014 Effective 1 June 2026:</strong><br><br>The ECOWAS Commission adopted Directive C/DIR.2/12/25 on harmonized fuel quality standards. Key changes for The Gambia:<br><br><strong>1. Sulphur limits tightened:</strong><br>\u2022 Diesel: from 0.5% to <strong>0.05%</strong> (Euro V equivalent) \u2014 <em>major change</em><br>\u2022 HFO: from 3.5% to <strong>3.0%</strong> \u2014 the MV Gambia Star cargo (3.8%) would fail by even more<br><br><strong>2. Mandatory testing:</strong> Every cargo must be tested by an accredited lab before discharge \u2014 no more post-discharge testing<br><br><strong>3. Reporting:</strong> Quarterly fuel quality reports to ECOWAS Energy Commission<br><br><strong>Impact on The Gambia:</strong><br>\u2022 GEG and Petrogen will need to source cleaner fuel \u2014 expect <strong>3\u20135% price premium</strong><br>\u2022 NAWEC generators may need <strong>fuel treatment modifications</strong> for ultra-low sulphur diesel<br>\u2022 Current PURA regulations need amendment to align by 1 June<br><br><strong>Estimated annual cost increase:</strong> $2\u20133M across all fuel imports.'
}
});
</script>
</body>
</html>