メインコンテンツまでスキップ

Cluster the passages of a search into topics.

POST/api/v1/passage-clusteringsdocuments:search
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

Runs search (the members of search_passages, and max_passages, how many passages to read, 5000 when left out) and clusters what it finds into a topic tree in the background, as the clustering app does; no LLM answer is asked for. The clustering is answered pending: get_passage_clustering shows its topics when it has completed. Needs Run Document Clustering, View Document Text and View Own Clustering Sessions, and Search Semantic for mode meaning or Search Full Text for mode exact, and at least 4 passages (422 otherwise). The clustering is the caller's own and stays in list_passage_clusterings.

スコープdocuments:search
非同期いいえ
MCP ツールcreate_passage_clustering
Portal の権限run_document_clustering, view_document_text, view_own_clustering_sessions

パラメーター​

名前場所型必須説明
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonPassageClusteringCreateInput

応答​

ステータス説明本文
201Success.application/json PassageClustering または object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/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

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

PassageClustering​

フィールド型必須説明
completed_atstring (date-time) または null必須Null until the clustering has completed.
created_atstring (date-time) または null必須
namestring必須The query it clustered, up to 120 characters.
passage_clustering_idstring必須
passage_countinteger必須The passages clustered; 0 until completed. ≥ -2147483648; ≤ 2147483647
querystring または null必須The search that was clustered; null until completed, and for an Oliver search result without a query.
search_modestring または null必須meaning or exact; null until completed.
statusstring必須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.
topicsPassageTopic の配列必須The topic tree; empty until completed.

PassageClusteringCreateInput​

フィールド型必須説明
searchPassageClusteringSearchInput必須The search whose passages to cluster.

PassageClusteringSearchInput​

フィールド型必須説明
filterobject または null任意A tree of and, or, not and {field, op, value} leaves: the fields document_number, document_date, document_type, project, description, image_type, main_document_number, created_by, from_organisation, folder and tag, or custom_field.<custom_field_id> for a register column; ops eq, ne, in, gt, gte, lt, lte, contains, starts_with, ends_with.
max_passagesinteger または null任意How many passages to read and cluster, 5000 when left out.
modestring必須meaning (the chunks nearest the query's meaning) or exact (the document texts holding the query's words).
querystring必須What to look for: a sentence for meaning, words for exact (words, "exact phrase", OR, -exclude).

PassageTopic​

フィールド型必須説明
kindstring必須topic (a leaf the model found) or cluster (a node that merges topics).
labelstring の配列必須The topic's keywords.
parent_topic_idstring または null必須The node above it; null for a root.
passage_countinteger必須The passages at or under the node. ≥ -2147483648; ≤ 2147483647
representative_passage_idsstring の配列必須The passages that stand for the topic; read them with list_passages.
topic_idstring必須Names the topic within its clustering; -1 is the model's outlier topic.