Documentation
¶
Overview ¶
gorm-vec example: side-by-side pattern for combining gorm-managed schema with sqlite-vec virtual tables. gorm owns the canonical Documents table (typed model, AutoMigrate, normal CRUD); the vec.Table holds embeddings keyed by Document.ID. KNN returns rowids, gorm fetches the matching documents.
This is the recommended pattern when "gorm-vec integration" comes up — no AutoMigrate magic, no virtual-table gymnastics, just shared rowids.
Click to show internal directories.
Click to hide internal directories.