Skip to main content

clear

Function clear 

Source
pub fn clear()
Expand description

Drop the cached HNSW index (#685 eviction hook). The next large-corpus query transparently rebuilds it; queries in between fall back to exact brute force, so correctness is unaffected. Called by the eviction orchestrator under memory pressure — before this hook the built graph + its FlatEmbeddings corpus stayed resident forever.