God bless your INŻYNIERKA!
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-previewMAKE 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 .comREACT_APP_AZURE_API_KEY- Your Azure OpenAI API keyREACT_APP_AZURE_API_VERSION- Azure OpenAI API version (e.g., "2024-02-15-preview")
-
Make sure you have a
.envfile with your Azure credentials -
Install dependencies:
npm install- Start the server:
npm dev:server- In new terminal start the React app:
npm dev:client-
Make sure you have a
.envfile with your Azure credentials -
Build and run with Docker Compose:
docker-compose up --buildTo stop the container:
docker-compose downThe app will be available at http://localhost:3000
-
data.infile with questions in format:
question_numbersubject_namesemestercategory
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:
ALGOWOALAP
and always present, general questions:
- PYTANIA GENERALNE(marked as
---)
See example file
data.in.example
-
Opracowanie_1.pdfpdf file with answers to questions
-
Opracowanie_2.pdfother 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.
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)