
LLM text and signal tokens (Kamath Eq 9.4)
Source:R/kamath_llm2_native.R
morie_kamath_ch9_llm_signal_tokens.Rd(t, S_X) = LLM(P_X, F_T); the 2-element contract is enforced.
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)"
#>