You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Note**: The `ollama-init` service automatically pulls required models (llama3.2:3b for LLM, nomic-embed-text for embeddings) on first startup. This may take 5-15 minutes depending on your connection.
135
133
136
134
-**Portfolio**: http://localhost:3000
137
135
-**Admin Dashboard**: http://localhost:3000/admin
@@ -191,8 +189,9 @@ npm run dev
191
189
# Then start the service
192
190
ollama serve
193
191
194
-
# Download the model
195
-
ollama pull llama3.2:3b
192
+
# Download the required models
193
+
ollama pull llama3.2:3b # LLM model
194
+
ollama pull nomic-embed-text # Embedding model
196
195
```
197
196
198
197
---
@@ -263,14 +262,26 @@ The portfolio uses an amber/gold color scheme. To customize:
263
262
3.**Components**: Modify Tailwind classes in component files
264
263
4.**Theme**: Adjust colors in `frontend/components/layout/ClientLayout.tsx`
265
264
266
-
### Change AI Model
267
-
268
-
To use a different Ollama model:
265
+
### Change AI Models
269
266
270
-
1. Update `OLLAMA_MODEL` in `backend/.env`
267
+
**To change the LLM model:**
268
+
1. Update `OLLAMA_MODEL` in `backend/.env` (or docker-compose.yml)
271
269
2. Pull the new model: `docker compose exec ollama ollama pull <model-name>`
272
270
3. Restart the backend: `docker compose restart backend`
273
271
272
+
**To change the embedding model:**
273
+
1. Update `EMBEDDING_MODEL` in `backend/.env` (or docker-compose.yml)
274
+
2. Pull the new model: `docker compose exec ollama ollama pull <model-name>`
275
+
3. Reset ChromaDB (embeddings have different dimensions):
276
+
```bash
277
+
docker compose down
278
+
docker volume rm portfolio_chroma_data
279
+
docker compose up -d
280
+
```
281
+
4. Re-ingest your documents
282
+
283
+
> **Note**: The backend auto-detects embedding dimension mismatches and resets the collection automatically on startup.
284
+
274
285
---
275
286
276
287
## 🔧 Docker Commands
@@ -519,11 +530,13 @@ docker compose up -d --build
> **Note**: If you change embedding models, the backend will auto-detect dimension mismatches and reset the collection on startup. You'll see a log message prompting you to re-ingest documents.
573
+
559
574
---
560
575
561
576
## 📚 Additional Resources
@@ -597,4 +612,3 @@ MIT License - feel free to use this for your own portfolio!
597
612
**Built with ❤️ using modern web technologies and AI**
0 commit comments