@extends('layouts.app') @section('content')
@php $editDocument = $editDocument ?? null; $isEditingAiKnowledge = is_array($editDocument) && ! empty($editDocument['id']); $selectedDocumentType = old('document_type', $isEditingAiKnowledge ? ($editDocument['document_type'] ?? '') : ''); $documentTitleValue = old('title', $isEditingAiKnowledge ? ($editDocument['title'] ?? '') : ''); $documentDescriptionValue = old('description', $isEditingAiKnowledge ? ($editDocument['description'] ?? '') : ''); $documents = is_array($documents ?? null) ? $documents : []; $documentTypes = is_array($documentTypes ?? null) ? $documentTypes : []; $aiKbToText = function ($value, string $fallback = '') { if (is_array($value)) { return collect($value)->flatten()->filter(fn ($item) => filled($item))->map(fn ($item) => (string) $item)->implode(" "); } $text = trim((string) ($value ?? '')); return $text !== '' ? $text : $fallback; }; $aiKbToArray = function ($value) { if (is_array($value)) { return $value; } $text = trim((string) ($value ?? '')); if ($text === '') { return []; } return preg_split('/[,; ]+/', $text, -1, PREG_SPLIT_NO_EMPTY) ?: []; }; @endphpUpload file PDF seperti kamus bahasa Indonesia, buku pedoman tata bahasa, pedoman KKO Taksonomi Bloom, dan referensi utama lainnya. File ini menjadi bahan dasar AI untuk merumuskan kalimat Sub-CPMK, Indikator, serta konteks awal sebelum memberi respon terhadap kebutuhan penyusunan RPS.
Dokumen berikut akan dibaca sebagai konteks awal AI sebelum menyusun Sub-CPMK, indikator, pilihan pembelajaran, dan materi pembelajaran.
| No | Jenis | Judul / File | Keterangan | Halaman | Status Ekstraksi | Informasi Tersimpan untuk AI | Aksi |
|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} |
{{ $document['document_type_label'] ?? ($documentTypes[$document['document_type'] ?? ''] ?? '-') }} {{ $document['uploaded_at'] ?? '-' }} |
{{ $document['title'] ?? '-' }} {{ $document['original_filename'] ?? '-' }} |
{{ $document['description'] ?? '-' }} | {{ $document['page_count'] ?? 0 }} | @php($status = $document['extraction_status'] ?? 'unknown') {{ strtoupper($status) }} @if (! empty($document['extraction_error'])) @endif |
Ringkasan AI:
{{ $summaryText }}
Potongan informasi tersimpan: {{ count($chunks) }} chunkAnalisis terstruktur: {{ $analysisStatus }} @if ($structuredItems->isNotEmpty())
Konsep/Topik: {{ $structuredItems->implode(', ') }}
@endif
@if ($weeklyTopics->isNotEmpty())
Usulan topik mingguan: {{ $weeklyTopics->implode(' • ') }}
@endif
@if (! empty($keywords))
Kata kunci: {{ collect($keywords)->filter()->take(12)->implode(', ') }}
@endif
|
|
| Belum ada file basis pengetahuan AI yang diunggah. | |||||||