Commit 5ce4be9
feat(core): add AntflyVectorStore implementation
New vector store backed by Antfly, replacing LanceDB + @xenova/transformers:
- Implements VectorStore interface with antfly SDK
- searchText() for hybrid search (BM25 + vector + RRF)
- Direct key lookup via tables.lookup() (replaces O(n) zero-vector hack)
- Auto-embedding on insert via Termite (embeddings param ignored)
- Batch insert in chunks of 500
- Model mismatch detection on initialize
- getModelInfo() and getStorageSize() for VectorStats
- searchByDocumentId() uses text-based similarity
- Typed SDK boundary layer (no any leakage)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 49959bc commit 5ce4be9
3 files changed
Lines changed: 414 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
0 commit comments