From f4fd17be4d17aa5a86f84870877d411e17ab094c Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Sun, 9 Aug 2026 00:08:33 -0400 Subject: [PATCH] Accept the one retrieval kind the indexer produces and the page offers --- Plugin/unraid/include/ai.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Plugin/unraid/include/ai.php b/Plugin/unraid/include/ai.php index 3aa32bc..9b8c10d 100644 --- a/Plugin/unraid/include/ai.php +++ b/Plugin/unraid/include/ai.php @@ -81,7 +81,13 @@ require_once __DIR__ . '/config.php'; // VV_AI_JOB_DIR and VV_AI_TOKEN_CACHE_DIR are defined in config.php with every other cache path, // read from master.conf so this layer and load_config.sh cannot disagree about where they are. -const VV_AI_KINDS = ['header', 'readme', 'manual', 'template', 'doc']; +// Must match what AI/lib/chunk.js actually assigns, and what the AI tab's retrieval-source +// dropdown offers. All three drifted: the indexer has always produced 'ui' for +// Plugin/unraid/pages/readme/*.md and the dropdown has always offered it, but this whitelist +// omitted it — so choosing "WebUI — how the pages work" and asking anything returned +// "Unknown kind: ui" and no answer at all. The page help was indexed and unreachable through +// the one filter built to reach it. +const VV_AI_KINDS = ['header', 'readme', 'manual', 'template', 'doc', 'ui']; // Profiles — what each one is, and what it is allowed to see and do. One table, in one file, // read by everything: this endpoint, the worker, the shared chat include and the Scheduler dock.