You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/llm_intepret.R
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
#' Interpret Epidemiological Data or Visualisations using LLMs
2
-
#'
2
+
#'
3
3
#' @description
4
4
#' `r lifecycle::badge("experimental")`
5
-
#'
5
+
#'
6
6
#' This function interprets a given data frame or ggplot visualisation by sending it to a language model API via the elmer package. It supports multiple LLM providers, allowing users to specify the desired provider and model through environment variables.
7
7
#'
8
-
#' @param input An input object, either a data frame or a ggplot object, representing the data or visualization to be interpreted.
8
+
#' @param input An input object, either a data frame or a ggplot object, representing the data or visualisation to be interpreted.
9
9
#' @param word_limit Integer. The desired word length for the response. Defaults to 100.
10
10
#' @param prompt_extension Character. Optional additional instructions to extend the standard prompt. Defaults to NULL.
11
11
#' @return A character string containing the narrative or interpretation of the input object as generated by the LLM.
0 commit comments