ドキュメントの内容を取得
Last updated
Last updated
document_id
整数
必須。 コンテンツを取得するためのドキュメントのID。
start_chunk
整数
開始チャンクインデックス。デフォルトは0です。
end_chunk
整数
終了チャンクインデックス。デフォルトはstart_chunk + 20です。
404
ドキュメントが見つかりません
500
サーバー内部エラー
大きなドキュメントの場合、コンテンツはチャンクに分割されます。複数のリクエストを行うことで、完全なドキュメントを取得できます:
start_chunk=0
で初期リクエストを行います
戻されたend_chunk
値を次のリクエストのstart_chunk
として使用します
すべてのチャンクを取得するまで続けます
このエンドポイントはドキュメントの生のテキストコンテンツを返し、詳細な処理や分析のために完全な情報にアクセスできるようにします。
Returns the content of the document with the specified ID, along with the index of the latest retrieved chunk. Each call fetches up to 20 chunks. To get more, use the end_chunk value from the response as the start_chunk for the next call.
The ID of the document to retrieve contents for.
Indicate the starting chunk that you want to retrieve. If not specified, the default value is 0.
Indicate the ending chunk that you want to retrieve. If not specified, the default value is start_chunk + 20.