/workshopAI

Coding with ChatGPT workshop

Primary LanguageR

Coding with ChatGPT workshop at SDSU

Feb 6, 2024 at the SDSU Data Science Symposium

Getting Ready

  1. Install a recent version of R, at least R 4.20.
  2. Update RStudio to the most recent version (V. 2023.12.1+402). Or, use Posit Cloud.
  3. Create a ChatGPT account, either free or premium.
  4. Optional but highly encouraged: Create a GitHub Copilot account. On its website, click on Get Started with Copilot and select an individual plan or use the free trial. If you do not have a GitHub account, create one first.
  5. Optional: Install VS Code, an advanced development environment. And configure it to run R. Enable GitHub Copilot and GitHub Copilot Chat by installing extensions and configure it.

If you prefer to use Python:

  1. Install Python on your laptop.
  2. Install an IDE like VS Code.
  3. Install the Python extension on VS Code.
  4. Enable GitHub Copilot and GitHub Copilot Chat by installing extensions and configure it.

Websites

  1. ChatGPT
  2. Microsoft Copilot
  3. Bard
  4. Phind

Key take aways

  1. Describe data in the prompt,
  2. Chat history defines the context,
  3. Refine iteratively,
  4. Use tree-of-thoughts prompting,
  5. Document, test, refactor, debug, explain, & learn.