# reindex > Rebuild the vector search index from all summaries - Author: Ryan Kwong - Repository: rhkwong/high-powered-engineer - Version: 20260122172418 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/rhkwong/high-powered-engineer - Web: https://mule.run/skillshub/@@rhkwong/high-powered-engineer~reindex:20260122172418 --- --- name: reindex description: Rebuild the vector search index from all summaries argument-hint: [--force] allowed-tools: Bash --- # Reindex Skill Rebuild the vector search index from all summary files in the knowledge base. ## Usage ``` /reindex [--force] ``` **Examples:** ``` /reindex /reindex --force ``` ## Parameters | Parameter | Description | |-----------|-------------| | `--force` | Delete existing index and rebuild from scratch | ## When to Use - **Incremental update (no flag):** After adding new videos, updates the index with new content while preserving existing embeddings - **Force rebuild (`--force`):** When you want to regenerate all embeddings, fix corruption, or after modifying the chunking logic ## Instructions ### Step 1: Execute Indexer Run the indexer from the project root: ```bash cd /Users/ryankwong/high-powered-engineer && python3 vector-search/indexer.py [--force] ``` ### Step 2: Report Results The indexer outputs stats. Report to user: - Total chunks indexed - Chunks added (new) - Chunks updated (modified) - Chunks deleted (removed summaries) - Final collection size ## Error Handling | Error | Action | |-------|--------| | Dependencies missing | Tell user: `pip3 install -r vector-search/requirements.txt` | | No summaries found | Verify `summaries/` directory exists and has `.md` files | | Permission error | Check write permissions for `vector-search/db/` | ## Technical Notes - Index stored at `vector-search/db/` - Embedding model: `all-MiniLM-L6-v2` (~90MB, downloaded on first run) - Incremental updates use chunk IDs to detect changes - Full rebuild takes ~30 seconds for ~1000 chunks