Skip to main content

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.

Scopeoliver:run
AsynchronousNo
MCP toolcreate_oliver_artifact_passage_clustering
Portal permissionsrun_oliver_clustering, view_oliver_artifacts, view_own_clustering_sessions

Parameters​

NameInTypeRequiredDescription
oliver_artifact_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Responses​

StatusDescriptionBody
201Success.application/json PassageClustering or object
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409idempotency_in_progressapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

PassageClustering​

FieldTypeRequiredDescription
completed_atstring (date-time) or nullRequiredNull until the clustering has completed.
created_atstring (date-time) or nullRequired
namestringRequiredThe query it clustered, up to 120 characters.
passage_clustering_idstringRequired
passage_countintegerRequiredThe passages clustered; 0 until completed. ≥ -2147483648; ≤ 2147483647
querystring or nullRequiredThe search that was clustered; null until completed, and for an Oliver search result without a query.
search_modestring or nullRequiredmeaning or exact; null until completed.
statusstringRequiredpending, 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.
topicsarray of PassageTopicRequiredThe topic tree; empty until completed.

PassageTopic​

FieldTypeRequiredDescription
kindstringRequiredtopic (a leaf the model found) or cluster (a node that merges topics).
labelarray of stringRequiredThe topic's keywords.
parent_topic_idstring or nullRequiredThe node above it; null for a root.
passage_countintegerRequiredThe passages at or under the node. ≥ -2147483648; ≤ 2147483647
representative_passage_idsarray of stringRequiredThe passages that stand for the topic; read them with list_passages.
topic_idstringRequiredNames the topic within its clustering; -1 is the model's outlier topic.