Interface DocumentInterface<Metadata>

interface DocumentInterface<Metadata> {
    metadata: Metadata;
    pageContent: string;
    id?: string;

Type Parameters

  • Metadata extends Record<string, any> = Record<string, any>

Hierarchy (view full)

Implemented by


metadata: Metadata
pageContent: string
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.