Backup #1626

ID1626
Dateipfad/var/www/dev.campus.systemische-tools.de/src/View/semantic-explorer/chunks/index.php
Version2
Typ modified
Größe2.5 KB
Hashc08b8a067db760b2c64d2369709b559b250d37ac31cfa2e28d2ff6a9223baa5e
Datum2025-12-27 09:44:52
Geändert vonclaude-code-hook
GrundClaude Code Pre-Hook Backup vor Edit-Operation
Datei existiert Ja

Dateiinhalt

<?php ob_start(); ?>

<nav class="breadcrumb">
    <a href="/">Home</a> &raquo; <a href="/explorer">Explorer</a> &raquo; <a href="/semantic-explorer">Semantic Explorer</a> &raquo; Chunks
</nav>

<h1>Chunks</h1>
<p>Semantische Textabschnitte aus Dokumenten. Gesamt: <?= number_format($totalCount) ?> Chunks.</p>

<div class="filters">
    <input type="search" id="chunks-search" class="form-input" placeholder="Durchsuchen...">
    <select id="filter-embedded" class="form-select--inline">
        <option value="">Alle</option>
        <option value="synced">Mit Embedding</option>
        <option value="pending">Ohne Embedding</option>
    </select>
</div>

<table id="chunks-table" data-sortable>
    <thead>
        <tr>
            <th data-sort="id">ID</th>
            <th data-sort="filename">Dokument</th>
            <th data-sort="chunk_index">Index</th>
            <th data-sort="token_count">Tokens</th>
            <th data-sort="status">Status</th>
            <th data-sort="content">Inhalt</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($chunks as $c): ?>
        <tr>
            <td><a href="/semantic-explorer/chunks/<?= $c['id'] ?>">#<?= $c['id'] ?></a></td>
            <td><a href="/semantic-explorer/dokumente/<?= $c['document_id'] ?>"><?= htmlspecialchars($c['filename']) ?></a></td>
            <td><?= $c['chunk_index'] ?></td>
            <td><?= $c['token_count'] ?></td>
            <td>
                <?php if ($c['qdrant_id']): ?>
                <span class="badge badge--success">synced</span>
                <?php else: ?>
                <span class="badge">pending</span>
                <?php endif; ?>
            </td>
            <td><?= htmlspecialchars(substr($c['content'], 0, 80)) ?>...</td>
        </tr>
        <?php endforeach; ?>
    </tbody>
</table>

<p class="links-bar">
    <a href="/semantic-explorer">Zurueck zum Explorer</a>
</p>

<script type="module">
import { init } from '/js/components/data-table.js';

const dataTable = init({
    clock: { now_epoch_ms_utc: () => Date.now() },
    logger: console,
    ui: {
        showMessage: (msg) => { console.log(msg.type + ': ' + msg.text); },
        disableFeature: (key) => { console.warn('Feature disabled: ' + key); },
        offerRetry: () => Promise.resolve(false)
    },
    runId: crypto.randomUUID()
});

dataTable.create('chunks-table', {
    searchInput: 'chunks-search',
    pageSize: 20,
    filters: {
        'filter-embedded': 4
    }
});
</script>

<?php $content = ob_get_clean(); ?>
<?php require VIEW_PATH . '/layout.php'; ?>

Vollständig herunterladen

Aktionen

Herunterladen

Andere Versionen dieser Datei

ID Version Typ Größe Datum
1626 2 modified 2.5 KB 2025-12-27 09:44
18 1 modified 2.8 KB 2025-12-20 16:45

← Zurück zur Übersicht