Interface ConversationalSearchItemCitation

Citations for text generated by an AI to provide the user with relevant source information and context.

interface ConversationalSearchItemCitation {
    range_end?: number;
    range_start?: number;
    ranges?: { end: number; start: number }[];
    search_result_idx?: number;
    text?: string;
    title?: string;
    url?: string;
}

Properties

range_end?: number

Optional zero index based integer indicating where in `text`` the citation ends at. Exclusive. So the word "hi", would have the range_start of 0 and range_end of 2.

range_start?: number

Optional zero index based integer indicating where in text the citation starts from.

ranges?: { end: number; start: number }[]

Optional array of ranges indicating where in text the citation is located.

search_result_idx?: number

A number corresponding to the index of the matching search result. This can be used to gather extra info about a specific citation from the matching search result.

text?: string

Optional explanation text for the citation.

title?: string

Optional title of the citation URL.

url?: string

Optional url of the citation. May not be a valid URL.

MMNEPVFCICPMFPCPTTAAATR