Coder Social home page Coder Social logo

chergpt-basic's Introduction

Chergpt-Basic: Custom Chat Assistant

Chergpt-Basic is a simplified, login-free ChatGPT-like interface designed for quick deployment image It is also mobile friendly!
image

Deployment - examples

Features

  • Set custom instructions to guide student interactions.
  • Download chatlogs
  • Generate learning/ teaching analytics based on chatlogs

Need to secure access with a simple global password? Check the authentication guide.

Use Cases

Chergpt-Basic enables a variety of use cases, with the primary one being the creation of user personas for students to interact with. Examples include historical figures or patients with specific medical conditions and a guided escape room for primary school Chinese Language Learning (wiht particular tasks as checks for understanding)

Deploying

There are three main steps:
1 Setup your database
2 Getting your OpenAI API Key (will soon move to another open source model)
3 Deploy to the web via Streamlit
##1 How to setup backend (database) We recommend using NeonDB, start here

  1. Go to this link, login and create your account.
    image

2. Create a free project with Singapore as the region. Pick any project and database name you like.
![image](https://github.com/String-sg/chergpt-basic/assets/44336310/c5e529e2-74c6-47d8-935e-43b0a911c252)

image
3. Click on the copy icon - this will give you your database (DB) connection String that allows you to store data persistently in CherGPT.
Keep this somewhere safe, you will also need to use this shortly.

OpenAI API Key

  • See here if you're unsure how to create it.
    Keep this somewhere safe, you will also need to use this shortly.

3 Deploying to Streamlit

Click here

  1. You will be prompted to create a streamlit account here
  2. You will be prompted to create a github account image
  3. Click Deploy app. You should see this screen - edit the domain to anything of your choice! image Under Repository, type: String-sg/Chergpt-basic image
  4. Go to advanced settings and update Secrets.toml with your own values image
  5. Upon clicking "fork", wait a few mins:
    image

Feel free to explore and enhance the functionality of Chergpt-Basic according to your specific needs!

chergpt-basic's People

Contributors

ghostleek avatar lookang avatar

Stargazers

 avatar

Watchers

 avatar

chergpt-basic's Issues

attempt: fork, star, deploy

  1. fork the repo
  2. star the repo (optional haha but easier to access)
  3. deploy on streamlit community cloud
  4. here is the secrets.toml file structure

OPENAI_API_KEY = "{use your own key}"
ADMIN_PASSWORD = "{whatever you want}"
DB_CONNECTION = "{insert connection string}"*

  1. updated README.md as needed - I will also do a quick one now.

*I am using cockroachDB and showed how to do it on the call on 7 jan 7pm. See section on how to setup backend under https://github.com/String-sg/chergpt-basic
** run this locally, don't need to deploy to web yet. will explain complications next week <:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.