Work with AI

Use large language models as programmable tools for extraction, analysis, retrieval, and application development

The AI · LLMs track: four lessons plus a live capstone, from calling an LLM as a function to a deployed retrieval-augmented chatbot.
Published

July 4, 2026

Modified

July 18, 2026

Track description

This track treats large language models as programmable tools, not just chat windows. You’ll call an LLM from R, force its output into a typed shape, give it tools it can decide to call, put it inside a Shiny app, and finally build a real retrieval-augmented generation (RAG) pipeline so it answers from actual retrieved text instead of memory – ending with a live, deployed capstone built the same way.

Who this is for

Anyone who wants to use LLMs as part of an actual R workflow – extraction, retrieval, tool calling, or an app – rather than as a standalone chatbot.

Prerequisites

  • Minimum: comfort with R and the tidyverse pipe (|>), as taught in the Build with R track’s first two lessons. This track assumes that, and does not re-teach it.
  • Helpful: having built a Shiny app before (Make it shine) makes lesson 2 land faster, but is not required.
  • No prior AI/ML background needed – every concept (embeddings, tool calling, retrieval) is introduced from scratch.
  • No API key is required to read any lesson: LLM code chunks are shown with real captured output rather than executed live.

Lessons

Estimated total time: ~3.5 hours across 4 lessons plus the capstone (durations are rounded active-work estimates, not automated reading time).

NoteAbout the capstone

“Ask R4DEV” is a real, deployed chatbot embedded at the end of Grounded in truth – it is not a separate lesson to work through, but a live demonstration of the pipeline that lesson teaches, built with the same functions. Open it after finishing lesson 3.

Start with lesson 1: Talking to machines →

Back to top