Optional
metadataReturns the first media part detected in the document. Useful for extracting (for example) an image.
The first detected media
part in the document.
Concatenates all text
parts present in the document with no delimiter.
A string of all concatenated text parts.
Static
from
Document represents document content along with its metadata that can be embedded, indexed or retrieved. Each document can contain multiple parts (for example text and an image)