restore old after-confidence-scoring
This commit is contained in:
@@ -50,7 +50,7 @@ const domainAgnosticSoftware = data['domain-agnostic-software'] || [];
|
||||
|
||||
<!-- Input Layout -->
|
||||
<div class="ai-input-layout">
|
||||
<div class="ai-textarea-section">
|
||||
<div class="ai-textarea-section" style="height: 200px">
|
||||
<textarea
|
||||
id="ai-query-input"
|
||||
placeholder="Beschreiben Sie Ihr forensisches Szenario..."
|
||||
@@ -1158,12 +1158,10 @@ class AIQueryInterface {
|
||||
const lowConfidenceSteps = auditTrail.filter(entry => (entry.confidence || 0) < 60).length;
|
||||
const mediumConfidenceSteps = auditTrail.length - highConfidenceSteps - lowConfidenceSteps;
|
||||
|
||||
// Enhanced metrics
|
||||
const aiDecisionCount = auditTrail.filter(entry => entry.action === 'ai-decision').length;
|
||||
const embeddingsUsageCount = auditTrail.filter(entry => entry.metadata?.embeddingsUsed).length;
|
||||
const toolSelectionCount = auditTrail.filter(entry => entry.action === 'selection-decision').length;
|
||||
|
||||
// Phase breakdown
|
||||
const phaseBreakdown = {};
|
||||
auditTrail.forEach(entry => {
|
||||
const phase = entry.phase || 'unknown';
|
||||
@@ -1175,7 +1173,6 @@ class AIQueryInterface {
|
||||
phaseBreakdown[phase].totalTime += entry.processingTimeMs || 0;
|
||||
});
|
||||
|
||||
// Calculate average confidence per phase
|
||||
Object.keys(phaseBreakdown).forEach(phase => {
|
||||
const phaseEntries = auditTrail.filter(entry => entry.phase === phase);
|
||||
const validEntries = phaseEntries.filter(entry => typeof entry.confidence === 'number');
|
||||
@@ -1191,7 +1188,6 @@ class AIQueryInterface {
|
||||
const aiTransparency = auditTrail.length > 0 ?
|
||||
(auditTrail.filter(entry => entry.metadata?.aiPrompt || entry.metadata?.reasoning).length / auditTrail.length) * 100 : 0;
|
||||
|
||||
// RESTORED: Intelligent Analysis Quality Assessment
|
||||
let analysisQuality;
|
||||
if (avgConfidence >= 85 && lowConfidenceSteps === 0) {
|
||||
analysisQuality = 'excellent';
|
||||
@@ -1203,7 +1199,6 @@ class AIQueryInterface {
|
||||
analysisQuality = 'poor';
|
||||
}
|
||||
|
||||
// RESTORED: Intelligent Insights Generation
|
||||
const keyInsights = [];
|
||||
const embeddingsUsed = auditTrail.some(e => e.metadata?.embeddingsUsed);
|
||||
if (embeddingsUsed) {
|
||||
@@ -1226,7 +1221,6 @@ class AIQueryInterface {
|
||||
keyInsights.push('Mehrheit der Analyseschritte mit hoher Sicherheit');
|
||||
}
|
||||
|
||||
// RESTORED: Automatic Issue Detection (excluding processing time warnings)
|
||||
const potentialIssues = [];
|
||||
if (lowConfidenceSteps > 2) {
|
||||
potentialIssues.push(`${lowConfidenceSteps} Analyseschritte mit niedriger Konfidenz`);
|
||||
|
||||
Reference in New Issue
Block a user