Skip to contents

One table of every setting harnessr has, across the stages of a run: ingesting a file, cutting it into chunks, reading it, screening, extracting and writing a review, evaluating, and the session's options. vignette("settings") prints it, grouped by stage.

Usage

gr_settings_table(stage = NULL)

Arguments

stage

NULL for every stage, or one or more of "ingest", "segment", "read", "screen", "extract", "synthesise", "evaluate" and "options".

Value

A data frame with one row per setting and the columns stage, name, where (the function that takes it, as "gr_read_spec()", or "hr_options()"), default (as text: a string without quotes, the first choice of a set of choices, other values as R code), tier ("basic" for the few settings most runs change, else "advanced"), status and source (where the default came from: "measured", "cited" or "untested" and why, NA when nothing is declared), description, and guide, the guide section that explains how to choose it, as "readers#set-top-k" (the article, then the section's id), or NA.

Details

The table is built when it is asked for, from what declares each setting, so it says what the installed code does:

ingest, segment, read

The schemas of gr_ingest_spec(), gr_segment_spec() and gr_read_spec() (see gr_settings()), with their defaults, tiers and evidence. The ingest stage adds the entries of cleaner_opts and layout_opts the built-in code reads, as cleaner_opts.references_after and so on, and the read stage adds the arguments of gr_read_many().

screen, extract, synthesise, evaluate

The arguments of the functions of each stage (gr_screen(), gr_reference(), gr_calibrate(), gr_screen_sample_size() and gr_stop_test(); gr_extract(); gr_claims(), gr_outline(), gr_gaps() and gr_synthesise(); hr_benchmark(), hr_report(), hr_judge(), gr_compare(), hr_error_correlation() and hr_step_command()), leaving out the inputs a call works on (the documents, the client, the trace). Defaults are the functions' own, and descriptions the first sentence of each argument's help.

options

Every hr_options() option, with its default, the evidence its rule declares, and the first sentence of its entry in the help page.

Descriptions come from the installed help pages; where they cannot be read, description is NA.

See also

gr_settings() for one spec's schema, hr_sweep() to test a setting, vignette("settings")

Examples

s <- gr_settings_table()
table(s$stage)
#> 
#>   evaluate    extract     ingest    options       read     screen    segment 
#>         30         10         21         41         50         34         20 
#> synthesise 
#>         31 
s[s$tier == "basic", c("stage", "name", "default")]
#>          stage           name                         default
#> 1       ingest            ocr                            auto
#> 3       ingest          clean                        standard
#> 7       ingest      min_chars                              20
#> 23     segment     max_tokens                            1200
#> 24     segment overlap_tokens                               0
#> 26     segment         method                       paragraph
#> 46        read         verify                           FALSE
#> 48        read         reader                      map_reduce
#> 49        read          model                            NULL
#> 54        read          top_k                               6
#> 64        read           cite                           FALSE
#> 85        read         recipe                        thorough
#> 86        read          store                            NULL
#> 88        read  max_total_usd                            NULL
#> 92      screen         recipe                        research
#> 94      screen  screen_tokens                            NULL
#> 96      screen  max_total_usd                            NULL
#> 104     screen              n                              50
#> 105     screen             of                        excluded
#> 113     screen  recall_target                            0.95
#> 114     screen           conf                            0.95
#> 117     screen  recall_target                            0.95
#> 118     screen           conf                            0.95
#> 119     screen     prevalence                            NULL
#> 123     screen         target                            0.95
#> 126    extract         recipe                        research
#> 128    extract        resolve                           first
#> 129    extract  require_quote                           FALSE
#> 136 synthesise          model                            NULL
#> 144 synthesise   max_sections                               6
#> 151 synthesise          model                            NULL
#> 155 synthesise     cite_style                            auto
#> 157 synthesise      coherence                           FALSE
#> 167   evaluate           runs                               5
#> 168   evaluate         scorer               hr_scorer_exact()
#> 170   evaluate       governor                            NULL
#> 174   evaluate           conf                            0.95
#> 177   evaluate         method                            auto
#> 181   evaluate           mode                          select
#> 182   evaluate          model                            NULL
#> 183   evaluate         orders                               2
#> 186   evaluate        recipes c("fast", "needle", "thorough")
#> 194   evaluate          parse                            exit
#> 197    options        verbose                            TRUE
#> 199    options          model                   gpt-5.6-terra
#> 212    options      cache_dir                            NULL
#> 216    options   max_cost_usd                               5
#> 217    options      max_calls                             400
gr_settings_table("synthesise")[, c("name", "default", "status")]
#>                  name                                   default   status
#> 1               model                                      NULL     <NA>
#> 2         temperature                                      NULL     <NA>
#> 3    max_claim_tokens                                      1600     <NA>
#> 4     include_unclear                                     FALSE     <NA>
#> 5              effort                                      NULL     <NA>
#> 6          unverified                                   exclude untested
#> 7               model                                      NULL     <NA>
#> 8         temperature                                      NULL     <NA>
#> 9        max_sections                                         6     <NA>
#> 10            closing                           What is missing     <NA>
#> 11 max_outline_tokens                                      NULL     <NA>
#> 12             effort                                      NULL     <NA>
#> 13       alternatives                                         1     <NA>
#> 14          max_cells                                        40     <NA>
#> 15       min_reported                                       0.5     <NA>
#> 16              model                                      NULL     <NA>
#> 17 max_section_tokens                                      1200     <NA>
#> 18        temperature                                      NULL     <NA>
#> 19    include_unclear                                     FALSE     <NA>
#> 20         cite_style                                      auto     <NA>
#> 21              style                                      NULL     <NA>
#> 22          coherence                                     FALSE untested
#> 23         references                                      TRUE     <NA>
#> 24             effort                                      NULL     <NA>
#> 25   coherence_rounds                                         1 untested
#> 26       figure_bands c(about = 0.1, over = 0.25, under = 0.25) untested
#> 27         prominence                c(top = 1/3, middle = 1/3) untested
#> 28      study_weights                                      NULL     <NA>
#> 29     revision_check                                   lexicon untested
#> 30     context_policy                                      NULL untested
#> 31      context_order                                 relevance untested