HTPD
v0.1.2.post1Answer questions from PDFs converted to .htpd: exact text with pages, or 'Not found in this file.'
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_bundles
List the HTPD bundles (converted documents) this server can read.
contents
The table of contents of a bundle: every section with its ID, number, title and pages. Start here to see how the document is built.
| Parameter | Type | Description |
|---|---|---|
bundle * | string | Name of a bundle (see list_bundles) or the path of a bundle folder. |
depth | integer | Show only this many levels. |
open_section
The exact text of one section, with the page of every paragraph, its place in the document, its parent, subsections and neighbours. Use the ID, the file name or the section number (e.g. '3.1').
| Parameter | Type | Description |
|---|---|---|
bundle * | string | Name of a bundle (see list_bundles) or the path of a bundle folder. |
section * | string |
search
Sections that hold all the given words (exact word search).
| Parameter | Type | Description |
|---|---|---|
bundle * | string | Name of a bundle (see list_bundles) or the path of a bundle folder. |
words * | string | |
limit | integer |
ask
Give a question; get back only the few sections of the document that answer it, with their exact text and pages - or NOT FOUND when the document does not answer it. Quote the text and cite the pages in the answer.
| Parameter | Type | Description |
|---|---|---|
bundle * | string | Name of a bundle (see list_bundles) or the path of a bundle folder. |
question * | string | |
budget | integer | Most tokens of text to return (default 3000). |
figure
The picture of one figure (a diagram, chart or photo of the document) as an image, with its caption, page and section. Figures stand in the text as a line '![F12: caption]'; ask for 'F12' to see it.
| Parameter | Type | Description |
|---|---|---|
bundle * | string | Name of a bundle (see list_bundles) or the path of a bundle folder. |
figure * | string | e.g. 'F12' |
check
List every problem of a bundle (broken links, a tree that disagrees, ...).
| Parameter | Type | Description |
|---|---|---|
bundle * | string | Name of a bundle (see list_bundles) or the path of a bundle folder. |