claude-configs/skills/save-doc/examples/runbook.md
Cal Corum b464a10964 Sync config: add save-doc skill, update agents/skills/plugins, clean sessions
- Add skills/save-doc/ skill
- Add sessions/2121928.json
- Delete cognitive-memory skill, memory-saver agent, save-memories command
- Update CLAUDE.md, pr-reviewer, issue-worker agents
- Update mcp-manager, create-scheduled-task, paper-dynasty skills
- Update plugins (blocklist, installed, known_marketplaces, marketplaces)
- Remove old session files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 02:00:54 -05:00

49 lines
1.4 KiB
Markdown

---
title: "KB-RAG Reindex Runbook"
description: "Operational runbook for manual and emergency reindexing of the claude-home knowledge base on manticore."
type: runbook
domain: development
tags: [kb-rag, qdrant, manticore, operations]
---
# KB-RAG Reindex Runbook
## When to Use
- Search returns stale or missing results after a push
- After bulk file additions or directory restructuring
- After recovering from container crash or volume issue
## Incremental Reindex (normal)
Only re-embeds files whose content hash changed. Fast (~1-5 seconds).
```bash
ssh manticore "docker exec md-kb-rag-kb-rag-1 md-kb-rag index"
```
## Full Reindex (nuclear option)
Clears the state DB and re-embeds everything. Slow (~2-3 minutes for 150+ files).
```bash
ssh manticore "docker exec md-kb-rag-kb-rag-1 md-kb-rag index --full"
```
## Verify
```bash
# Check health
ssh manticore "docker exec md-kb-rag-kb-rag-1 md-kb-rag health"
# Check indexed file count and Qdrant point count
ssh manticore "docker exec md-kb-rag-kb-rag-1 md-kb-rag status"
# Check for validation errors in recent logs
ssh manticore "docker logs md-kb-rag-kb-rag-1 --tail 30 2>&1 | grep WARN"
```
## Escalation
- If Qdrant won't start: check disk space on manticore (`df -h`)
- If embeddings OOM: check GPU memory (`ssh manticore "nvidia-smi"`)
- Full stack restart: `ssh manticore "cd ~/docker/md-kb-rag && docker compose down && docker compose up -d"`