Skip to content

IwoSzczepaniak/ExamHelper

Repository files navigation

ExamHelper app

God bless your INŻYNIERKA!

Screenshot 2025-02-12 at 10 28 52 image

Deploy to Azure - required to use AI features

Use this link to deploy to Azure: https://oai.azure.com/resource/deployments

MAKE SURE TO CALL YOUR AZURE MODELS AS gpt-4 or gpt-35-turbo - you won't need to change the model names in the code

Create a .env file based on the .env.example file.

REACT_APP_AZURE_ENDPOINT=https://xxxxxxxxxxx-westeurope.openai.azure.com
REACT_APP_AZURE_API_KEY=xxxxxxxxxxxxxxxxxxxxxxx
REACT_APP_AZURE_API_VERSION=2024-01-01-preview

MAKE SURE TO CALL YOUR AZURE MODELS AS gpt-4 or gpt-35-turbo - you won't need to change the model names in the code

  • REACT_APP_AZURE_ENDPOINT - Your Azure OpenAI API endpoint | DO NOT ADD ANYTHING AFTER THE .com
  • REACT_APP_AZURE_API_KEY - Your Azure OpenAI API key
  • REACT_APP_AZURE_API_VERSION - Azure OpenAI API version (e.g., "2024-02-15-preview")

Setup

Option 1: Local Dev

  1. Make sure you have a .env file with your Azure credentials

  2. Install dependencies:

npm install
  1. Start the server:
npm dev:server
  1. In new terminal start the React app:
npm dev:client

Option 2: Docker Deployment

  1. Make sure you have a .env file with your Azure credentials

  2. Build and run with Docker Compose:

docker-compose up --build

To stop the container:

docker-compose down

Accessing the app

The app will be available at http://localhost:3000

Then you need to upload three files:

  1. data.in file with questions in format:


    question_number subject_name semester category


    examples:

    2 Algorytmy i struktury danych 4 --- Kim jest Marek Marucha?

    1 Teoria Kompilacji 2 ALGO Kim jest Automatow?


    You have three categories that you can only choose one from later on:

    • ALGO
    • WO
    • ALAP

    and always present, general questions:

    • PYTANIA GENERALNE(marked as ---)

    See example file data.in.example


  2. Opracowanie_1.pdf pdf file with answers to questions


  3. Opracowanie_2.pdf other pdf file with answers to questions


Files doesn't need to have names like Opracowanie_1.pdf or Opracowanie_2.pdf or 'data.in' - just make sure they are in a correct format.

Features

You can:

  • Filter questions by category, semester, subject and marked/answered
  • Open question modal and take a note with the help of uploaded PDF files and AI
  • Mark questions as marked/answered
  • Do Q&A session with Azure OpenAI (GPT-4 or GPT-3.5-TURBO)

About

This is an app created with intension to make learning, searching question and checking the knowledge easier. I hope it'll help you in your learning process:)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors