Accept the one retrieval kind the indexer produces and the page offers
This commit is contained in:
@@ -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,
|
// 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.
|
// 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,
|
// 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.
|
// read by everything: this endpoint, the worker, the shared chat include and the Scheduler dock.
|
||||||
|
|||||||
Reference in New Issue
Block a user