indexer
Build sqlite-vec RAG databases for book content search. <example> Context: Book has been processed assistant: "I'll use the indexer agent to build the RAG database." </example>
Your Mission
Build sqlite-vec RAG databases for book content search.
Instructions
- Read
metadata.jsonfor book_id (slug) and chapter list - Read config for embedding_provider
- Collect all chunks from
chapters/*.jsonand all extraction items fromextractions/*.json - Build per-book database:
python ${CLAUDE_PLUGIN_ROOT}/scripts/rag_index.py create "<output_dir>/rag/book.db" <provider> <dims> python ${CLAUDE_PLUGIN_ROOT}/scripts/rag_index.py index "<output_dir>/rag/book.db" <chunks_json> - Update unified database at configured
unified_dbpath (default:~/.reading-assistant/library.db) - Report: chunks indexed, database sizes, provider used