Cluster the passages of an Oliver search result into topics.
POST/api/v1/oliver-artifacts/{oliver_artifact_id}/passage-clusteringsoliver:run
Clusters the documents of an Oliver search_result_set artifact (a search Oliver ran for the caller) into a topic tree in the background, reusing the passages the search found with no new search: the Oliver chat's Cluster button. Needs Run Oliver Clustering, View Oliver Artifacts and View Own Clustering Sessions. Only the owner of the artifact's run can cluster it (404 otherwise, also for an artifact of another type). Needs at least 4 clusterable passages (422 otherwise). The answer is the clustering, pending: get_passage_clustering shows its topics when it has completed.
| Scope | oliver:run |
| Asynchronous | No |
| MCP tool | create_oliver_artifact_passage_clustering |
| Portal permissions | run_oliver_clustering, view_oliver_artifacts, view_own_clustering_sessions |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
oliver_artifact_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Responses
| Status | Description | Body |
|---|---|---|
201 | Success. | application/json PassageClustering or object |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | idempotency_in_progress | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
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. |