単一四捨五入のナレッジベース質問応答タスクの結果を照会します。
今すぐお試しください
テスト
RAM 認証
リクエスト構文
POST HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
リージョン ID。 |
cn-beijing |
| KnowledgeBaseId |
string |
必須 |
ナレッジベースの一意な ID。 |
pkb-xxxxx |
| QueryId |
string |
必須 |
Q&A タスクの一意な ID。 |
R3BGbnBqcXN******.2a5a23c9-******-179970533d30 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスのスキーマ。 |
||
| AgentId |
string |
エージェント ID。 |
****** |
| Answer |
string |
回答内容。 |
財務レポートの概要は次のとおりです: ****** |
| CompletionTokens |
integer |
コンプリート用に生成されたトークンの累積数。 |
3935 |
| ErrorMessage |
string |
エラーメッセージ。 |
スペースが見つかりません: pks-xxxx |
| ErrorType |
string |
エラータイプ。 |
not_found |
| LLMModelId |
string |
large 言語モデルの ID。 |
OO1A6p8B******_xPUC |
| PromptTokens |
integer |
プロンプトによって消費されたトークンの累積数。 |
2459 |
| QueryId |
string |
Q&A タスクの一意な ID。 |
R3BGbnBqcXN******.2a5a23c9-******-179970533d30 |
| RequestId |
string |
リクエストの ID。 |
CDB3258F-B5DE-43C4-8935-CBA0CA****** |
| Sources |
array<object> |
回答のリファレンスソースのリスト。 |
|
|
array<object> |
回答のリファレンスソース情報。 |
||
| ChunkMetadata |
object |
チャンクメタデータ。 |
{} |
| FileId |
string |
ファイルの ID。 |
91b97b71-xxxx-xxxx-xxxx-33c6a6341cdc |
| FileName |
string |
ファイル名。 |
FinancialReport.pdf |
| ImageResources |
array<object> |
Q&A においてリファレンスされたチャンクに関連付けられたイメージリソースのリスト。 |
|
|
object |
イメージリソース。 |
||
| DocumentIndex |
integer |
0 から始まる、イメージが属するソースドキュメントのインデックス。 |
0 |
| Id |
string |
イメージリソースの一意な ID。 |
ドキュメント-0/pictures/1 |
| ItemRef |
string |
Docling ソースドキュメント構造内のイメージの要素リファレンス。 |
#/pictures/1 |
| MimeType |
string |
イメージリソースのメディアタイプ。 |
イメージ/png |
| Uri |
string |
イメージリソースの OSS URI。 |
oss://my-bucket/results/my-space/doc-001/artifacts/イメージ-1.png |
| KnowledgeBaseId |
string |
ナレッジベースの一意な ID。 |
pkb-xxxxx |
| Metadata |
object |
ドキュメントメタデータ。 |
{} |
| PageNumbers |
array |
チャンクが属するページ番号のリスト。 |
|
|
integer |
チャンクが属するページ番号。 |
2 |
|
| ShardContent |
string |
チャンクコンテンツ。 |
FinancialReport |
| ShardIndex |
integer |
チャンクの ID。 |
8 |
| SimilarityScore |
number |
類似度スコア。 |
0.75 |
| SourceId |
integer |
ソースの ID。 |
1 |
| Status |
string |
Q&A タスクのステータス。有効な値:
|
COMPLETED |
例
成功レスポンス
JSONJSON
{
"AgentId": "******",
"Answer": "The financial report is summarized as follows: ******",
"CompletionTokens": 3935,
"ErrorMessage": "Space not found: pks-xxxx",
"ErrorType": "not_found",
"LLMModelId": "OO1A6p8B******_xPUC",
"PromptTokens": 2459,
"QueryId": "R3BGbnBqcXN******.2a5a23c9-******-179970533d30",
"RequestId": "CDB3258F-B5DE-43C4-8935-CBA0CA******",
"Sources": [
{
"ChunkMetadata": {},
"FileId": "91b97b71-xxxx-xxxx-xxxx-33c6a6341cdc",
"FileName": "financial_report.pdf",
"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"
}
],
"KnowledgeBaseId": "pkb-xxxxx",
"Metadata": {},
"PageNumbers": [
2
],
"ShardContent": "financial_report",
"ShardIndex": 8,
"SimilarityScore": 0.75,
"SourceId": 1
}
],
"Status": "COMPLETED"
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。