index
Build or rebuild sqlite-vec RAG database
Workflow
- Load config via shared/config-loader.md
- Verify prerequisites: chapters/ with chunks must exist
- Determine provider: --provider flag > config.embedding_provider
- If existing DB has different provider and no --rebuild → ERROR: "DB uses {provider}. Use --rebuild to switch."
- Dispatch indexer-agent with output-dir, provider, and rebuild flag
- Update unified DB at config.unified_db
- Update pipeline.json index phase