Build semantic index
calibre_build_indexBuilds a semantic or keyword-only index for specific books in a Calibre library, enabling search. Supports pruning orphaned entries and re-indexing.
Instructions
Build the semantic index for specific books (required: bookId, ids, or query — full-library indexing is deferred). Extracts, chunks, and embeds each book. Set keywordOnly=true (or when the embedding model is absent, it happens automatically) to build a keyword-only index that powers mode:"keyword" search with zero ML dependencies. Re-run after adding books; use force to re-index unchanged ones. Set prune=true to also drop index entries for books that no longer exist in the library (removals/merges leave searchable orphans behind).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| force | No | ||
| prune | No | ||
| query | No | ||
| bookId | No | ||
| library | No | ||
| enableFts | No | ||
| keywordOnly | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chunks | No | ||
| figures | No | ||
| failures | No | ||
| elapsedMs | No | ||
| bookDetails | No | ||
| keywordOnly | No | ||
| prunedBooks | No | ||
| booksIndexed | No | ||
| booksSkipped | No | ||
| prunedChunks | No | ||
| prunedFigures | No | ||
| booksRequested | No | ||
| semanticReason | No | ||
| semanticAvailable | No |