File size: 2,633 Bytes
c577877
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# πŸ“š AI Study Assistant (Powered by Microsoft Phi-3)

Welcome to the **AI Study Assistant** β€” your personalized academic learning tool, built to help students understand complex course material with clarity, precision, and speed.

### πŸš€ What it does

- βœ… **Upload Study Material**: PDF, DOCX, TXT, or PPTX
- πŸ€– **Ask Questions**: About any concept in the uploaded files
- 🧠 **AI-Powered Reasoning**: Uses Microsoft’s Phi-3 (128k) to provide deep, structured, academic responses
- πŸ“Š **Retrieval-Augmented Generation**: Combines vector-based document search with LLMs
- πŸ“˜ **Context-Based Answers**: Doesn’t hallucinate β€” only uses what’s in your file
- ✨ **Auto-Summary**: Large answers are summarized into a short academic recap

---

### πŸŽ“ Who it's for

- Students revising for exams
- Professionals needing quick insights from documents
- Educators building tutoring tools
- Anyone learning from dense academic material

---

### πŸ›  How it works

1. **Upload** one or more lecture files (PDF, Word, PPT, TXT)
2. Ask a question like:
   - *"Define supervised learning"*
   - *"Explain the difference between classification and regression"*
3. The AI will:
   - Extract your document
   - Find the most relevant parts
   - Think deeply using a powerful LLM
   - Give a clean, well-structured, academic answer

---

### 🧠 Under the hood

| Component        | Description                                              |
|------------------|----------------------------------------------------------|
| **LLM**           | `microsoft/phi-3-mini-128k-instruct` (4-bit CPU mode)     |
| **Vector Search** | FAISS + HuggingFace MiniLM Embeddings                   |
| **Framework**     | Gradio Interface via Hugging Face Spaces               |
| **Auto Summary**  | DistilBART summarization for long answers               |

---

### πŸ”’ Privacy

This app does **not** store or log any of your uploaded files or questions. All processing happens in memory and is discarded after your session.

---

### πŸ’¬ Example Prompts

> - "List all types of memory in operating systems"
> - "What does this document say about reinforcement learning?"
> - "Explain deadlock prevention based on the slides"

---

### πŸ’‘ Inspiration

Built to replicate how a personal AI tutor should behave: focused, accurate, context-aware, and reliable β€” not a chatbot, but a **study partner**.

---

### πŸ§‘β€πŸ’» Built by

> Designed & developed by a student β€” for students β€” using only open-source models.

---

### πŸ“Ž Tags

`#Education` `#AI` `#Phi3` `#StudentTools` `#NLP` `#Gradio` `#DocumentQA` `#OpenSource`