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

Find documents similar to a document.

GET/api/v1/documents/{document_id}/similar-documentsdocuments:read
注記

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

The documents whose text (match_type textual, with the matching snippet) or pages (match_type visual, with the page) look like the seed's, as the Explorer's Find similar shows them, best score first (score 0 to 1). text_limit (1 to 100, default 20) and visual_limit (1 to 50, default 10) cap each kind before the list is paged. Every match is read through the caller's document access. Needs Find Similar Documents, View Document Metadata, View Document Text and View Document Content. Needs the organisation's document embeddings: without them the list is empty. match_type narrows the list to one kind.

スコープdocuments:read
非同期いいえ
MCP ツールlist_document_similar_documents
Portal の権限find_similar_documents, view_document_metadata, view_document_text, view_document_content
ページングsnapshot
既定の並び順-score, document_id
並べ替えに使えるフィールドscore, document_id
フィルターmatch_type

パラメーター​

名前場所型必須説明
document_idpathstring必須
text_limitqueryinteger または null任意How many textual matches to read, 1 to 100; 20 when left out.
visual_limitqueryinteger または null任意How many visual matches to read, 1 to 50; 10 when left out.
limitqueryinteger任意既定値: 50; ≥ 1
cursorquerystring任意
sortquerystring任意Comma-separated sort fields, - for descending.
match_typequerystring の配列任意
Docwize-Versionheaderstring (date)任意
If-None-Matchheaderstring任意Answers 304 when the representation is unchanged (resources that publish an ETag).

応答​

ステータス説明本文
200Success.application/json object
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
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 の本文​

フィールド型必須説明
itemsSimilarDocument の配列必須
next_cursorstring または null必須
warningsobject の配列必須

エラー​

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

スキーマ​

SimilarDocument​

フィールド型必須説明
descriptionstring または null必須
document_idstring必須
image_typestring または null必須The file type the Portal stored for the document.
match_typestring必須textual or visual.
pageinteger または null必須For a visual match: the page that matched.
reference_numberstring または null必須
scorenumber必須0 to 1, higher is more alike.
snippetstring または null必須For a textual match: the passage that matched.