Code Monkey home page Code Monkey logo

quizzer's Introduction

quizzer

All Contributors

About

Learning project for generating quizzes with LLaMA-2-13B LLM model

This is cut version of google forms

Workflow:

  • User can create forms on the editor page
    • Each form assigned unique url
    • For each created form discord text channel created
  • Forms can be filled in an editor or on separate page, unique for each form
    • For each submitted response, message sent to corresponding discord channel
  • User can look at submitted responses on the editor page
  • User can request an AI generated quiz with custom prompt and question count

Project broken into several pieces:

Used technologies

Backend:

  • NodeJS
  • NestJS
  • RabbitMQ
  • Postgres
  • Prisma
  • DiscordJS
  • Swagger
  • Lodash
  • Python
  • Transformers

Frontend:

  • Angular
  • Angular Material UI
  • Axios

Deployment:

  • Docker Compose
  • Ansible

How to run

For dev

Using docker compose:

  • npm run docker:up

Backend available at localhost:3000

Frontend available at localhost:4200

Swagger available at localhost:3000/api

Postgres available at localhost:5432

RabbitMQ management available at localhost:15672

Backend and frontend launched in hot reload mode, so all changes to codebase will be applied shortly after saving

Without docker compose

I haven't done that but you could try running several npm run start*:dev for each service. Don't forget to start RabbitMQ and postgres and pass proper settings.

For prod

We tested it on Ubuntu 20.04 with Nvidia Tesla T100

  • Setup your Ansible inventory in deployment folder
  • Run make deploy-all

You can consider adjusting some env variables to suit your needs

Ui screenshots

Editor - starting page

Alt text

Editor - form preview

Alt text

Editor - form creation

Alt text

Editor - response viewer

Alt text

Separate page for filling forms

Alt text

Ways to improve

  • Updating forms (questionable). What to do with responses then? Delete?
  • Since forms rarely changed, caching can be added, reducing number of requests to db service
  • Authentication service
  • Parallelize answer generation

Contributors โœจ

Thanks goes to these wonderful people (emoji key):

Andrew Lutsai
Andrew Lutsai

๐Ÿ’ป ๐Ÿš‡
Konstantin Grigorev
Konstantin Grigorev

๐Ÿ’ป ๐Ÿš‡ ๐Ÿ“†
Tatiana
Tatiana

๐Ÿ’ป ๐ŸŽจ
Nikita Fomin
Nikita Fomin

๐Ÿ’ป ๐Ÿ”ฌ

This project follows the all-contributors specification. Contributions of any kind welcome!

quizzer's People

Contributors

6raywa1cher avatar alstrasz avatar throder-tvrs avatar allcontributors[bot] avatar baranovatm 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.