Study Space is a basic, beginner friendly RAG app for personalised study help that allows you to interact with your uploaded documents. You can:
- Ask questions and get precise answers based on the document content.
- Generate quizzes to test your knowledge.
- Get MCQs to test your understanding.
- Create flashcards for learning and revision.
Follow these steps to set up and run the app:
git clone https://github.com/Ayesha-Imr/Study-Space-RAG-Demo-App.git
cd Study-Space-RAG-Demo-App
python -m venv myvenv
myvenv\Scripts\activate
python3 -m venv myvenv
source myvenv/bin/activate
Install the required dependencies using the requirements.txt
file:
pip install -r requirements.txt
The app requires two API keys:
-
Cohere API Key
- Visit Cohere API Key Page
- Log in or sign up to generate your free API key.
-
Groq API Key
- Visit Groq API Key Page
- Log in or sign up to generate your free API key.
Once you have both keys, do the following:
- Open the
env.txt
file in the root directory. - Paste the API keys into the appropriate placeholders. The format should look like this:
COHERE_API_KEY="<your-cohere-api-key>"
GROQ_API_KEY="<your-groq-api-key>"
- Save the file and rename it to
.env
(remove the.txt
extension).
Navigate to the streamlit-app
folder:
cd streamlit-app
Run the app using the following command:
streamlit run app.py
After running the command, Streamlit will provide a local URL. Open the URL in your browser to start using Study Space.
That's it! Your app should now be running. If you encounter any issues, double-check the setup steps or refer to the relevant documentation for troubleshooting.