Skip to main content

refresh

Function refresh 

Source
pub fn refresh(lessons: &Path) -> usize
Expand description

Bring the index of lessons up to date after lessons were written (borg learn, borg assimilate --apply, a mesh sync), building it if it is missing (the first lesson after --fetch needs no --rebuild). Quiet and fail-open: without the model or with vectors off it does nothing; an error is one line on stderr. Returns the number of lessons embedded.