Skip to content

Extract Book Index Topics

🤖 AI Drafted (Not reviewed)

Parse a back-of-book index into topic entities and grounded statements from the referenced pages.

Tool id book_index_extract
Category llm
Uses a language model yes
Needs a generative model no
Runs over many items no
Item handling batch
Structured output yes
Human-verified not yet

What it reads

Port Type Required What it is
Index Text (text) text no OCR/transcribed back-of-book index text.
Index Records (records) array no Optional index page records [{doc_id, text}, …].
Page Offset (page_offset) number no PDF sequence minus printed page number.
Index Start Sequence (index_start_sequence) number no First PDF page sequence containing the book index.
Index End Sequence (index_end_sequence) number no Last PDF page sequence containing the book index.
Anchor Printed Page (anchor_printed_page) number no Known printed page number for offset resolution.
Anchor Sequence (anchor_sequence) number no PDF page sequence for the known printed page.

What it emits

Port Type Required What it is
Text (text) text — Raw text response
Value (value) any — Parsed value
Texts (texts) array — Per-item texts
Values (values) array — Per-item values
Results (results) json — Full results
Records (records) array — Per-document text records [{doc_id, text}, …].
Artifacts (artifacts) json — Artifact IDs

Options

Option Type Default What it does
choices array — Valid choices. (Not shown in the editor.)
chunk_size_chars integer 0 Chunk large input text above this character budget (0=auto).
ff_span integer 2 How many pages to expand an index ‘ff.’ reference.
match_mode string prefer Match mode. One of: prefer, strict, inform.
max_items integer 10 List max items.
max_pages_per_topic integer 4 Maximum referenced pages to inspect per topic.
max_tokens integer 8192 Max response.
max_words integer 50 Word limit.
metadata_field string — Save to field.
model_name string — Model name.
output_format string text Response format. One of: text, boolean, choice, number, words, list, json.
prompt string — Custom prompt.
provider_name string — LLM provider. One of: openai, anthropic, google, ollama, lmstudio, groq, together, deepseek, mistral, openrouter, dashscope, xai, perplexity, fireworks, deepl.
quality_gate boolean yes Stop the run if output is unreadable.
reference_values object — Known values to match. (Not shown in the editor.)
save_to_db boolean yes Save to library.
save_to_file boolean no Export to file.
temperature number 0.7 Creativity.
thinking_mode string off Chain-of-thought reasoning depth. One of: off, short, medium, long.

The prompt it sends

This tool does not send a prompt — it does its work in code.