# Type Alias Document

Document: {
chunks: RetrievalChunk[];
id: string;
metadata?: RetrievalDocumentKeyValueListPair[];
} & Record<string, any>

Representation of the 'Document' schema.

#### Type Declaration

- ##### chunks: RetrievalChunk[]

- ##### id: string

- ##### `Optional` metadata?: RetrievalDocumentKeyValueListPair[]

  Default: [].

  Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

- Defined in packages/document-grounding/dist/client/api/schema/document.d.ts:6