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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | Document ID | |
| model_type | No | Topic model type: 'lda', 'nmf', or 'bertopic' (optional) |