Skip to main content

Module sqlite

Module sqlite 

Source
Expand description

SQLite vector store (feature sqlite, on by default).

Uses the bundled SQLite that ships with sqlx, plus the statically-compiled sqlite-vec extension: embeddings live in a vec0 virtual table (chunks_vec, cosine metric) keyed by the chunks rowid, and vector_search is a real KNN MATCH query instead of a full-table scan. The extension is registered process-wide with sqlite3_auto_extension before the first connection, so every pooled connection sees vec0.

Structsยง

SqliteStore
SQLite-backed store with sqlite-vec KNN search.