jbellis / jvector

JVector: the most advanced embedded vector search engine
Apache License 2.0
1.47k stars 110 forks source link

JVector should clear scratch search structures when a search terminates exceptionally #336

Closed jkni closed 4 months ago

jkni commented 4 months ago

A GraphSearcher maintains scratch search data structures and asserts that these are empty when resuming, as the previous search should have emptied their contents. If a query terminates exceptionally, these should be cleared in an exception handler, to ensure they're in a good state for the next search.