//! Full rebuild of both index layers from redb. Used at startup,
//! after detecting a corrupt tantivy dir, or on manual admin trigger.
useanyhow::Result;usesuper::KbIndex;usecrate::kb::store::KbStore;pubfnfrom_redb(idx:&KbIndex, store:&KbStore)->Result<()>{
idx.hnsw.rebuild(store)?;
idx.tantivy.rebuild(store)?;Ok(())}