SAP AI SDK for JavaScript - v2.16.0
    Preparing search index...

    Type Alias ExplanationResult

    ExplanationResult: {
        top_column_scores?: Record<string, number>[] | null;
        top_relevant_context_rows?: number[][] | null;
    } & Record<string, any>

    Explanation data for predictions.

    Type Declaration

    • Optionaltop_column_scores?: Record<string, number>[] | null

      Column scores per query row extracted from the model (higher means more weight was put on this column).

    • Optionaltop_relevant_context_rows?: number[][] | null

      2D array where each subarray contains indices of most relevant context rows for that query row. The first dimension indexes query rows, the second dimension indexes all rows as a sequential integer index.