Skip to main content

apply_gating_to_answer_with_logits

Function apply_gating_to_answer_with_logits 

Source
pub fn apply_gating_to_answer_with_logits(
    answer: &mut Answer,
    logits: Option<&[f64]>,
    state: Option<&str>,
    question_id: Option<&str>,
    question: Option<&Question>,
    gating_config: Option<&GatingConfig>,
    calib_config: &CalibrationConfig,
)
Expand description

単一の判定結果 (Answer) とロジットスライスからエネルギーを自動算出し、ゲーティング設定を適用する。

§引数

  • answer: 判定結果 (可変参照)。
  • logits: 決定ロジットスライス (任意)。
  • state: 文脈テキスト (任意)。
  • question_id: 質問識別子 (任意)。
  • question: 質問定義 (任意)。
  • gating_config: 明示的なゲーティング設定 (任意)。
  • calib_config: モデルのキャリブレーション設定。