Table of Contents
Installation
Using an API key with RTutor
Home Technology peripherals AI Inspired by ChatGPT, I completed the chat APP with data in 10 days and answered questions as well as undergraduates.

Inspired by ChatGPT, I completed the chat APP with data in 10 days and answered questions as well as undergraduates.

May 02, 2023 pm 11:19 PM
ai code

Now, you no longer have to feel a headache when faced with a bunch of data! Today we are going to introduce this application, which allows you to chat with your data in English and then get the results!

This application is called RTutor. It calls OpenAI's Davinci (ChatGPT brother model) through the API. It can translate natural language into R scripts and then execute them on the Shiny platform in a few seconds. Generate R Markdown source files and HTML reports internally.

Locally, RTutor provides services in the form of R packages to help users perform preliminary analysis and visualization, and can be used even without R experience. But it will be better if you have R experience, which can save users time by eliminating the process of converting requests to R and directly providing code as a starting point.

Inspired by ChatGPT, I completed the chat APP with data in 10 days and answered questions as well as undergraduates.


  • Project address: https://github.com/gexijin/RTutor
  • Trial address: http://rtutor.ai/

We use mpg Taking the data set as an example, the mpg data set records the manufacturer, model, category, driver and fuel consumption of some cars in the United States in 1999 and 2008.

After understanding some background knowledge, you can talk to RTutor like this and use ggplot2 to create hwy (highway driving fuel consumption) vs. class (vehicle type, such as a two-seater car ) box plot. Color by category. Add jitter. RTutor then generates R language and outputs the result:

Inspired by ChatGPT, I completed the chat APP with data in 10 days and answered questions as well as undergraduates.

RTutor can also explain statistical concepts and help users decide which statistical test to use. It's at the level of an undergrad with a background in statistics and R courses, and the answers are imperfect but helpful.

Inspired by ChatGPT, I completed the chat APP with data in 10 days and answered questions as well as undergraduates.

RTutor can also generate code and even documents based on context:

Inspired by ChatGPT, I completed the chat APP with data in 10 days and answered questions as well as undergraduates.

The project author said: RTutor is completely a spare time project. After he learned about ChatGPT in his spare time, he completed the project in 10 days in his spare time.

Inspired by ChatGPT, I completed the chat APP with data in 10 days and answered questions as well as undergraduates.

Installation

This repository is updated frequently, sometimes several times a day. Therefore, the project author recommends that users reinstall before each use so that they always have the latest version.

library(remotes)install_github("gexijin/RTutor")
Copy after login

Using an API key with RTutor

Get an API key from OpenAI and use it with RTutor. There are several ways to do this.

  • # Once the app launches, click Settings and paste the API key.
  • Save this key as a text file named api_key.txt in your working directory.
  • Create an environment variable named OPEN_API_KEY for Windows, Mac and Linux systems.

Please refer to the original project for more technical details.

The above is the detailed content of Inspired by ChatGPT, I completed the chat APP with data in 10 days and answered questions as well as undergraduates.. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Behind the first Android access to DeepSeek: Seeing the power of women Behind the first Android access to DeepSeek: Seeing the power of women Mar 12, 2025 pm 12:27 PM

Behind the first Android access to DeepSeek: Seeing the power of women

deepseek web version official entrance deepseek web version official entrance Mar 12, 2025 pm 01:42 PM

deepseek web version official entrance

The latest ranking of the top ten trading apps in 2025 The latest ranking of the top ten trading apps in 2025 Mar 11, 2025 pm 04:06 PM

The latest ranking of the top ten trading apps in 2025

How to solve the problem of busy servers for deepseek How to solve the problem of busy servers for deepseek Mar 12, 2025 pm 01:39 PM

How to solve the problem of busy servers for deepseek

In-depth search deepseek official website entrance In-depth search deepseek official website entrance Mar 12, 2025 pm 01:33 PM

In-depth search deepseek official website entrance

Another national product from Baidu is connected to DeepSeek. Is it open or follow the trend? Another national product from Baidu is connected to DeepSeek. Is it open or follow the trend? Mar 12, 2025 pm 01:48 PM

Another national product from Baidu is connected to DeepSeek. Is it open or follow the trend?

Midea launches its first DeepSeek air conditioner: AI voice interaction can achieve 400,000 commands! Midea launches its first DeepSeek air conditioner: AI voice interaction can achieve 400,000 commands! Mar 12, 2025 pm 12:18 PM

Midea launches its first DeepSeek air conditioner: AI voice interaction can achieve 400,000 commands!

Top 10 recommended for crypto digital asset trading APP (2025 global ranking) Top 10 recommended for crypto digital asset trading APP (2025 global ranking) Mar 18, 2025 pm 12:15 PM

Top 10 recommended for crypto digital asset trading APP (2025 global ranking)

See all articles