Metadata associated with a document

interface DocumentMetadata {
    source?: string;
    title?: string;
    author?: string;
    createdAt?: Date;
    updatedAt?: Date;
    tags?: string[];
    chunkIndex?: number;
    totalChunks?: number;
    [key: string]: unknown;
}

Indexable

  • [key: string]: unknown

    Custom metadata fields

Properties

source?: string

Source of the document (file path, URL, etc.)

title?: string

Title of the document

author?: string

Author of the document

createdAt?: Date

When the document was created

updatedAt?: Date

When the document was last updated

tags?: string[]

Tags or categories for the document

chunkIndex?: number

Chunk index if this document is part of a larger document

totalChunks?: number

Total number of chunks if this document is part of a larger document