Kizuki
    Preparing search index...

    Function headingConcepts

    • Concepts for the material's real headings, made in plain code: each heading becomes a concept named after it, backed by the first two sentences of its section and the first sentence of up to two more of its passages, so teach-back covers the whole section. A heading is almost always a main idea, so these do not depend on the model at all.

      Parameters

      • sections: {
            heading?: boolean;
            level: number;
            ordinal: number;
            sectionId: string;
            title: string;
        }[]
        • Optionalheading?: boolean

          True when the title is a real heading of the material, not a page number or a file name.

        • level: number
        • ordinal: number
        • sectionId: string
        • title: string
      • passages: {
            location: {
                cells?: string;
                heading?: string;
                notes?: boolean;
                page?: number;
                paragraph?: number;
                sheet?: string;
                slide?: number;
            };
            materialId: string;
            ordinal: number;
            passageId: string;
            sectionId: string;
            text: string;
        }[]
      • existingNames: Set<string>

      Returns CheckedConcept[]