Semantic Index
Path:
loom-sprint-scaffold/loom/src/memory/core/semantic-index.tsRelative: loom/src/memory/core/semantic-index.tsSubproject: loom-sprint-scaffoldCategory: otherLines: 161Bytes: 5,866Imports: 4Exports: 2
Content Preview
- /**
- * H4.6 — SemanticIndex: search abstraction with two implementations.
- *
- * VectorizeIndex — wraps Cloudflare Vectorize (edge, uses embeddings).
- * Fts5Index — wraps D1 FTS5 virtual table (local dev / fallback).
- *
- * Both share the same SemanticIndex interface (defined in src/types/memory.ts).
- * Factory in src/memory/index.ts selects by binding presence at startup.
- */
- import { createLogger } from "../../lib/logger";
- import { parseContract } from "../../lib/validate";
- import type {