feat(iace): FMEA source-document register + Anthropic extraction (Haiku)

Quote-verifiable failure extraction via Claude (Haiku 4.5): PDF sent
directly, tool-schema forces verbatim source quotes + applicable flag +
confidence — replaces the unreliable local llama run. Only applicable=true
tuples ingest into bp_iace_failure_kb; every processed doc lands in the
source manifest.

Frontend: FMEA tab now shows a "Quelldokumente" register (every document we
use, with source + licence + link + what was extracted) served from the
embedded manifest via GET /iace/failure-knowledge/sources. Manifest is
placeholder until the 100-doc Haiku run is folded in.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-06-13 13:34:41 +02:00
parent f1ac45dacf
commit 445079cfb2
9 changed files with 395 additions and 0 deletions
@@ -3,6 +3,7 @@
import { useEffect, useState } from 'react'
import { useParams } from 'next/navigation'
import { useFMEA, type FMEARow } from './_hooks/useFMEA'
import { SourceDocuments } from './_components/SourceDocuments'
const COMP_TYPE_LABELS: Record<string, string> = {
mechanical: 'Mechanisch', electrical: 'Elektrisch', sensor: 'Sensor',
@@ -60,6 +61,9 @@ export default function FMEAPage() {
{/* Info Box */}
<FMEAInfoBox />
{/* Source-document register (provenance, always visible) */}
<SourceDocuments />
{/* KI-Vorschlag + Export */}
<div className="flex items-center justify-between gap-3">
<div className="flex items-center gap-2">