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raktim Mondol's Portfolio with RAGtim Bot
|
2 |
+
|
3 |
+
A modern, responsive portfolio website featuring an intelligent AI assistant powered by multiple backend options including Hugging Face Transformers.
|
4 |
+
|
5 |
+
## π Features
|
6 |
+
|
7 |
+
### Portfolio Website
|
8 |
+
- **Responsive Design**: Beautiful, mobile-first design with dark/light theme support
|
9 |
+
- **Interactive Sections**: Education, Experience, Skills, Research, Publications, Awards
|
10 |
+
- **Audio Summaries**: Listen to AI-generated summaries of research papers
|
11 |
+
- **Thesis Mind Map**: Interactive visualization of PhD research (desktop only)
|
12 |
+
- **Contact Form**: Direct email integration with validation
|
13 |
+
|
14 |
+
### RAGtim Bot - AI Assistant
|
15 |
+
- **Multiple Backend Options**: Choose from Hugging Face Space, Backend Server, or Netlify Functions
|
16 |
+
- **Advanced Search**: Hybrid semantic + keyword search for accurate responses
|
17 |
+
- **Comprehensive Knowledge**: Covers all aspects of Raktim's expertise
|
18 |
+
- **Real-time Chat**: Instant responses with conversation history
|
19 |
+
- **Performance Optimized**: Caching and efficient processing
|
20 |
+
|
21 |
+
## π RAGtim Bot Deployment Options
|
22 |
+
|
23 |
+
### Option 1: Hugging Face Space (Recommended) π€
|
24 |
+
**Pros**: Free GPU acceleration, no API keys needed, automatic scaling
|
25 |
+
**Best for**: Public deployment, maximum performance
|
26 |
+
|
27 |
+
```bash
|
28 |
+
# Set environment variable
|
29 |
+
VITE_USE_HUGGING_FACE=true
|
30 |
+
```
|
31 |
+
|
32 |
+
**Live Demo**: [RAGtim Bot on Hugging Face](https://huggingface.co/spaces/raktimhugging/ragtim-bot)
|
33 |
+
|
34 |
+
### Option 2: Backend Server π₯οΈ
|
35 |
+
**Pros**: Full control, local processing, custom configurations
|
36 |
+
**Best for**: Development, private deployments
|
37 |
+
|
38 |
+
```bash
|
39 |
+
# Set environment variables
|
40 |
+
VITE_USE_BACKEND=true
|
41 |
+
VITE_BACKEND_URL=http://localhost:3001
|
42 |
+
VITE_DEEPSEEK_API_KEY=your_api_key
|
43 |
+
|
44 |
+
# Start backend server
|
45 |
+
cd server
|
46 |
+
npm install
|
47 |
+
npm run dev
|
48 |
+
|
49 |
+
# Start frontend
|
50 |
+
npm run dev
|
51 |
+
```
|
52 |
+
|
53 |
+
### Option 3: Netlify Functions β‘
|
54 |
+
**Pros**: Serverless, automatic scaling, integrated with Netlify
|
55 |
+
**Best for**: Simple deployments, cost-effective
|
56 |
+
|
57 |
+
```bash
|
58 |
+
# Set environment variable
|
59 |
+
VITE_DEEPSEEK_API_KEY=your_api_key
|
60 |
+
# (VITE_USE_HUGGING_FACE and VITE_USE_BACKEND should be false or unset)
|
61 |
+
```
|
62 |
+
|
63 |
+
## π οΈ Quick Start
|
64 |
+
|
65 |
+
### 1. Clone and Install
|
66 |
+
```bash
|
67 |
+
git clone <repository-url>
|
68 |
+
cd portfolio
|
69 |
+
npm install
|
70 |
+
```
|
71 |
+
|
72 |
+
### 2. Choose Your RAG Backend
|
73 |
+
|
74 |
+
#### For Hugging Face Space (Easiest):
|
75 |
+
```bash
|
76 |
+
echo "VITE_USE_HUGGING_FACE=true" > .env
|
77 |
+
npm run dev
|
78 |
+
```
|
79 |
+
|
80 |
+
#### For Backend Server:
|
81 |
+
```bash
|
82 |
+
echo "VITE_USE_BACKEND=true" > .env
|
83 |
+
echo "VITE_BACKEND_URL=http://localhost:3001" >> .env
|
84 |
+
echo "VITE_DEEPSEEK_API_KEY=your_api_key" >> .env
|
85 |
+
|
86 |
+
# Start both frontend and backend
|
87 |
+
npm run dev:full
|
88 |
+
```
|
89 |
+
|
90 |
+
#### For Netlify Functions:
|
91 |
+
```bash
|
92 |
+
echo "VITE_DEEPSEEK_API_KEY=your_api_key" > .env
|
93 |
+
npm run dev
|
94 |
+
```
|
95 |
+
|
96 |
+
### 3. Open Browser
|
97 |
+
Visit `http://localhost:5173` to see the portfolio with RAGtim Bot!
|
98 |
+
|
99 |
+
## π RAGtim Bot Comparison
|
100 |
+
|
101 |
+
| Feature | Hugging Face | Backend Server | Netlify Functions |
|
102 |
+
|---------|-------------|----------------|-------------------|
|
103 |
+
| **Setup Complexity** | β Easy | βββ Complex | ββ Medium |
|
104 |
+
| **Performance** | βββ Excellent | βββ Excellent | ββ Good |
|
105 |
+
| **Cost** | π Free | π° Server costs | π° Function costs |
|
106 |
+
| **Scalability** | βββ Auto | ββ Manual | βββ Auto |
|
107 |
+
| **Customization** | ββ Limited | βββ Full | ββ Medium |
|
108 |
+
| **API Key Required** | β No | β
Yes | β
Yes |
|
109 |
+
|
110 |
+
## π― RAGtim Bot Capabilities
|
111 |
+
|
112 |
+
### What You Can Ask:
|
113 |
+
- **Research**: "What is Raktim's research about?"
|
114 |
+
- **Publications**: "Tell me about BioFusionNet"
|
115 |
+
- **Skills**: "What programming languages does he know?"
|
116 |
+
- **Experience**: "Where has he worked?"
|
117 |
+
- **Education**: "What degrees does he have?"
|
118 |
+
- **Statistics**: "What statistical methods does he use?"
|
119 |
+
- **Contact**: "How can I reach Raktim?"
|
120 |
+
|
121 |
+
### Technical Features:
|
122 |
+
- **Semantic Search**: Understanding context and meaning
|
123 |
+
- **Keyword Matching**: Exact term matching for precision
|
124 |
+
- **Conversation Memory**: Maintains chat history
|
125 |
+
- **Response Caching**: Fast repeated queries
|
126 |
+
- **Error Handling**: Graceful fallbacks and error messages
|
127 |
+
|
128 |
+
## π§ Development
|
129 |
+
|
130 |
+
### Frontend Development
|
131 |
+
```bash
|
132 |
+
npm run dev # Start development server
|
133 |
+
npm run build # Build for production
|
134 |
+
npm run preview # Preview production build
|
135 |
+
```
|
136 |
+
|
137 |
+
### Backend Development (if using backend server)
|
138 |
+
```bash
|
139 |
+
cd server
|
140 |
+
npm run dev # Start backend in development
|
141 |
+
npm run start # Start backend in production
|
142 |
+
npm run install-models # Pre-download AI models
|
143 |
+
```
|
144 |
+
|
145 |
+
### Full Stack Development
|
146 |
+
```bash
|
147 |
+
npm run dev:full # Start both frontend and backend
|
148 |
+
npm run build:full # Build both frontend and backend
|
149 |
+
```
|
150 |
+
|
151 |
+
## π Deployment
|
152 |
+
|
153 |
+
### Deploy to Netlify (with Hugging Face)
|
154 |
+
1. Set `VITE_USE_HUGGING_FACE=true` in Netlify environment variables
|
155 |
+
2. Deploy normally - no additional configuration needed!
|
156 |
+
|
157 |
+
### Deploy to Netlify (with Functions)
|
158 |
+
1. Set `VITE_DEEPSEEK_API_KEY` in Netlify environment variables
|
159 |
+
2. Netlify Functions will be automatically deployed
|
160 |
+
|
161 |
+
### Deploy Backend Server
|
162 |
+
Choose from:
|
163 |
+
- **Railway**: Easy deployment with automatic scaling
|
164 |
+
- **Render**: Free tier available, good for development
|
165 |
+
- **DigitalOcean**: Full control, various pricing options
|
166 |
+
- **AWS/GCP**: Enterprise-grade with advanced features
|
167 |
+
|
168 |
+
## π± Mobile Experience
|
169 |
+
|
170 |
+
- **Responsive Design**: Optimized for all screen sizes
|
171 |
+
- **Touch-Friendly**: Large buttons and easy navigation
|
172 |
+
- **Fast Loading**: Optimized assets and lazy loading
|
173 |
+
- **Offline Fallback**: Graceful degradation when offline
|
174 |
+
|
175 |
+
## π¨ Customization
|
176 |
+
|
177 |
+
### Themes
|
178 |
+
- Light and dark mode support
|
179 |
+
- Consistent color scheme throughout
|
180 |
+
- Smooth transitions and animations
|
181 |
+
|
182 |
+
### Content
|
183 |
+
- Easy content updates via markdown files
|
184 |
+
- Modular component structure
|
185 |
+
- Configurable sections and features
|
186 |
+
|
187 |
+
## π Security & Privacy
|
188 |
+
|
189 |
+
- **No Data Storage**: Conversations are not stored permanently
|
190 |
+
- **Secure APIs**: All API calls use HTTPS
|
191 |
+
- **Input Validation**: Prevents malicious inputs
|
192 |
+
- **Rate Limiting**: Prevents abuse and spam
|
193 |
+
|
194 |
+
## π Performance
|
195 |
+
|
196 |
+
- **Lighthouse Score**: 95+ across all metrics
|
197 |
+
- **Fast Loading**: Optimized bundle sizes
|
198 |
+
- **Efficient Caching**: Smart caching strategies
|
199 |
+
- **CDN Ready**: Optimized for global delivery
|
200 |
+
|
201 |
+
## π€ Contributing
|
202 |
+
|
203 |
+
1. Fork the repository
|
204 |
+
2. Create a feature branch
|
205 |
+
3. Make your changes
|
206 |
+
4. Test thoroughly
|
207 |
+
5. Submit a pull request
|
208 |
+
|
209 |
+
## π License
|
210 |
+
|
211 |
+
MIT License - see LICENSE file for details
|
212 |
+
|
213 |
+
## π Acknowledgments
|
214 |
+
|
215 |
+
- **Hugging Face**: For providing free GPU-accelerated AI hosting
|
216 |
+
- **OpenAI/DeepSeek**: For powerful language models
|
217 |
+
- **Netlify**: For seamless deployment and functions
|
218 |
+
- **React/Vite**: For the excellent development experience
|
219 |
+
- **Tailwind CSS**: For beautiful, responsive styling
|
220 |
+
|
221 |
---
|
222 |
|
223 |
+
**Live Demo**: [mondol.me](https://mondol.me)
|
224 |
+
**RAGtim Bot**: [Hugging Face Space](https://huggingface.co/spaces/raktimhugging/ragtim-bot)
|
225 |
|
226 |
+
Built with β€οΈ by Raktim Mondol
|