Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
Merge branch 'main' of https://github.com/BIMSBbioinfo/mergen

# Conflicts:
#	R/selfcorrect.R
#	man/selfcorrect.Rd
  • Loading branch information
jacqueline-98 committed Sep 11, 2024
2 parents 6caf059 + 97c47c8 commit e9daac2
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
.Rdata
.httr-oauth
.quarto
.Rproj
docs
inst/doc
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: mergen
Type: Package
Title: AI-Driven Code Generation, Explanation and Execution for Data Analysis
Version: 0.2.0
Version: 0.2.1
Authors@R: c(
person("Altuna", "Akalin", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-0468-0117")),
Expand Down
2 changes: 1 addition & 1 deletion R/selfcorrect.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#' @param attempts Numeric value denoting how many times the code should be sent back for fixing.
#' @param output.file Optional output file created holding parsed code
#' @param responseWithError a list of response and errors returned from executeCode().
#' @param history parameter to send history of the chat.
#' @param history a list of previous response and prompts. Default is NULL and should be stayed as is for most use cases.
#' First element is expected to be the response and the second element is the error list returned by executeCode().
#' @param ... Additional arguments to be passed to the \code{\link{sendPrompt}} function.
#' @return A list containing the following elements:
Expand Down
6 changes: 3 additions & 3 deletions R/setupAgent.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ setupopenaiAgent<-function(model,type=c("chat","completion"),
#' For replicate models examples are:\itemize{
#' \item llama-2-70b-chat ( as '02e509c789964a7ea8736978a43525956ef40397be9033abf9fd2badfe68c9e3')
#' \item llama-2-13b-chat ( as 'f4e2de70d66816a838a89eeeb621910adffb0dd0baba3976c96980970978018d')}
#' For a full list of openAI models
#' \href{https://platform.openai.com/docs/models/overview}{click here}. For a full list of Replicate models,
#' \href{https://replicate.com/collections/language-models}{click here}.
#' For a full list of openAI models see
#' https://platform.openai.com/docs/models/overview/. For a full list of Replicate models,
#' see https://replicate.com/collections/language-models.
#' @param url the url for the API in case the API "generic" is selected. (Default: NULL)
#' @param ai_api_key personal API key for accessing LLM
#' @return A list holding agent information.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ performance and accuracy. mergen features a user-friendly chat
interface, enabling users to interact with the AI agent and extract
valuable insights from their data effortlessly.

The package website with full documentation is [here](http://bioinformatics.mdc-berlin.de/mergen).
The package website with full documentation is [here](http://bioinformatics.mdc-berlin.de/mergen/).

If you want to use **mergen** in your Rstudio session via an embedded chatbot, try out our companion package [mergenstudio](https://github.com/BIMSBbioinfo/mergenstudio/).

Expand All @@ -37,9 +37,9 @@ pak::pak("BIMSBbioinfo/mergen")
### Prerequisites

- Make an AI platform account. Choices are openai.com, neets.ai (at the time of writing free with some limits), replicate.com , perplexity.ai etc.
In addition, you can locally run an LLM in server mode and you can interact with it via API. One example is [GPT4all](https://gpt4all.io/). Some of these solutions are not tested but should work with mergen.
In addition, you can locally run an LLM in server mode and you can interact with it via API. One example is [GPT4all](https://gpt4all.io/index.html). Some of these solutions are not tested but should work with mergen.
- [Create an OpenAI API
key](https://platform.openai.com/account/api-keys) to use with the
key](https://platform.openai.com/docs/api-reference/introduction) to use with the
package
- [Create a replicate API key](https://replicate.com/pricing)
- Set up the API key in R
Expand Down
2 changes: 1 addition & 1 deletion man/selfcorrect.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/setupAgent.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions mergen.Rproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ StripTrailingWhitespace: Yes
BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageCheckArgs: --as-cran
PackageRoxygenize: rd,collate,namespace

0 comments on commit e9daac2

Please sign in to comment.