{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/semantic-explorer\/suche.php"
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/semantic-explorer\/suche.php",
"content": "<?php ob_start(); ?>\n\n<nav class=\"breadcrumb\">\n <a href=\"\/\">Campus KI<\/a> » <a href=\"\/semantic-explorer\">Semantic Explorer<\/a> » Suche\n<\/nav>\n\n<h1>Semantische Suche<\/h1>\n<p>Vektor-basierte Suche in Nutzdaten (Qdrant documents Collection).<\/p>\n\n<form method=\"get\" class=\"search-form\">\n <div class=\"form-group\">\n <input type=\"text\" name=\"q\" value=\"<?= htmlspecialchars($query) ?>\" placeholder=\"Suchbegriff eingeben...\" class=\"search-input\" autofocus>\n <\/div>\n <div class=\"form-row\">\n <select name=\"limit\">\n <option value=\"5\" <?= $limit === 5 ? 'selected' : '' ?>>5 Ergebnisse<\/option>\n <option value=\"10\" <?= $limit === 10 ? 'selected' : '' ?>>10 Ergebnisse<\/option>\n <option value=\"20\" <?= $limit === 20 ? 'selected' : '' ?>>20 Ergebnisse<\/option>\n <\/select>\n <button type=\"submit\" class=\"btn btn--primary\">Suchen<\/button>\n <\/div>\n<\/form>\n\n<?php if ($query !== '' && !empty($results)): ?>\n<h2>Ergebnisse fuer \"<?= htmlspecialchars($query) ?>\"<\/h2>\n<p><?= count($results) ?> Treffer gefunden.<\/p>\n\n<table data-sortable>\n <thead>\n <tr>\n <th data-sort=\"rank\">#<\/th>\n <th data-sort=\"score\">Score<\/th>\n <th data-sort=\"filename\">Dokument<\/th>\n <th data-sort=\"tokens\">Tokens<\/th>\n <th data-sort=\"content\">Inhalt<\/th>\n <\/tr>\n <\/thead>\n <tbody>\n <?php foreach ($results as $i => $r): ?>\n <tr>\n <td><?= $i + 1 ?><\/td>\n <td><span class=\"badge badge--success\"><?= number_format($r['score'] * 100, 1) ?>%<\/span><\/td>\n <td>\n <a href=\"\/semantic-explorer\/chunks\/<?= $r['id'] ?>\">#<?= $r['id'] ?><\/a>\n <br><small><a href=\"\/semantic-explorer\/dokumente\/<?= $r['document_id'] ?>\"><?= htmlspecialchars($r['filename']) ?><\/a><\/small>\n <\/td>\n <td><?= $r['token_count'] ?><\/td>\n <td><?= htmlspecialchars(substr($r['content'], 0, 150)) ?>...<\/td>\n <\/tr>\n <?php endforeach; ?>\n <\/tbody>\n<\/table>\n\n<?php elseif ($query !== ''): ?>\n<p>Keine Ergebnisse fuer \"<?= htmlspecialchars($query) ?>\" gefunden.<\/p>\n<p>Stellen Sie sicher, dass Dokumente mit Embeddings vorliegen.<\/p>\n<?php endif; ?>\n\n<p class=\"links-bar\">\n <a href=\"\/semantic-explorer\">Zurueck zum Explorer<\/a>\n<\/p>\n\n<?php $content = ob_get_clean(); ?>\n<?php require VIEW_PATH . '\/layout.php'; ?>\n",
"numLines": 65,
"startLine": 1,
"totalLines": 65
}
}
}