Skip to contents

Mostly used internally.

Usage

ql_hash(prompt_df)

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…