Skip to contents

(t, S_X) = LLM(P_X, F_T); the 2-element contract is enforced.

Usage

morie_kamath_ch9_llm_signal_tokens(P_X, F_T, llm = NULL)

Arguments

P_X

Prompt features.

F_T

Text features.

llm

Model.

Value

List with estimate (signal-token count), text, signal_tokens.

Examples

morie_kamath_ch9_llm_signal_tokens("p", "f", llm = function(p,
    f) list("hello", c(1, 2, 3)))
#> $estimate
#> [1] 3
#> 
#> $text
#> [1] "hello"
#> 
#> $signal_tokens
#> $signal_tokens[[1]]
#> [1] 1
#> 
#> $signal_tokens[[2]]
#> [1] 2
#> 
#> $signal_tokens[[3]]
#> [1] 3
#> 
#> 
#> $generates_modality
#> [1] TRUE
#> 
#> $n
#> [1] 3
#> 
#> $method
#> [1] "LLM text and signal tokens (Kamath Eq 9.4)"
#>