Skip to content

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScholarMate

ScholarMate Banner

ScholarMate is an AI-powered academic assistant that helps students engage with their learning materials more efficiently. It uses Streamlit and LangChain with Groq’s LLaMA 3 model to provide features like document-based question answering, summarization, MCQ generation, and topic-wise explanations — all through an intuitive web interface.


📌 Features

  • Upload & Process Files: Accepts .pdf, .docx, and .txt formats.
  • Smart Q&A: Ask questions directly based on the uploaded documents.
  • Summarization: Generate concise summaries from your academic content.
  • MCQ Generation: Automatically creates multiple-choice questions.
  • Topic-wise Explanation: Get detailed explanations for specific topics.
  • Confidence Score: Each answer includes a semantic confidence score.

🖼️ Screenshots

Logo Banner
Logo Banner

🚀 Getting Started

1. Clone the Repository

git clone https://github.com/your-username/ScholarMate.git
cd ScholarMate

2. Set Up a Virtual Environment (Optional but Recommended)

python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

3. Install Requirements

pip install -r requirements.txt

4. Create .env File

Create a .env file in the root directory and add the following:

GROQ_API_KEY=your_groq_api_key_here

Important: Make sure your .env file is listed in .gitignore so that it never gets pushed to your GitHub repository.


💻 Run the App

streamlit run main.py

🌍 Deployment (Streamlit Cloud)

  1. Push your code to a GitHub repository.
  2. Go to https://streamlit.io/cloud.
  3. Click “New App” and select your GitHub repo.
  4. Set main.py as the entry point.
  5. Add the GROQ_API_KEY as a secret variable under “Advanced settings”.

📂 Project Structure

ScholarMate/
├── image/
│   ├── logo.png
│   └── ScholarMate.png
├── .gitignore
├── main.py
├── README.md
├── requirements.txt

🛠️ Built With


🙈 .gitignore Reminder

Make sure your .gitignore file includes the following:

.env
__pycache__/
*.pyc

This protects your API keys and avoids unnecessary files in Git.


📬 Feedback & Contributions

Feel free to open issues or pull requests if you'd like to contribute or suggest improvements!


About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages