DocumentChunk

DocumentChunk는 DeveloperKnowledge 말뭉치의 Document에 있는 콘텐츠의 일부를 나타냅니다. 전체 문서 콘텐츠를 가져오려면 parentDeveloperKnowledge.GetDocument 또는 DeveloperKnowledge.BatchGetDocuments에 전달합니다.

JSON 표현
{
  "parent": string,
  "id": string,
  "content": string,
  "document": {
    object (Document)
  },
  "relevanceScore": number
}
필드
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를 사용하여 전체 문서 콘텐츠를 가져와야 합니다.

relevanceScore

number

출력 전용입니다. 검색어에 대한 청크의 관련성 점수를 나타냅니다. 점수가 높을수록 청크 관련성이 높습니다. 점수 범위는 [0.0, 1.0]입니다.