Lectern

Public-domain Latter-day Saint and Christian scholarship, searchable and citable to the page.

¿Debería usar esto?

Calidad y seguridad

A
Calidad de la descripción
100%
Integridad del esquema
88%
Calidad de los nombres
100%
Riesgo de envenenamiento
100%
Coincidencia de permisos
90%
Cumplimiento del protocolo
100%

Hallazgos (1)

  • LOWTool 'fetch' suggests web access but openWorldHint=falseen fetch

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~5,434Tokens (definiciones de herramientas)
~13.1 KBTamaño de respuesta típico
Impacto significativo en la atención (4.25% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

{
  "mcpServers": {
    "lectern": {
      "url": "https://lectern-api.restorationcommons.org/mcp"
    }
  }
}

Puntos de conexión remotos

https://lectern-api.restorationcommons.org/mcpstreamable-http

Qué puede hacer

Inventario de herramientas

Herramientas (4)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
🟢search(query, kind, org, collection, date_from, ...)

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 (the shelf: latter-day-saints, church-fathers, bible-texts, bible-study, jewish-antiquity, classics, languages, theology-history, shorthand), org (publisher), date_from and date_to (YYYY, the year the book was printed), doc (one book id, such as jod:01 or npnf2:04-select-works-and-letters, to search inside it). mode="documents" ranks whole books by their hits, for triage. sort="date" puts the latest printed first. limit is 1 to 25; pass next_cursor back as cursor for more. Snippets are short. Read a hit in full with fetch.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "query": {
      "default": "",
      "description": "Words, \"phrases\", prefix*, a NEAR/5 b, -exclude. Empty lists documents.",
      "title": "Query",
      "type": "string"
    },
    "kind": {
      "anyOf": [
        {
          "enum": [
            "paper",
            "system_card",
            "model_card",
            "framework",
            "eval_report",
            "forum_post",
            "blog",
            "article",
            "government",
            "book"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Document kind.",
      "title": "Kind"
    },
    "org": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Publishing organisation, e.g. Anthropic, NIST.",
      "title": "Org"
    },
    "collection": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Collection, e.g. interpretability, evals.",
      "title": "Collection"
    },
    "date_from": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "YYYY or YYYY-MM, inclusive.",
      "title": "Date From"
    },
    "date_to": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "YYYY or YYYY-MM, inclusive.",
      "title": "Date To"
    },
    "doc": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Search inside one document or version, e.g. arxiv:2305.15324.",
      "title": "Doc"
    },
    "mode": {
      "default": "units",
      "description": "units: pages and paragraphs; documents: whole documents ranked by their hits.",
      "enum": [
        "units",
        "documents"
      ],
      "title": "Mode",
      "type": "string"
    },
    "sort": {
      "default": "relevance",
      "enum": [
        "relevance",
        "date"
      ],
      "title": "Sort",
      "type": "string"
    },
    "limit": {
      "default": 10,
      "maximum": 25,
      "minimum": 1,
      "title": "Limit",
      "type": "integer"
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "next_cursor from the previous page.",
      "title": "Cursor"
    }
  },
  "title": "searchArguments"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "query": {
      "title": "Query",
      "type": "string"
    },
    "interpretation": {
      "title": "Interpretation",
      "type": "string"
    },
    "arm": {
      "title": "Arm",
      "type": "string"
    },
    "snapshot": {
      "title": "Snapshot",
      "type": "string"
    },
    "mode": {
      "enum": [
        "units",
        "documents"
      ],
      "title": "Mode",
      "type": "string"
    },
    "total": {
      "title": "Total",
      "type": "integer"
    },
    "hits": {
      "items": {
        "$ref": "#/$defs/Hit"
      },
      "title": "Hits",
      "type": "array"
    },
    "documents": {
      "items": {
        "$ref": "#/$defs/DocumentHit"
      },
      "title": "Documents",
      "type": "array"
    },
    "facets": {
      "additionalProperties": {
        "additionalProperties": {
          "type": "integer"
        },
        "type": "object"
      },
      "title": "Facets",
      "type": "object"
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Next Cursor"
    }
  },
  "required": [
    "query",
    "interpretation",
    "arm",
    "snapshot",
    "mode",
    "total"
  ],
  "$defs": {
    "DocumentHit": {
      "additionalProperties": false,
      "properties": {
        "doc_id": {
          "title": "Doc Id",
          "type": "string"
        },
        "version": {
          "title": "Version",
          "type": "string"
        },
        "title": {
          "title": "Title",
          "type": "string"
        },
        "url": {
          "title": "Url",
          "type": "string"
        },
        "org": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Org"
        },
        "kind": {
          "enum": [
            "paper",
            "system_card",
            "model_card",
            "framework",
            "eval_report",
            "forum_post",
            "blog",
            "article",
            "government",
            "book"
          ],
          "title": "Kind",
          "type": "string"
        },
        "date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Date"
        },
        "tier": {
          "$ref": "#/$defs/Tier"
        },
        "licence": {
          "title": "Licence",
          "type": "string"
        },
        "hit_count": {
          "title": "Hit Count",
          "type": "integer"
        },
        "top": {
          "items": {
            "$ref": "#/$defs/Hit"
          },
          "title": "Top",
          "type": "array"
        }
      },
      "required": [
        "doc_id",
        "version",
        "title",
        "url",
        "org",
        "kind",
        "date",
        "tier",
        "licence",
        "hit_count"
      ],
      "title": "DocumentHit",
      "type": "object"
    },
    "Hit": {
      "additionalProperties": false,
      "description": "One page or paragraph. ``id``, ``title`` and ``url`` are the triple ChatGPT cites from.",
      "properties": {
        "id": {
          "title": "Id",
          "type": "string"
        },
        "title": {
          "title": "Title",
          "type": "string"
        },
        "url": {
          "title": "Url",
          "type": "string"
        },
        "cite": {
          "title": "Cite",
          "type": "string"
        },
        "doc_id": {
          "title": "Doc Id",
          "type": "string"
        },
        "version": {
          "title": "Version",
          "type": "string"
        },
        "anchor": {
          "title": "Anchor",
          "type": "string"
        },
        "anchor_label": {
          "title": "Anchor Label",
          "type": "string"
        },
        "doc_title": {
          "title": "Doc Title",
          "type": "string"
        },
        "org": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Org"
        },
        "kind": {
          "enum": [
            "paper",
            "system_card",
            "model_card",
            "framework",
            "eval_report",
            "forum_post",
            "blog",
            "article",
            "government",
            "book"
          ],
          "title": "Kind",
          "type": "string"
        },
        "date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Date"
        },
        "tier": {
          "$ref": "#/$defs/Tier"
        },
        "licence": {
          "title": "Licence",
          "type": "string"
        },
        "score": {
          "title": "Score",
          "type": "number"
        },
        "snippet": {
          "title": "Snippet",
          "type": "string"
        },
        "match_spans": {
          "items": {
            "maxItems": 2,
            "minItems": 2,
            "prefixItems": [
              {
                "type": "integer"
              },
              {
                "type": "integer"
              }
            ],
            "type": "array"
          },
          "title": "Match Spans",
          "type": "array"
        },
        "source_url": {
          "title": "Source Url",
          "type": "string"
        }
      },
      "required": [
        "id",
        "title",
        "url",
        "cite",
        "doc_id",
        "version",
        "anchor",
        "anchor_label",
        "doc_title",
        "org",
        "kind",
        "date",
        "tier",
        "licence",
        "score",
        "snippet",
        "source_url"
      ],
      "title": "Hit",
      "type": "object"
    },
    "Tier": {
      "enum": [
        "open",
        "link_only"
      ],
      "title": "Tier",
      "type": "string"
    }
  },
  "additionalProperties": false,
  "title": "SearchResponse"
}
🟢fetch(id, view, max_tokens)

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. Page numbers are pages of the scan (p1 is its first image), not the book's printed page numbers, which a page's text usually shows at its top or foot. When you cite for a person, give the printed page too if you can read it.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "id": {
      "description": "A document id, a cite string such as arxiv:2305.15324/v2/p6, a range of up to 8 units, or a result url.",
      "title": "Id",
      "type": "string"
    },
    "view": {
      "default": "text",
      "description": "image adds page image links (open PDFs).",
      "enum": [
        "text",
        "image"
      ],
      "title": "View",
      "type": "string"
    },
    "max_tokens": {
      "default": 6000,
      "maximum": 16000,
      "minimum": 500,
      "title": "Max Tokens",
      "type": "integer"
    }
  },
  "required": [
    "id"
  ],
  "title": "fetchArguments"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "id": {
      "title": "Id",
      "type": "string"
    },
    "document": {
      "$ref": "#/$defs/DocumentCard"
    },
    "units": {
      "items": {
        "$ref": "#/$defs/UnitText"
      },
      "title": "Units",
      "type": "array"
    },
    "truncated": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Truncated"
    },
    "title": {
      "title": "Title",
      "type": "string"
    },
    "text": {
      "title": "Text",
      "type": "string"
    },
    "url": {
      "title": "Url",
      "type": "string"
    },
    "metadata": {
      "additionalProperties": {
        "type": "string"
      },
      "title": "Metadata",
      "type": "object"
    }
  },
  "required": [
    "id",
    "document",
    "title",
    "text",
    "url"
  ],
  "$defs": {
    "DocumentCard": {
      "additionalProperties": false,
      "properties": {
        "doc_id": {
          "title": "Doc Id",
          "type": "string"
        },
        "title": {
          "title": "Title",
          "type": "string"
        },
        "url": {
          "title": "Url",
          "type": "string"
        },
        "authors": {
          "items": {
            "type": "string"
          },
          "title": "Authors",
          "type": "array"
        },
        "org": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Org"
        },
        "kind": {
          "enum": [
            "paper",
            "system_card",
            "model_card",
            "framework",
            "eval_report",
            "forum_post",
            "blog",
            "article",
            "government",
            "book"
          ],
          "title": "Kind",
          "type": "string"
        },
        "collection": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Collection"
        },
        "published": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Published"
        },
        "source_url": {
          "title": "Source Url",
          "type": "string"
        },
        "version": {
          "title": "Version",
          "type": "string"
        },
        "versions": {
          "items": {
            "$ref": "#/$defs/VersionSummary"
          },
          "title": "Versions",
          "type": "array"
        },
        "tier": {
          "$ref": "#/$defs/Tier"
        },
        "licence": {
          "title": "Licence",
          "type": "string"
        },
        "anchor_kind": {
          "enum": [
            "page",
            "block"
          ],
          "title": "Anchor Kind",
          "type": "string"
        },
        "fidelity": {
          "enum": [
            "text_layer",
            "html",
            "ocr"
          ],
          "title": "Fidelity",
          "type": "string"
        },
        "unit_count": {
          "title": "Unit Count",
          "type": "integer"
        },
        "outline": {
          "items": {
            "$ref": "#/$defs/OutlineItem"
          },
          "title": "Outline",
          "type": "array"
        },
        "licence_evidence": {
          "anyOf": [
            {
              "$ref": "#/$defs/LicenceEvidence"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "summary": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Summary"
        }
      },
      "required": [
        "doc_id",
        "title",
        "url",
        "authors",
        "org",
        "kind",
        "collection",
        "published",
        "source_url",
        "version",
        "versions",
        "tier",
        "licence",
        "anchor_kind",
        "fidelity",
        "unit_count",
        "outline"
      ],
      "title": "DocumentCard",
      "type": "object"
    },
    "LicenceEvidence": {
      "additionalProperties": false,
      "description": "How we know a version's licence: what the record page shows under \"Licence\".",
      "properties": {
        "kind": {
          "title": "Kind",
          "type": "string"
        },
        "url": {
          "title": "Url",
          "type": "string"
        },
        "quote": {
          "title": "Quote",
          "type": "string"
        },
        "observed_at": {
          "title": "Observed At",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "url",
        "quote",
        "observed_at"
      ],
      "title": "LicenceEvidence",
      "type": "object"
    },
    "OutlineItem": {
      "additionalProperties": false,
      "properties": {
        "level": {
          "title": "Level",
          "type": "integer"
        },
        "title": {
          "title": "Title",
          "type": "string"
        },
        "anchor": {
          "title": "Anchor",
          "type": "string"
        },
        "cite": {
          "title": "Cite",
          "type": "string"
        },
        "url": {
          "title": "Url",
          "type": "string"
        }
      },
      "required": [
        "level",
        "title",
        "anchor",
        "cite",
        "url"
      ],
      "title": "OutlineItem",
      "type": "object"
    },
    "Tier": {
      "enum": [
        "open",
        "link_only"
      ],
      "title": "Tier",
      "type": "string"
    },
    "UnitText": {
      "additionalProperties": false,
      "properties": {
        "cite": {
          "title": "Cite",
          "type": "string"
        },
        "url": {
          "title": "Url",
          "type": "string"
        },
        "anchor": {
          "title": "Anchor",
          "type": "string"
        },
        "anchor_label": {
          "title": "Anchor Label",
          "type": "string"
        },
        "tier": {
          "$ref": "#/$defs/Tier"
        },
        "text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Text"
        },
        "excerpt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Excerpt"
        },
        "source_url": {
          "title": "Source Url",
          "type": "string"
        },
        "image_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Image Url"
        },
        "kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Kind"
        },
        "level": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Level"
        },
        "spine_start": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Spine Start"
        },
        "spine_end": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Spine End"
        },
        "width": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Width"
        },
        "height": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Height"
        },
        "words": {
          "anyOf": [
            {
              "items": {
                "maxItems": 6,
                "minItems": 6,
                "prefixItems": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "integer"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  }
                ],
                "type": "array"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Words"
        }
      },
      "required": [
        "cite",
        "url",
        "anchor",
        "anchor_label",
        "tier",
        "text",
        "source_url"
      ],
      "title": "UnitText",
      "type": "object"
    },
    "VersionSummary": {
      "additionalProperties": false,
      "properties": {
        "version": {
          "title": "Version",
          "type": "string"
        },
        "published": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Published"
        },
        "observed_at": {
          "title": "Observed At",
          "type": "string"
        },
        "tier": {
          "$ref": "#/$defs/Tier"
        },
        "licence": {
          "title": "Licence",
          "type": "string"
        },
        "url": {
          "title": "Url",
          "type": "string"
        },
        "latest": {
          "title": "Latest",
          "type": "boolean"
        }
      },
      "required": [
        "version",
        "published",
        "observed_at",
        "tier",
        "licence",
        "url",
        "latest"
      ],
      "title": "VersionSummary",
      "type": "object"
    }
  },
  "additionalProperties": false,
  "title": "FetchResult"
}
🟢verify_quote(quote, cite, doc)

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 words are not there. A famous line is often quoted in a later paraphrase: check it against the page, and quote the page. Without cite, pass doc to check against a whole book, or neither to search the whole library for the passage. The check is code, not a model: deterministic and exact. The text is OCR, so a near_miss on an old spelling or a misread letter is worth a look at the page image.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "quote": {
      "description": "The exact words you intend to put in quotation marks; '...' joins fragments.",
      "title": "Quote",
      "type": "string"
    },
    "cite": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The cite string or url you will attach to it.",
      "title": "Cite"
    },
    "doc": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Without cite: check against this whole document.",
      "title": "Doc"
    }
  },
  "required": [
    "quote"
  ],
  "title": "verify_quoteArguments"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "quote": {
      "title": "Quote",
      "type": "string"
    },
    "cite": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cite"
    },
    "verdict": {
      "$ref": "#/$defs/Verdict"
    },
    "passed": {
      "title": "Passed",
      "type": "boolean"
    },
    "reason": {
      "title": "Reason",
      "type": "string"
    },
    "tier": {
      "$ref": "#/$defs/Tier"
    },
    "fidelity": {
      "enum": [
        "text_layer",
        "html",
        "ocr"
      ],
      "title": "Fidelity",
      "type": "string"
    },
    "locations": {
      "items": {
        "$ref": "#/$defs/QuoteLocation"
      },
      "title": "Locations",
      "type": "array"
    },
    "segments": {
      "items": {
        "$ref": "#/$defs/QuoteSegment"
      },
      "title": "Segments",
      "type": "array"
    },
    "ambiguous": {
      "default": false,
      "title": "Ambiguous",
      "type": "boolean"
    },
    "other_locations": {
      "items": {
        "$ref": "#/$defs/QuoteLocation"
      },
      "title": "Other Locations",
      "type": "array"
    }
  },
  "required": [
    "quote",
    "cite",
    "verdict",
    "passed",
    "reason",
    "tier",
    "fidelity",
    "locations",
    "segments"
  ],
  "$defs": {
    "QuoteDiff": {
      "additionalProperties": false,
      "properties": {
        "op": {
          "enum": [
            "replace",
            "delete",
            "insert"
          ],
          "title": "Op",
          "type": "string"
        },
        "quote": {
          "title": "Quote",
          "type": "string"
        },
        "source": {
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "op",
        "quote",
        "source"
      ],
      "title": "QuoteDiff",
      "type": "object"
    },
    "QuoteLocation": {
      "additionalProperties": false,
      "properties": {
        "cite": {
          "title": "Cite",
          "type": "string"
        },
        "url": {
          "title": "Url",
          "type": "string"
        },
        "anchor": {
          "title": "Anchor",
          "type": "string"
        },
        "spine_start": {
          "title": "Spine Start",
          "type": "integer"
        },
        "spine_end": {
          "title": "Spine End",
          "type": "integer"
        },
        "text": {
          "title": "Text",
          "type": "string"
        },
        "anchor_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Anchor Label"
        }
      },
      "required": [
        "cite",
        "url",
        "anchor",
        "spine_start",
        "spine_end",
        "text"
      ],
      "title": "QuoteLocation",
      "type": "object"
    },
    "QuoteSegment": {
      "additionalProperties": false,
      "properties": {
        "quote": {
          "title": "Quote",
          "type": "string"
        },
        "verdict": {
          "$ref": "#/$defs/Verdict"
        },
        "location": {
          "anyOf": [
            {
              "$ref": "#/$defs/QuoteLocation"
            },
            {
              "type": "null"
            }
          ]
        },
        "diff": {
          "items": {
            "$ref": "#/$defs/QuoteDiff"
          },
          "title": "Diff",
          "type": "array"
        },
        "similarity": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Similarity"
        }
      },
      "required": [
        "quote",
        "verdict",
        "location"
      ],
      "title": "QuoteSegment",
      "type": "object"
    },
    "Tier": {
      "enum": [
        "open",
        "link_only"
      ],
      "title": "Tier",
      "type": "string"
    },
    "Verdict": {
      "description": "The one verdict vocabulary. Only the first two pass.",
      "enum": [
        "exact",
        "normalized",
        "elsewhere",
        "near_miss",
        "not_found"
      ],
      "title": "Verdict",
      "type": "string"
    }
  },
  "additionalProperties": false,
  "title": "QuoteCheck"
}
🟢check_answer(text)

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 that.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "text": {
      "description": "The draft answer, in markdown, with its citations and quotations.",
      "title": "Text",
      "type": "string"
    }
  },
  "required": [
    "text"
  ],
  "title": "check_answerArguments"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "citations": {
      "items": {
        "$ref": "#/$defs/CitationAudit"
      },
      "title": "Citations",
      "type": "array"
    },
    "unattached_quotes": {
      "items": {
        "type": "string"
      },
      "title": "Unattached Quotes",
      "type": "array"
    },
    "citation_count": {
      "title": "Citation Count",
      "type": "integer"
    },
    "resolved_count": {
      "title": "Resolved Count",
      "type": "integer"
    },
    "quote_count": {
      "title": "Quote Count",
      "type": "integer"
    },
    "passed_count": {
      "title": "Passed Count",
      "type": "integer"
    },
    "verdict_counts": {
      "additionalProperties": {
        "type": "integer"
      },
      "title": "Verdict Counts",
      "type": "object"
    },
    "summary": {
      "title": "Summary",
      "type": "string"
    },
    "support_checked": {
      "const": false,
      "default": false,
      "title": "Support Checked",
      "type": "boolean"
    }
  },
  "required": [
    "citations",
    "citation_count",
    "resolved_count",
    "quote_count",
    "passed_count",
    "verdict_counts",
    "summary"
  ],
  "$defs": {
    "CitationAudit": {
      "additionalProperties": false,
      "properties": {
        "raw": {
          "title": "Raw",
          "type": "string"
        },
        "cite": {
          "title": "Cite",
          "type": "string"
        },
        "url": {
          "title": "Url",
          "type": "string"
        },
        "resolves": {
          "title": "Resolves",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "tier": {
          "anyOf": [
            {
              "$ref": "#/$defs/Tier"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "anchor_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Anchor Label"
        },
        "quotes": {
          "items": {
            "$ref": "#/$defs/QuoteAudit"
          },
          "title": "Quotes",
          "type": "array"
        }
      },
      "required": [
        "raw",
        "cite",
        "url",
        "resolves"
      ],
      "title": "CitationAudit",
      "type": "object"
    },
    "QuoteAudit": {
      "additionalProperties": false,
      "properties": {
        "quote": {
          "title": "Quote",
          "type": "string"
        },
        "check": {
          "anyOf": [
            {
              "$ref": "#/$defs/QuoteCheck"
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        }
      },
      "required": [
        "quote",
        "check"
      ],
      "title": "QuoteAudit",
      "type": "object"
    },
    "QuoteCheck": {
      "additionalProperties": false,
      "properties": {
        "quote": {
          "title": "Quote",
          "type": "string"
        },
        "cite": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cite"
        },
        "verdict": {
          "$ref": "#/$defs/Verdict"
        },
        "passed": {
          "title": "Passed",
          "type": "boolean"
        },
        "reason": {
          "title": "Reason",
          "type": "string"
        },
        "tier": {
          "$ref": "#/$defs/Tier"
        },
        "fidelity": {
          "enum": [
            "text_layer",
            "html",
            "ocr"
          ],
          "title": "Fidelity",
          "type": "string"
        },
        "locations": {
          "items": {
            "$ref": "#/$defs/QuoteLocation"
          },
          "title": "Locations",
          "type": "array"
        },
        "segments": {
          "items": {
            "$ref": "#/$defs/QuoteSegment"
          },
          "title": "Segments",
          "type": "array"
        },
        "ambiguous": {
          "default": false,
          "title": "Ambiguous",
          "type": "boolean"
        },
        "other_locations": {
          "items": {
            "$ref": "#/$defs/QuoteLocation"
          },
          "title": "Other Locations",
          "type": "array"
        }
      },
      "required": [
        "quote",
        "cite",
        "verdict",
        "passed",
        "reason",
        "tier",
        "fidelity",
        "locations",
        "segments"
      ],
      "title": "QuoteCheck",
      "type": "object"
    },
    "QuoteDiff": {
      "additionalProperties": false,
      "properties": {
        "op": {
          "enum": [
            "replace",
            "delete",
            "insert"
          ],
          "title": "Op",
          "type": "string"
        },
        "quote": {
          "title": "Quote",
          "type": "string"
        },
        "source": {
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "op",
        "quote",
        "source"
      ],
      "title": "QuoteDiff",
      "type": "object"
    },
    "QuoteLocation": {
      "additionalProperties": false,
      "properties": {
        "cite": {
          "title": "Cite",
          "type": "string"
        },
        "url": {
          "title": "Url",
          "type": "string"
        },
        "anchor": {
          "title": "Anchor",
          "type": "string"
        },
        "spine_start": {
          "title": "Spine Start",
          "type": "integer"
        },
        "spine_end": {
          "title": "Spine End",
          "type": "integer"
        },
        "text": {
          "title": "Text",
          "type": "string"
        },
        "anchor_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Anchor Label"
        }
      },
      "required": [
        "cite",
        "url",
        "anchor",
        "spine_start",
        "spine_end",
        "text"
      ],
      "title": "QuoteLocation",
      "type": "object"
    },
    "QuoteSegment": {
      "additionalProperties": false,
      "properties": {
        "quote": {
          "title": "Quote",
          "type": "string"
        },
        "verdict": {
          "$ref": "#/$defs/Verdict"
        },
        "location": {
          "anyOf": [
            {
              "$ref": "#/$defs/QuoteLocation"
            },
            {
              "type": "null"
            }
          ]
        },
        "diff": {
          "items": {
            "$ref": "#/$defs/QuoteDiff"
          },
          "title": "Diff",
          "type": "array"
        },
        "similarity": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Similarity"
        }
      },
      "required": [
        "quote",
        "verdict",
        "location"
      ],
      "title": "QuoteSegment",
      "type": "object"
    },
    "Tier": {
      "enum": [
        "open",
        "link_only"
      ],
      "title": "Tier",
      "type": "string"
    },
    "Verdict": {
      "description": "The one verdict vocabulary. Only the first two pass.",
      "enum": [
        "exact",
        "normalized",
        "elsewhere",
        "near_miss",
        "not_found"
      ],
      "title": "Verdict",
      "type": "string"
    }
  },
  "additionalProperties": false,
  "description": "The deterministic audit of a draft answer. It does not judge whether a cited page\nsupports the claim made about it; ``support_checked`` is always False to say so.",
  "title": "AnswerAudit"
}

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada4 herramientas