Imagine having a smart tutor at your fingertips, ready to help whenever you need it. That’s what Pocket Tutor is all about. It’s like having a personal AI teacher who can answer your questions, explain tricky concepts, and even help you understand pictures and diagrams.
With Pocket-Tutor, learning doesn’t have to be boring or confusing. You can ask it anything, from simple questions to complex problems, and it will do its best to give you a clear and helpful answer. Plus, it can help you make sense of all those graphs, charts, and other visuals that can be so confusing.
It’s like having a personal learning companion that’s always there when you need it.
Note
-
Text Processing: Pocket-Tutor's advanced text processing capabilities ensure you receive clear, concise, and informative answers.
-
Image Processing: Break down complex visuals with ease. Our image processing features help you understand images better by extracting text and interpreting visual concepts, making learning >more engaging and effective.
-
Document Processing: Simplify the task of comprehending complex documents. Pocket-Tutor can assist you in understanding key points, summarizing information, and extracting relevant data >from various types of documents.
-
Course Suggestions: Explore a curated collection of courses tailored to your learning goals. Pocket-Tutor's intelligent algorithms can recommend courses that align with your interests and >help you stay motivated.
-
Videos and Revision Stuffs: Access a vast library of educational videos and revision materials. Whether you need a quick refresher or in-depth explanations, Pocket-Tutor has you covered.
Important
As for now, we were able to create the web version of Pocket-Tutor. However, we are all motivated and fired up as we are working for its Mobile App version using react-native.
HTTPS:
git clone https://github.com/Anandha-Vihari/AI-Pocket-Tutor.git
or, SSH:
git clone git@https://github.com/Anandha-Vihari/AI-Pocket-Tutor.git
using either of the command should clone the main branch into your local storage. Now we are ready to set it up further.
Setting up a database is a very crucial step for this application to execute. To do so, please read the following instruction.
- Create the database: Open your MongoDB account and create a database with the name
Pocket_Tutor
- Create the collections inside the database: Once the database is created, create the following collections as mentioned below in the image
Each collection should have the following fields respectively with their respective datatypes as mentioned in the images below
If correctly configured to these parameters, now you are good to go ahead.The website is written using a javascript framework React.js. For setting up the frontend, please read the following instructions:***
Navigate into the cloned repository and go inside the Frontend
directory
cd Pocket-Tutor
cd Frontend
now use npm
to execute the frontend over your localhost
npm run dev
It is written in python and is deployed in the form of an API using FastAPI. It is responsible for processing text, images and documents for providing constructive responses. For setting up the GenAI, please read the following instructions:***
Navigate in the cloned repository and go inside the gemini_assistant
directory
cd Pocket-Tutor
cd gemini_assistant
Install the required modules and dependencies using this command
pip install -r requirements.txt
Once inside the gemini_assistant
directory, you need to create a .env
file insde it to setup the environment variables. Following variables should be inside the file
API_KEY
: setup an API from theGoogle AI Studio
and paste it for this parameterMONGODB_URI
: use your MongoDB URI to connect to your database
Now that your environment variables are all good to go, all you need to do is fire up the API using this command
python -m uvicorn deploy:app --reload
And you can now use this GenAI API over your localhost (127.0.0.1:8000)
It is written in a node.js framework called Express.js, and it serves as an medium for the frontend and the generative AI to communicate. For setting up the backend, please read the following instructions:***
Navigate into the cloned repository and go inside the backend
directory
cd Pocket-Tutor
cd backend
Once inside the backend
directory, you need to create another .env
file insde it to setup the environment variables. Following variables should be inside the file
PORT
: set it to the value 3001DB_URI
: use your MongoDB URI to connect to your databaseAPI_KEY
: use the same API used for the.env
ingemini_assistant
directory and paste it here
Now that your environment variables are all good to go, all you need to do is fire up the backend using this command
node index
And you can now use this backend over your localhost (127.0.0.1:3001)