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

preview_player
Показать описание
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:

#rstats #openai #tidyverse #httr #httr2 #chatgpt #programming #tutorial #chatbot #machinelearning #ai #nlp #shiny #chatbot #gpt4 #gpt3
Рекомендации по теме
Комментарии
Автор

I never write comments in anything, but it was crazy good your code. I've tried several and yours was the only that worked. Keep going man! Thank you.

seminariofundamentos-grupo
Автор

This was great! I can't wait to finish the series.

macksncube
Автор

Thanks, I didn't know that usethis has that useful function

AngelFelizF
Автор

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.

FayrouzSAFA
Автор

Error in `req_perform()`:
! HTTP 401 Unauthorized.
please can you explain?

kartikeyharsha
Автор

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!

jasonrupert
Автор

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?

uiuznfy
Автор

at 12:38, how you now what the expected output looked like?

observerXIII