langchain.js
    Preparing search index...

    Interface HashedDocumentInterface

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

    Hierarchy (View Summary)

    Implemented by

    Index

    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

    • Returns void