Commit 96101b1
Fix: Load sqlite-vec extension in database connection
Enable vector search and embeddings support by loading the sqlite-vec extension
when creating database connections in Smriti. This was blocking smriti embed
command from working.
Changes:
- Import sqlite-vec package in src/db.ts
- Load extension in getDb() function via sqliteVec.load(_db)
- Enables vectors_vec virtual table support
- Unlocks hybrid search and semantic recall capabilities
Related: QMD Architecture Deep Dive learning session stored in Smriti
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>1 parent cdfd8b5 commit 96101b1
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
0 commit comments