DocumentChunk

DocumentChunk は、DeveloperKnowledge コーパスの Document からのコンテンツの一部を表します。ドキュメントの内容全体を取得するには、parentDeveloperKnowledge.GetDocument または DeveloperKnowledge.BatchGetDocuments に渡します。

JSON 表現
{
  "parent": string,
  "id": string,
  "content": string,
  "document": {
    object (Document)
  }
}
フィールド
parent

string

出力専用。このチャンクの元となるドキュメントのリソース名が含まれます。形式: documents/{uri_without_scheme} 例: documents/docs.cloud.google.com/storage/docs/creating-buckets

id

string

出力専用。ドキュメント内のこのチャンクの ID を指定します。チャンク ID はドキュメント内では一意ですが、ドキュメント間でグローバルに一意ではありません。チャンク ID は安定しておらず、時間の経過とともに変化する可能性があります。

content

string

出力専用。ドキュメント チャンクのコンテンツが含まれます。

document

object (Document)

出力専用。このチャンクの Document に関するメタデータを表します。この Document メッセージの DocumentViewDOCUMENT_VIEW_BASIC に設定されます。メタデータ フィールドのみが必要な場合に、クライアントが DeveloperKnowledge.GetDocument または DeveloperKnowledge.BatchGetDocuments を呼び出す必要がないように、便宜上ここに含めています。それ以外の場合は、DeveloperKnowledge.GetDocument または DeveloperKnowledge.BatchGetDocuments を使用してドキュメントのコンテンツ全体を取得する必要があります。