
Hash all inputs relevant to the call to the LLM and create a hash to be used for caching.
ql_hash.Rd
Mostly used internally.
Arguments
- prompt_df
A data frame with all inputs passed to the LLM, typically created with
ql_prompt()
.
Value
A tibble, such as those returned by ql_prompt()
, but always
including a hash column.
Examples
ql_prompt("a haiku", hash = FALSE) |> ql_hash()
#> # A tibble: 1 × 8
#> prompt system think seed temperature model format hash
#> <chr> <chr> <lgl> <dbl> <dbl> <chr> <chr> <chr>
#> 1 a haiku You are a helpful assistan… NA 0 0 llam… "" c57e…