get_document_topics
Retrieve the topics assigned to a document, including probabilities and top words. Identifies the document's topic membership for LDA, NMF, or BERTopic models.
Instructions
Get topics assigned to a specific document, including probabilities and top words for each topic. Shows which topics the document belongs to.
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": {
"doc_id": "<doc_id>"
},
"name": "get_document_topics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | Document ID | |
| model_type | No | Topic model type: 'lda', 'nmf', or 'bertopic' (optional) |