ナレッジベース内のファイルシャードのリストを照会します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
polardb:DescribeKnowledgeBaseFileShards |
get |
*All resources.
|
なし | なし |
リクエスト構文
POST HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
リージョン ID。 |
cn-beijing |
| KnowledgeBaseId |
string |
必須 |
ナレッジベースの一意の識別子。 |
pkb-xxxxx |
| FileId |
string |
必須 |
ファイル ID。 |
xxxx-xxxx-xxxx-xxxx |
| PageNumber |
integer |
任意 |
ページ番号。 |
1 |
| PageSize |
integer |
任意 |
1 ページあたりのエントリ数。 |
30 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答のスキーマ。 |
||
| PageNumber |
integer |
現在のページ番号。 |
1 |
| PageRecordCount |
integer |
現在のページのエントリ数。 |
10 |
| PageSize |
integer |
ページングクエリにおける 1 ページあたりのエントリ数。 |
30 |
| RequestId |
string |
リクエスト ID。 |
3E5CD764-xxxx-xxxx-xxxx-20E0DE84B2AF |
| Shards |
array<object> |
シャード情報。 |
|
|
array<object> |
|||
| Captions |
array |
シャードに関連付けられた図または表の字幕のリスト。 |
|
|
string |
図または表の字幕。 |
System architecture diagram |
|
| DocItems |
array |
シャードに関連付けられたソースドキュメントの構造化要素リファレンスのリスト。元の要素を正確に特定するために使用できます。 |
|
|
string |
ソースドキュメントの構造化要素リファレンス。 |
#/texts/2 |
|
| Headings |
array |
シャードが属するセクション見出しチェーン。 |
|
|
string |
見出し。 |
Overview |
|
| ImageResources |
array<object> |
シャードによってリファレンスされるイメージリソースのリスト。 |
|
|
object |
イメージリソース。 |
||
| DocumentIndex |
integer |
イメージが属するソースドキュメントのインデックス。0 から始まります。 |
0 |
| Id |
string |
イメージリソースの一意の識別子。 |
document-0/pictures/1 |
| ItemRef |
string |
ソースドキュメント構造内のイメージの要素リファレンス。 |
#/pictures/1 |
| MimeType |
string |
イメージリソースの MIME タイプ。 |
image/png |
| Uri |
string |
イメージリソースの OSS URI。 |
oss://my-bucket/results/my-space/doc-001/artifacts/image-1.png |
| PageNumbers |
array |
シャードが属するページ番号のリスト。 |
|
|
string |
ページ番号。 |
1 |
|
| ShardContent |
string |
シャードのテキストコンテンツ。 |
****** |
| ShardIndex |
integer |
シャードのインデックス。 |
1 |
| SourceUri |
string |
ソースドキュメントの URI。 |
https://example.com/source.pdf |
| TotalRecordCount |
integer |
エントリの総数。 |
10 |
例
成功レスポンス
JSONJSON
{
"PageNumber": 1,
"PageRecordCount": 10,
"PageSize": 30,
"RequestId": "3E5CD764-xxxx-xxxx-xxxx-20E0DE84B2AF",
"Shards": [
{
"Captions": [
"System architecture diagram"
],
"DocItems": [
"#/texts/2"
],
"Headings": [
"Overview"
],
"ImageResources": [
{
"DocumentIndex": 0,
"Id": "document-0/pictures/1",
"ItemRef": "#/pictures/1",
"MimeType": "image/png",
"Uri": "oss://my-bucket/results/my-space/doc-001/artifacts/image-1.png"
}
],
"PageNumbers": [
"1"
],
"ShardContent": "******",
"ShardIndex": 1,
"SourceUri": "https://example.com/source.pdf"
}
],
"TotalRecordCount": 10
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。