-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFolder Strcture
More file actions
38 lines (38 loc) · 1.5 KB
/
Folder Strcture
File metadata and controls
38 lines (38 loc) · 1.5 KB
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
montfort-chatbot/
│
├── frontend/
│ ├── index.html
│ ├── css/
│ │ └── style.css
│ ├── js/
│ │ ├── ui.js ← UI logic only
│ │ ├── chat.js ← Sends question to backend
│ │ ├── sound.js ← Typing/open/close sounds
│ │ └── config.js ← Frontend settings
│ ├── assets/
│ │ ├── typing.mp3
│ │ ├── delivered.mp3
│ │ └── open.mp3
│ │ └── close.mp3
│ └── data/
│ └── (empty – no JSON here)
│
├── backend/
│ ├── server.js ← Express backend
│ ├── routers/
│ │ └── chatRoute.js ← /api/chat endpoint
│ ├── rag/
│ │ ├── semantic-search.js ← cosine similarity
│ │ ├── embeddings.json ← auto-generated vectors
│ │ ├── school-data.json ← your original 1000 Q&A
│ │ └── generate-embeddings.js← Node tool to build embeddings
│ ├── controllers/
│ │ └── chatController.js ← embedding match + LLM rewrite
│ ├── services/
│ │ └── geminiService.js ← API calls securely
│ ├── config/
│ │ └── env.js ← API keys & settings
│ ├── package.json
│ └── .env ← GEMINI_API_KEY (hidden)
│
└── README.md