016-vector-index-and-scan
The index: a paged cosine scan, an application-owned text index, and no SQLite extension
Lifecycle approvedImplementation in-progressVerification unknownQualification unknown
Similarity is computed in this process. Vectors are BLOBs read through rahi's paged read, scored by dot product against a normalized query, and reduced by a bounded top-k heap, with the scope predicate in the SQL so a scan never leaves its scope. The text channel is an application-owned inverted index rather than FTS5, because FTS5 is not compiled into hiqlite's SQLite build and a loadable extension is refused by the chassis. A trait boundary exists so an approximate index can replace the scan when the evaluation corpus says it must, and not before.
Read the full pinned specification ↗Relationships
depends on
depended on by
Claimed units
- establishes
{ "kind": "file", "path": "crates/aicortex-index/Cargo.toml" } - establishes
{ "kind": "file", "path": "crates/aicortex-index/src/lib.rs" } - establishes
{ "kind": "file", "path": "crates/aicortex-index/src/vector.rs" } - establishes
{ "kind": "file", "path": "crates/aicortex-index/src/scan.rs" } - establishes
{ "kind": "file", "path": "crates/aicortex-index/src/topk.rs" } - establishes
{ "kind": "file", "path": "crates/aicortex-index/src/text.rs" } - establishes
{ "kind": "file", "path": "crates/aicortex-index/src/tokenize.rs" } - establishes
{ "kind": "file", "path": "crates/aicortex-index/src/migrations.rs" } - establishes
{ "kind": "file", "path": "crates/aicortex-index/tests/scan.rs" } - establishes
{ "kind": "file", "path": "crates/aicortex-index/tests/text.rs" } - establishes
{ "kind": "file", "path": "crates/aicortex-index/benches/scan.rs" } - establishes
{ "kind": "file", "path": "crates/aicortex-index/tests/alloc.rs" } - establishes
{ "kind": "file", "path": "crates/aicortex-index/tests/common/mod.rs" } - extends
{ "nature": "additive", "spec": "012-store-schema-and-repositories", "unit": { "kind": "file", "path": "crates/aicortex-store/src/migrations.rs" } } - extends
{ "nature": "additive", "spec": "010-chassis-adoption-and-workspace", "unit": { "kind": "file", "path": "Cargo.toml" } }
Source headings
- 016: The index
- 1. Purpose
- 2. Territory
- 3. Behavior
- 4. Functional requirements
- 5. Acceptance criteria
- 6. Out of scope
- 7. Resolved decisions
- Verification
Frozen anchors
No frozen anchors declared.