Skip to main content

Get a passage clustering with its topics.

GET/api/v1/passage-clusterings/{passage_clustering_id}documents:search

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.

Scopedocuments:search
AsynchronousNo
MCP toolget_passage_clustering
Portal permissionsview_own_clustering_sessions, reload_own_clustering_sessions, view_clustering_topics, view_clustering_fragments

Parameters​

NameInTypeRequiredDescription
passage_clustering_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json PassageClustering
304Not modified (If-None-Match matched the ETag).
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
421wrong_regionapplication/problem+json Problem
422validation_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.