interface HashedDocumentInterface {
    contentHash?: string;
    hash_?: string;
    id?: string;
    metadata: Metadata;
    metadataHash?: string;
    pageContent: string;
    uid: string;
    calculateHashes(): void;
    toDocument(): DocumentInterface<Record<string, any>>;
}

Hierarchy (view full)

Properties

contentHash?: string
hash_?: 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.

metadata: Metadata
metadataHash?: string
pageContent: string
uid: string

Methods