langchain.js
    Preparing search index...

    Annotation for citing data from a document.

    interface Citation {
        citedText?: string;
        endIndex?: number;
        source?: string;
        startIndex?: number;
        title?: string;
        type: "citation";
        url?: string;
    }
    Index

    Properties

    citedText?: string

    Excerpt of source text being cited.

    endIndex?: number

    End index of the response text for which the annotation applies.

    source?: string

    Source type for the citation.

    startIndex?: number

    Start index of the response text for which the annotation applies.

    title?: string

    Source document title.

    For example, the page title for a web page or the title of a paper.

    type: "citation"

    Type of the content block

    url?: string

    URL of the document source