Lectern
v1.0.0Public-domain Latter-day Saint and Christian scholarship, searchable and citable to the page.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search Search the library
Search the library. Each hit is one page of a book, with a url that opens exactly that page; cite that url. Query grammar: words are ANDed; "a phrase" in double quotes; prefix* (at least 3 letters); a NEAR/5 b; -word excludes. Example: "plurality of gods" Melchizedek -Abraham. There is no OR: run one search per alternative. There is no stemming: baptiz* finds baptize, baptized and baptizing. The text is OCR of old books, so try the period's spellings (shew, connexion, Saviour) and synonyms when a search comes back thin. An empty query lists books that match the filters. Filters: collection (…
| Parameter | Type | Description |
|---|---|---|
collection | Collection, e.g. interpretability, evals. | |
cursor | next_cursor from the previous page. | |
date_from | YYYY or YYYY-MM, inclusive. | |
date_to | YYYY or YYYY-MM, inclusive. | |
doc | Search inside one document or version, e.g. arxiv:2305.15324. | |
kind | Document kind. | |
limit | integer | |
mode | string | units: pages and paragraphs; documents: whole documents ranked by their hits. |
org | Publishing organisation, e.g. Anthropic, NIST. | |
query | string | Words, "phrases", prefix*, a NEAR/5 b, -exclude. Empty lists documents. |
sort | string |
fetch Read a document or page
Read the library. id is what search returned or what you want to open: - a book, jod:01 (or its scan, jod:01/r1): its record, with authors, publisher, year, the public-domain evidence and the contents where the scan has them; - a page, npnf2:04-select-works-and-letters/r1/p65: its full text; - a range of up to 8 pages, jod:01/r1/p40-p44. A result url works as an id too. Each page comes back with the url to cite. Long reads are cut at max_tokens (default 6000) with a note saying how to continue. view="image" adds a link to the page's image, which is the authority where the OCR is unclear. Pag…
| Parameter | Type | Description |
|---|---|---|
id * | string | A document id, a cite string such as arxiv:2305.15324/v2/p6, a range of up to 8 units, or a result url. |
max_tokens | integer | |
view | string | image adds page image links (open PDFs). |
verify_quote Check a quotation
Check a quotation before you use it. Pass the exact words you intend to put in quotation marks, and the cite (id or url) you intend to attach. Join omitted stretches with "..." as you would in print. Verdicts: exact and normalized pass (normalized forgives case, punctuation, hyphenation, ligatures and line breaks, never wording). elsewhere means the words are in that book but not on the cited page; the result gives the right page. near_miss means something close is there but not these words; the result shows the page's own words and the difference, so quote those instead. not_found means the…
| Parameter | Type | Description |
|---|---|---|
quote * | string | The exact words you intend to put in quotation marks; '...' joins fragments. |
cite | The cite string or url you will attach to it. | |
doc | Without cite: check against this whole document. |
check_answer Check an answer's citations
Audit a draft answer before you give it. Pass the answer's full text (markdown, up to 40,000 characters), with its citations as library urls or cite strings and its quotations in quotation marks or as > blockquotes. For every citation it says whether the book, scan and page exist; for every quotation, whether it is on the page cited next to it (the same verdicts as verify_quote), and which quotations have no citation at all. Fix what fails and run it again. It checks links and quotations only. It does not check whether a page supports the claim you make about it: read the cited pages for tha…
| Parameter | Type | Description |
|---|---|---|
text * | string | The draft answer, in markdown, with its citations and quotations. |