Represents a document with its content and metadata

interface Document {
    id: string;
    content: string;
    metadata?: DocumentMetadata;
    embedding?: number[];
}

Properties

id: string

Unique identifier for the document

content: string

The actual content of the document

metadata?: DocumentMetadata

Optional metadata associated with the document

embedding?: number[]

Optional embedding vector for the document