Package version:

Interface ExtractiveQueryCaption

Extracts captions from the matching documents that contain passages relevant to the search query.

interface ExtractiveQueryCaption {
    captionType: "extractive";
    highlight?: boolean;
    maxCaptionLength?: number;
}

Properties

captionType
highlight?: boolean
maxCaptionLength?: number

An optional upper bound on the number of characters in each caption.