include/entropic/types/logprob_result.h¶
include/entropic/types/logprob_result.h
entropic::LogprobResult
Per-token log-probability evaluation result.
std::vector<float> entropic::LogprobResult::logprobs
Log-prob for each token transition (N-1 values)
std::vector<int32_t> entropic::LogprobResult::tokens
Input tokens echoed back for verification.
float entropic::LogprobResult::perplexity
exp(- mean(logprobs) ) — lower = less surprising
float entropic::LogprobResult::total_logprob
Sum of all logprob values.
int entropic::LogprobResult::n_tokens
Number of input tokens.
int entropic::LogprobResult::n_logprobs
Number of logprob values (n_tokens - 1)