Added VWDictionary tests and doc. Fixed LSH not working (fix from https://github.com/flann-lib/flann/pull/472

This commit is contained in:
matlabbe
2025-12-22 21:07:25 -08:00
parent c815c12fc7
commit f7cb330e31
9 changed files with 1238 additions and 59 deletions
+8 -1
View File
@@ -3647,7 +3647,14 @@ void DBDriverSqlite3::loadQuery(VWDictionary & dictionary, bool lastStateOnly) c
if(dataSize>4 && data)
{
UDEBUG("A flann index was saved in the database (size=%ld).", dataSize);
dictionary.deserializeIndex((const unsigned char*)data, dataSize);
if(!dictionary.deserializeIndex((const unsigned char*)data, dataSize))
{
UERROR("Failed to deserialize dictionary's index! See previous logs for reason.");
}
else
{
UINFO("Sucessfully loaded dictionary's index.");
}
}
else {
UDEBUG("No flann index was saved in the database.");