Upgrade sqlite-vec v0.1.10-alpha.3. New version supports DiskANN, with various bug fixes. However this patch is a minimal patch to simplify code (taking into account fixed bugs), with no schema changes . Compaction may no longer be needed, but for now I'm leaving in, since we will likely need to measure in an experiment. It's my understanding that the Neon optimizations work will all 64 bit arm CPUs, so leaving in. https://docs.google.com/document/d/1ZyBtEqyzJqTrb-kt4wdE4eyyaT-Yo8Y7PyymhYt4_T8/edit?tab=t.0#heading=h.1avovadfdmoa performance try build comparison: Base revision's try run: https://treeherder.mozilla.org/jobs?repo=try&landoCommitID=193651 Local revision's try run: https://treeherder.mozilla.org/jobs?repo=try&landoCommitID=193652 Future patch would be migrating to DiskANN Differential Revision: https://phabricator.services.mozilla.com/D297973
42 lines
840 B
C
42 lines
840 B
C
#ifndef SQLITE_VEC_H
|
|
#define SQLITE_VEC_H
|
|
|
|
#ifndef SQLITE_CORE
|
|
#include "sqlite3ext.h"
|
|
#else
|
|
#include "sqlite3.h"
|
|
#endif
|
|
|
|
#ifdef SQLITE_VEC_STATIC
|
|
#define SQLITE_VEC_API
|
|
#else
|
|
#ifdef _WIN32
|
|
#define SQLITE_VEC_API __declspec(dllexport)
|
|
#else
|
|
#define SQLITE_VEC_API
|
|
#endif
|
|
#endif
|
|
|
|
#define SQLITE_VEC_VERSION "v0.1.10-alpha.3"
|
|
// TODO rm
|
|
#define SQLITE_VEC_DATE "2026-04-01T06:40:47Z+0000"
|
|
#define SQLITE_VEC_SOURCE "4e2dfcb79dcb961bdbaca11dfc91b5bfb9de4fd3"
|
|
|
|
|
|
#define SQLITE_VEC_VERSION_MAJOR 0
|
|
#define SQLITE_VEC_VERSION_MINOR 1
|
|
#define SQLITE_VEC_VERSION_PATCH 10
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
SQLITE_VEC_API int sqlite3_vec_init(sqlite3 *db, char **pzErrMsg,
|
|
const sqlite3_api_routines *pApi);
|
|
|
|
#ifdef __cplusplus
|
|
} /* end of the 'extern "C"' block */
|
|
#endif
|
|
|
|
#endif /* ifndef SQLITE_VEC_H */
|