Summarize Document
summarize_documentTuatara Summarize: extractive summary of a document. Returns the document's own sentences, chosen by a vector-association model, cut to sentence_count, a ratio of the sentences or a token budget; nothing is generated, so the summary cannot add facts. Use it to shrink long text before passing it to a chat model. Up to 200,000 characters per call; no account needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto (default), faithful, gs1, gs2, best, tuned or tuned-best | |
| text | Yes | the document (plain text or HTML) | |
| order | No | document (default: original order) or rank (best first) | |
| ratio | No | share of the sentences to keep, 0.05-0.9 (e.g. 0.2) | |
| max_tokens | No | token budget for the summary (cl100k tokens) | |
| sentence_count | No | number of sentences to keep (1-500) | |
| context_control | No | one word to steer the summary toward a subject | |
| context_control_sensitivity_level | No | 0-10, how strongly the word steers (default 2) |