Allows us to create IdDocument classes that contain the ID.

interface IdDocumentInput {
    id?: string;
    metadata?: Record<string, any>;
    pageContent: string;
}

Hierarchy

  • DocumentInput
    • IdDocumentInput

Implemented by

Properties

id?: string

An optional identifier for the document.

Ideally this should be unique across the document collection and formatted as a UUID, but this will not be enforced.

metadata?: Record<string, any>
pageContent: string