Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,122 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# π€ Enhanced AI Tutor System using LLaMA-3 and LangGraph
|
| 2 |
+
|
| 3 |
+
[](LICENSE)
|
| 4 |
+
[](https://python.langgraph.dev/)
|
| 5 |
+
[](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct)
|
| 6 |
+
|
| 7 |
+
An **adaptive, feedback-based AI tutor system** built using:
|
| 8 |
+
|
| 9 |
+
- π§ Meta's [LLaMA-3.2-3B-Instruct](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct)
|
| 10 |
+
- π [LangGraph](https://github.com/langchain-ai/langgraph) for multi-agent workflow
|
| 11 |
+
- β‘ Hugging Face Transformers (4-bit quantization for efficiency)
|
| 12 |
+
- β
PyTorch, BitsandBytes, Accelerate for seamless GPU usage
|
| 13 |
+
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
## π What It Does
|
| 17 |
+
|
| 18 |
+
This notebook walks you through a **complete interactive tutor session** that:
|
| 19 |
+
|
| 20 |
+
1. π Asks a question from a topic you choose
|
| 21 |
+
2. π Evaluates your answer and gives structured feedback
|
| 22 |
+
3. π§ͺ Generates a new practice question
|
| 23 |
+
4. π Tracks your progress and adapts difficulty
|
| 24 |
+
|
| 25 |
+
It's like having your own AI teacher, personalized to your learning!
|
| 26 |
+
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
## π Quickstart
|
| 30 |
+
|
| 31 |
+
### π§ Requirements
|
| 32 |
+
|
| 33 |
+
Install required packages first:
|
| 34 |
+
|
| 35 |
+
```bash
|
| 36 |
+
pip install langgraph transformers accelerate bitsandbytes --quiet
|
| 37 |
+
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 --quiet
|
| 38 |
+
pip install huggingface_hub --quiet
|
| 39 |
+
```
|
| 40 |
+
---
|
| 41 |
+
|
| 42 |
+
### π Login to Hugging Face
|
| 43 |
+
|
| 44 |
+
```python
|
| 45 |
+
from huggingface_hub import notebook_login
|
| 46 |
+
notebook_login()
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
### πββοΈ Run the Notebook
|
| 50 |
+
|
| 51 |
+
1. Launch the `.ipynb` in a Google Colab GPU runtime
|
| 52 |
+
2. Follow the prompts
|
| 53 |
+
3. Learn, improve, repeat π
|
| 54 |
+
|
| 55 |
+
---
|
| 56 |
+
|
| 57 |
+
## π Project Structure
|
| 58 |
+
|
| 59 |
+
```
|
| 60 |
+
βββ EnhancedTutorSystem.ipynb
|
| 61 |
+
βββ README.md
|
| 62 |
+
βββ requirements.txt
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
---
|
| 66 |
+
|
| 67 |
+
## π§ Model Info
|
| 68 |
+
|
| 69 |
+
This project uses (but does not rehost) Meta's official instruction-tuned model:
|
| 70 |
+
|
| 71 |
+
[](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct)
|
| 72 |
+
|
| 73 |
+
The model is loaded via transformers using 4-bit quantization (BitsAndBytes)
|
| 74 |
+
|
| 75 |
+
**Note:** You must agree to Meta's license to access the model.
|
| 76 |
+
|
| 77 |
+
---
|
| 78 |
+
|
| 79 |
+
## π― Features
|
| 80 |
+
|
| 81 |
+
- βοΈ Adaptive questions across difficulty levels
|
| 82 |
+
- π Real-time performance tracking
|
| 83 |
+
- π€ Intelligent feedback on every answer
|
| 84 |
+
- π‘ LangGraph-powered multi-agent workflow
|
| 85 |
+
- π§΅ Fully reproducible session history
|
| 86 |
+
|
| 87 |
+
---
|
| 88 |
+
|
| 89 |
+
## π Coming Soon
|
| 90 |
+
|
| 91 |
+
- π A Hugging Face Space with a user-friendly UI
|
| 92 |
+
- π Student progress export to PDF
|
| 93 |
+
- π― Topic-based quiz sessions
|
| 94 |
+
- π§ͺ Integration with LangChain for evaluation metrics
|
| 95 |
+
|
| 96 |
+
---
|
| 97 |
+
|
| 98 |
+
## π License
|
| 99 |
+
|
| 100 |
+
This project is released under the MIT License.
|
| 101 |
+
|
| 102 |
+
---
|
| 103 |
+
|
| 104 |
+
## π Acknowledgments
|
| 105 |
+
|
| 106 |
+
- π§ Meta AI for LLaMA-3
|
| 107 |
+
- π LangGraph by LangChain
|
| 108 |
+
- π€ Hugging Face for open infrastructure
|
| 109 |
+
|
| 110 |
+
---
|
| 111 |
+
|
| 112 |
+
## π¬ Contact / Feedback
|
| 113 |
+
|
| 114 |
+
[](https://github.com/Mrigank005)
|
| 115 |
+
[](https://www.linkedin.com/in/mrigank005)
|
| 116 |
+
|
| 117 |
+
Feel free to raise issues or suggestions on GitHub
|
| 118 |
+
Or connect via Hugging Face community tab!
|
| 119 |
+
|
| 120 |
+
**Happy learning!** π‘
|
| 121 |
+
|
| 122 |
+
---
|