Query GPT on REDCap instrument
Source:R/query_gpt_on_redcap_instrument.R
query_gpt_on_redcap_instrument.Rd
Query GPT on REDCap instrument
Usage
query_gpt_on_redcap_instrument(
db,
instrument = c("note_fup", "comments_fup", "details_fup"),
model = "gpt-4o-mini",
seed = 1234,
query_on_all_records = FALSE
)
Arguments
- db
(tbl_df) The REDCap DB for a single form.
- instrument
(chr) The REDCap instrument of the form to query.
- model
(chr, default: "gpt-4o-mini") The GPT model to use.
- seed
(int, default: 1234) The seed for the GPT model.
- query_on_all_records
(lgl, default: FALSE) If TRUE, the content of the "text_processed_record" variable (which mark if a record has already been processed) will be ignored. If FALSE (default) only records not marked as already processed will be considered.