Topic Of Document
topic_of_documentTuatara Topics: place one document on the served topic sets — general (Wikipedia-scale) and finance (markets, companies, the economy) — and return the topics it belongs to with their weights, which set placed it, its confidence (the top topic's weight) and on_topic_set (false when nothing served covers the text). Nothing is stored.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document": "<document>"
},
"name": "topic_of_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | the document (plain text) | |
| num_words | No | words per topic, 3-30 (default 15) | |
| topic_set | No | auto (default: the set that takes the document most confidently), general or finance |