Skip to content
Legal
Command

/rebuild-index

Rebuild MPEP search index (needed after MPEP updates or corruption)

BOOST
From plugin
claude-patent-creator-standalone
20316 skills13 agents16 commands1 hook
Install
> /plugin marketplace add RobThePCGuy/Claude-Patent-Creator
> /plugin install claude-patent-creator-standalone@claude-patent-creator

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/rebuild-index

Context preview

What this command does when you run it.

Rebuild MPEP search index (needed after MPEP updates or corruption)

Command definition

rebuild-index.md
description: Rebuild MPEP search index (needed after MPEP updates or corruption)
allowed-tools: Bash

Rebuild MPEP Index

Rebuild the hybrid search index (FAISS + BM25) from MPEP PDFs.

Instructions

1. Verify MPEP PDFs are present (${CLAUDE_PLUGIN_ROOT}/pdfs) 2. Run rebuild command 3. Wait for completion (5-15 min GPU, 35-65 min CPU) 4. Verify index health

Command

cd ${CLAUDE_PLUGIN_ROOT}
patent-creator setup --rebuild

What This Does

  • Deletes existing index files
  • Re-extracts text from all MPEP PDFs
  • Generates embeddings (BGE-base-en-v1.5)
  • Builds FAISS vector index
  • Builds BM25 keyword index
  • Creates metadata mappings
  • Verifies index integrity

When to Rebuild

  • MPEP PDFs updated
  • Index corruption detected
  • Slow or irrelevant search results
  • After changing embedding model
  • GPU newly available (for faster building)

Time Estimates

  • RTX 3060 GPU: 5-10 minutes
  • RTX 4090 GPU: 3-5 minutes
  • CPU only: 35-65 minutes
  • Apple Silicon (M1/M2): 15-25 minutes
Ships withclaude-patent-creator-standalone

An AI-powered patent creation and analysis system for Claude Code. I built this because I needed to file a patent myself. I used AI to build the system, used the system to file the patent, and it worked. Now it's open source so anyone can use it.

Get the whole plugin