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 × 7
#>   prompt  system                        seed temperature model    format hash   
#>   <chr>   <chr>                        <dbl>       <dbl> <chr>    <chr>  <chr>  
#> 1 a haiku You are a helpful assistant.     0           0 llama3.2 ""     e64e99…