public class Metadata
extends Object
Represents metadata of a Document or a TextSegment.
The metadata is stored in a key-value map, where both keys and values are strings.
For a Document, the metadata could include information such as the source, creation date,
owner, or any other relevant details.
For a TextSegment, in addition to metadata copied from a document, it can also include segment-specific information,
such as the page number, the position of the segment within the document, chapter, etc.