Get a passage clustering with its topics.
Needs View Own Clustering Sessions, Reload Own Clustering Sessions, View Clustering Topics and View Clustering Fragments. A clustering and, once it has completed, its topic tree: each topic's keyword label, its place in the tree (kind topic is a leaf the model found, cluster a node that merges topics; topic_id -1 is the model's outlier topic), how many passages are at or under it and the passages that stand for it (read them with list_passages). The tree is empty while the clustering is pending or running. Another user's clustering is 404.
| |
|---|
| Scope | documents:search |
| Asynchronous | No |
| MCP tool | get_passage_clustering |
| Portal permissions | view_own_clustering_sessions, reload_own_clustering_sessions, view_clustering_topics, view_clustering_fragments |
Parameters
| Name | In | Type | Required | Description |
|---|
passage_clustering_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
PassageClustering
| Field | Type | Required | Description |
|---|
completed_at | string (date-time) or null | Required | Null until the clustering has completed. |
created_at | string (date-time) or null | Required | |
name | string | Required | The query it clustered, up to 120 characters. |
passage_clustering_id | string | Required | |
passage_count | integer | Required | The passages clustered; 0 until completed. ≥ -2147483648; ≤ 2147483647 |
query | string or null | Required | The search that was clustered; null until completed, and for an Oliver search result without a query. |
search_mode | string or null | Required | meaning or exact; null until completed. |
status | string | Required | pending, running, completed or failed. failed means the clustering ended without topics (the model found nothing to cluster, or the job raised); make another. A clustering still pending or running long after it was made was lost with its worker. |
topics | array of PassageTopic | Required | The topic tree; empty until completed. |
PassageTopic
| Field | Type | Required | Description |
|---|
kind | string | Required | topic (a leaf the model found) or cluster (a node that merges topics). |
label | array of string | Required | The topic's keywords. |
parent_topic_id | string or null | Required | The node above it; null for a root. |
passage_count | integer | Required | The passages at or under the node. ≥ -2147483648; ≤ 2147483647 |
representative_passage_ids | array of string | Required | The passages that stand for the topic; read them with list_passages. |
topic_id | string | Required | Names the topic within its clustering; -1 is the model's outlier topic. |