mlx-bun library API
    Preparing search index...
    interface CohesionResult {
        meanPairwise: number;
        minPair: number;
        sections: number;
    }
    Index
    meanPairwise: number

    Mean pairwise cosine across body-section embeddings (1 when <2 sections). LOW = the sections cover distinct topics → a split candidate.

    minPair: number

    The least-similar section pair's cosine (1 when <2 sections).

    sections: number