index-manager

Manage MPEP index lifecycle from PDF downloads to FAISS and BM25 indexing.

167|28|Updated Nov 15, 2025
One-click install
npx skills add https://github.com/RobThePCGuy/Claude-Patent-Creator --skill index-manager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: index-manager
Source: https://github.com/RobThePCGuy/Claude-Patent-Creator/tree/main/skills/index-manager
Command: npx skills add https://github.com/RobThePCGuy/Claude-Patent-Creator --skill index-manager

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sentence-transformers, faiss-cpu, rank-bm25, PyMuPDF, and includes references (resource) components.

What problem does it solve?

Maintaining a large search index for legal documents like the MPEP, including downloading PDFs, building embeddings, and ensuring data integrity, can be a complex and resource-intensive task. This Skill automates the entire index lifecycle, saving you time and effort.

Core Features & Use Cases

  • Automated PDF Downloads: Downloads MPEP, 35 USC, and 37 CFR PDFs directly from USPTO.
  • Guided Index Building: Builds FAISS and BM25 indexes with GPU acceleration for fast search performance.
  • Index Verification & Maintenance: Checks index health, allows rebuilding, and provides troubleshooting for common issues.
  • Use Case: The MPEP has been updated, and a user needs to rebuild their search index to include the latest regulations. This skill guides them through downloading new PDFs and rebuilding the index efficiently, ensuring their search results are always current.

Quick Start

Rebuild the MPEP search index to incorporate the latest USPTO updates.

Frequently Asked Questions about index-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a FAISS search index for legal documents like the MPEP?

Building a FAISS search index for legal documents involves downloading PDFs, extracting text, generating embeddings with sentence-transformers, and constructing the FAISS index. This Skill automates the entire lifecycle from USPTO PDF acquisition through GPU-accelerated embedding generation and index creation, handling text chunking and integrity verification.

Can I use BM25 and FAISS together for patent document search?

Yes, combining BM25 and FAISS enables hybrid search: BM25 provides keyword matching for patent terminology while FAISS delivers semantic similarity search. This Skill builds both indexes simultaneously, allowing you to leverage strengths of each approach for comprehensive MPEP search across regulatory updates.

What happens when the MPEP is updated—do I need to rebuild my search index?

When the MPEP updates, you need to rebuild your search index to include new regulations and ensure current search results. This Skill manages the full rebuild workflow: downloading updated PDFs from USPTO, re-extracting text, regenerating embeddings, and refreshing both FAISS and BM25 indexes with verification checks.

How do I verify and fix a corrupted search index?

Index corruption can degrade search accuracy. This Skill performs index health checks, detects corruption events, and provides guided rebuilding to restore data integrity. It includes troubleshooting tools and maintenance workflows to ensure your FAISS and BM25 indexes remain reliable and performant.

Does GPU acceleration work for embedding generation in patent indexing?

GPU acceleration significantly speeds up embedding generation for large document collections. This Skill supports GPU-accelerated processing with sentence-transformers for embedding creation, reducing indexing time while maintaining the option to fall back to CPU-based processing when needed.

What PDF formats and sources does this indexing approach support?

This Skill handles PDF downloads directly from USPTO sources (MPEP, 35 USC, 37 CFR) with PyMuPDF for text extraction and integrity validation. It manages the full acquisition-to-index pipeline, requiring only PDF availability and performing chunked text processing for reliable, searchable legal document indexes.