Coder Social home page Coder Social logo

dba-genai-workshop's Introduction

Generative AI Workshop Kit

Enabling teachers to experiment with LLM/ Generative AI in a Q&A chatbot

This kit will automatically:

  • Create a login page and all the features of a full stack application using ant_components
  • Create an administrator account, password is pass1234 in a SQL Database

Key Features:

  • Upload documents and build a knowledge base using the OpenAI embeddings
  • Enable semantic search on uploaded documents via LanceDB
  • Preset custom prompt engineering to guide interactions for Q&A
  • Latest features of Generative AI

User-role specific features

Note

This app comes with the following user roles: admins, teachers, and students

  • Admins can reset passwords of students and teachers
  • Teachers can add and remove documents
  • Teachers can build and remove knowledge base (VectorStores)
  • Admins can edit knowledge base and documents
  • Students can load their own knowledge base for their own chatbot

You can fork it at streamlit community cloud, it can be used straight away, just add the following to your streamlit secrets

Important

The following env variables are required for setup. You can add this to the secrets.toml file in your streamlit deployment


openai_key = "YOUR_OPEN_API_KEY"
cohere_key = "YOUR_OPEN_API_KEY - COHERE LLM API KEY"
google_key = "YOUR_OPEN_API_KEY - GEMINI PRO API KEY"
default_db = "chergpt.db"
default_temp = 0.0
default_frequency_penalty = 0.0
default_presence_penalty = 0.0
default_k_memory = 4
default_model = "gpt-4o"
default_password = "default_password"
student_password = "studentp@sswrd"
teacher_password = "teacherp@sswrd"
super_admin_password = "pass1234"
super_admin = "super_admin"
default_title = "DBA GenAI Workshop"
sql_ext_path = "None"
NLTK_DATA ="./resources/nltk_data_dir/"
TWILIO_ACCOUNT_SID = "OPTIONAL YOU CAN REMOVE"
TWILIO_AUTH_TOKEN = "OPTIONAL YOU CAN REMOVE"
AWS = ""

dba-genai-workshop's People

Contributors

xuyang1993 avatar xuyangatwork avatar nicholasling avatar

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.