Skip to content

dariia-m/workshop-llm-hackathon

 
 

Repository files navigation

LLM hackathon

Slides

Setup

You'll need the latest version of ellmer:

pak::pak("ellmer")

You'll also need to set up at least one chat provider. If you don't already have an API account (a paid subscription unfortunately doesn't count), we recommend either Claude or Gemini. Claude is cheap and good at R code, while gemini is free and good at videos. Follow the instructions below to configure one.

Claude

  1. Sign up at https://console.anthropic.com.
  2. Load up enough credit to buy a coffee.
  3. Create a key at https://console.anthropic.com/settings/keys and copy it to the clipboard.
  4. usethis::edit_r_environ().
  5. Add a new line containing: ANTHROPIC_API_KEY={paste}.
  6. Restart R.
  7. Check that ellmer::chat_anthropic()$chat("Tell me a joke") works.

Gemini

  1. Log in to https://aistudio.google.com with a google account
  2. Click create API key & copy it to the clipboard.
  3. usethis::edit_r_environ()
  4. Add a new line containing: GOOGLE_API_KEY={paste}
  5. Restart R.
  6. Check that ellmer::chat_google_gemini()$chat("Tell me a joke") works.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%