Building a Chatbot with OpenAI, Shiny, & R - Part 1: Use GPT-4 with OpenAI API in R

  Рет қаралды 4,154

James Wade

James Wade

Күн бұрын

In this tutorial, you'll learn how to query the OpenAI API from R using the {httr2} package. We'll focus on the chat capabilities of the API and build a function to get responses from gpt-3.5-turbo model or gpt-4. This video is the first in a series where we'll build an interactive chatbot using Shiny and R.
Helpful Links:
Code from this video: github.com/Jam...
Project repo: github.com/Jam...
{httr2}: httr2.r-lib.org/
OpenAI API documentation: platform.opena...
{openai}: irudnyts.githu...
Posit Cloud: posit.cloud/
#rstats #openai #tidyverse #httr #httr2 #chatgpt #programming #tutorial #chatbot #machinelearning #ai #nlp #shiny #chatbot #gpt4 #gpt3

Пікірлер: 14
@ditebayu7248
@ditebayu7248 2 ай бұрын
A really helpful video, and so much potential project can be generated from this . Thanks!
@macksncube
@macksncube Жыл бұрын
This was great! I can't wait to finish the series.
@Asharplayz
@Asharplayz 14 күн бұрын
Very much helpful
@AngelFelizF
@AngelFelizF Жыл бұрын
Thanks, I didn't know that usethis has that useful function
@james-h-wade
@james-h-wade Жыл бұрын
It’s a great package. I like that it makes doing the “right” thing so easy.
@SergeiDumnov
@SergeiDumnov Жыл бұрын
Thank you, James!
@james-h-wade
@james-h-wade Жыл бұрын
You're welcome! Thanks for watching.
@jasonrupert2765
@jasonrupert2765 Жыл бұрын
Wonderful video! Any chance you have another video on the use of R with ChatGPT and embeddings, and then possibly another on R and creating Retrieval Augmented Generation (RAG)? Thanks a ton!
@observerXIII
@observerXIII Жыл бұрын
at 12:38, how you now what the expected output looked like?
@sebastianvarela2190
@sebastianvarela2190 10 ай бұрын
great post! keep going!!
@FayrouzSAFA
@FayrouzSAFA 9 ай бұрын
Thank you James ! I get the error "Error in `req_perform()`: ! HTTP 400 Bad Request" please can you explain? knowing that I used chtgpt free version.
@DeborahNicoletti
@DeborahNicoletti Жыл бұрын
Wonderful video, thanks a lot! Do you know if it is possible to upload a pdf document and ask chatGPT about its content using API?
@kartikeyharsha
@kartikeyharsha 9 ай бұрын
Error in `req_perform()`: ! HTTP 401 Unauthorized. please can you explain?
Smart, seductive, dangerous AI robots. Beyond GPT-4.
16:23
Digital Engine
Рет қаралды 6 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
OMG: ChatGPT inside RStudio!
10:29
Michel's Science Speedrun
Рет қаралды 19 М.
Complete ChatGPT Tutorial - [Become A Power User in 30 Minutes]
27:32
Santrel Media
Рет қаралды 2,7 МЛН
[1hr Talk] Intro to Large Language Models
59:48
Andrej Karpathy
Рет қаралды 2,5 МЛН
ChatGPT Projects VS Custom GPTs - What's The Difference?
18:45
Bart Slodyczka
Рет қаралды 20 М.
I Built a Trading Bot with ChatGPT
18:33
Siraj Raval
Рет қаралды 2 МЛН