SQLiteVec (sqlite-vec) Storage
For common Agent integration, extraction modes, and tool configuration, see Usage and Configuration.
Use case: Local persistence + semantic memory search on a single node
SQLiteVec stores memories in a SQLite file and uses sqlite-vec to do
vector similarity search (semantic search). Compared to the plain SQLite
backend, it requires an embedder to generate embeddings.
Configuration options:
WithTableName(name): Table name (default "memories")WithEmbedder(embedder): Text embedder for vector generation (required)WithIndexDimension(dim): Vector dimension (default is embedder dimension)WithMaxResults(limit): Max search results (default 10)WithSoftDelete(enabled): Enable soft delete (default false)WithMemoryLimit(limit): Memory limit per userWithSkipDBInit(skip): Skip table initialization- Auto mode:
WithExtractor,WithAsyncMemoryNum,WithMemoryQueueSize,WithMemoryJobTimeout - Tools:
WithCustomTool,WithToolEnabled
Notes:
- This backend uses
github.com/mattn/go-sqlite3and requires CGO. - The
sqlite-vecextension is compiled and registered in-process via Go bindings (no external.so/.dylibdownload at runtime).