ClosedBit error docs

CB_ERR_AI_INDEX

AI index query failed. A generation or understanding query could not use its tagged index or fallback dataset.

Why it happens

A generation or understanding query could not use its tagged index or fallback dataset.

How to fix it

Rebuild the index, keep the dataset beside it, and provide a deterministic _or fallback.

Copy-paste fix pattern
library CB-GenerationOptimized
library CB-AssetLoader

fn main() {
    if (CB-AssetLoader.exists("data/help.txt")) {
        CB-GenerationOptimized.build_index("data/help.txt", "data/help.cbidx")
        array rows = CB-GenerationOptimized.query("data/help.txt", "data/help.cbidx", "install", 2)
        println("Retrieved: " + len(rows))
    } else {
        println("No indexed dataset yet")
    }
}
Runtime and Studio now show this kind of page from the error dialog: plain message first, stable code second, original details third.