-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.html
263 lines (245 loc) Β· 9.01 KB
/
install.html
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NST AI - Your Personal Study Companion</title>
<style>
/* Basic styling */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Orbitron', sans-serif;
background-color: #0d0d0d;
color: #e0e0e0;
line-height: 1.6;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 40px;
}
.container {
max-width: 1200px;
width: 100%;
background-color: #1a1a1a;
padding: 40px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
border: 1px solid #3498db;
}
h1, h2 {
color: #3498db;
text-align: center;
margin-bottom: 30px;
}
h1 {
font-size: 36px;
position: relative;
}
h1::after {
content: "π";
font-size: 40px;
position: absolute;
right: -15px;
top: -15px;
}
h2::before {
content: "π ";
}
ul, ol {
margin-left: 30px;
}
.code-block {
background-color: #2e2e2e;
color: #f8f8f2;
padding: 20px;
border-radius: 5px;
font-family: "Courier New", Courier, monospace;
overflow-x: auto;
margin: 20px 0;
}
.btn {
display: inline-block;
padding: 15px 30px;
background-color: #3498db;
color: #fff;
text-decoration: none;
border-radius: 5px;
text-align: center;
transition: background 0.3s ease;
cursor: pointer;
}
.btn:hover {
background-color: #2980b9;
}
.note {
font-size: 16px;
color: #7f8c8d;
margin-top: 15px;
}
/* Steps styling */
.step {
margin-bottom: 25px;
}
.step-title {
font-weight: bold;
font-size: 20px;
color: #3498db;
}
.icon {
font-size: 24px;
color: #3498db;
margin-right: 10px;
vertical-align: middle;
}
/* Installation Guide */
.steps-container {
margin-top: 30px;
}
/* Toggle visibility of code */
.toggle {
font-size: 16px;
color: #3498db;
cursor: pointer;
margin-top: 10px;
display: inline-block;
}
/* Tooltip */
.tooltip {
position: relative;
display: inline-block;
}
.tooltip-text {
visibility: hidden;
width: 180px;
background-color: #333;
color: #fff;
text-align: center;
padding: 10px;
border-radius: 5px;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -90px;
opacity: 0;
transition: opacity 0.3s;
}
.tooltip:hover .tooltip-text {
visibility: visible;
opacity: 1;
}
/* Sci-fi animations */
@keyframes glow {
0% {
box-shadow: 0 0 5px #3498db, 0 0 10px #3498db, 0 0 20px #3498db, 0 0 40px #3498db;
}
50% {
box-shadow: 0 0 10px #3498db, 0 0 20px #3498db, 0 0 40px #3498db, 0 0 80px #3498db;
}
100% {
box-shadow: 0 0 5px #3498db, 0 0 10px #3498db, 0 0 20px #3498db, 0 0 40px #3498db;
}
}
.glow {
animation: glow 1.5s infinite alternate;
}
</style>
</head>
<body>
<div class="container">
<h1 class="glow">NST AI - Your Personal Study Companion</h1>
<p>Welcome to <strong>NST AI</strong> β your AI-powered study buddy designed specifically for Newton School of Technologies! With NST AI, you can ask questions, summarize lectures, and interact with your notes offline using state-of-the-art language models like <strong>Mistral 7b LLM</strong> and <strong>Nomic Embed Text</strong>. Follow the steps below to set up NST AI on macOS.</p>
<h2>π Features</h2>
<ul>
<li>π¬ <strong>Ask AI Anything</strong>: Get instant answers to questions about your lectures and notes.</li>
<li>π <strong>Summarize Notes</strong>: Automatically summarize classes, lectures, and key study topics.</li>
<li>π <strong>Offline Access</strong>: Access powerful LLM capabilities without an internet connection.</li>
</ul>
<h2>π Prerequisites</h2>
<p>Before you start, make sure the following are installed on your Mac:</p>
<ul>
<li>π <strong>Python 3.11</strong> [<a href="https://www.python.org/downloads/" target="_blank">Download here</a>]</li>
<li>πΊ <strong>Homebrew</strong> [<a href="https://brew.sh/" target="_blank">Install Homebrew</a>]</li>
</ul>
<h2>βοΈ Installation Guide</h2>
<div class="steps-container">
<div class="step">
<span class="step-title"><span class="icon">π</span>Step 1: Update Pip</span>
<div class="code-block">
<code>pip install pip --upgrade</code>
</div>
</div>
<!-- <div class="step">
<span class="step-title"><span class="icon">π¦</span>Step 2: Install Poetry</span>
<div class="code-block"></div>
<code>pip install poetry<br>poetry --version</code>
</div>
</div> -->
<div class="step">
<span class="step-title"><span class="icon">π¦</span>Step 2: Install Poetry</span>
<div class="code-block">
<code>pip install poetry<br>poetry --version</code>
</div>
</div>
<div class="step"></div>
<span class="step-title"><span class="icon">π</span>Step 3: Install Ollama.ai</span>
<p><strong>Visit Ollamaβs official website</strong> and download the macOS version. After downloading, unzip the file, open it, and follow the instructions to move Ollama to your Applications folder.</p>
<p class="note">Important: Quit Ollama from the taskbar by selecting Quit Ollama.</p>
</div>
<div class="step">
<span class="step-title"><span class="icon">π₯</span>Step 4: Download LLM Models</span>
<div class="code-block">
<code>ollama pull mistral<br>ollama pull nomic-embed-text</code>
</div>
</div>
<div class="step"></div>
<span class="step-title"><span class="icon">π₯οΈ</span>Step 5: Start Ollama Service</span>
<div class="code-block">
<code>ollama serve</code>
</div>
<p class="note">β οΈ Note: If you see <em>Error: listen tcp 127.0.0.1:11434: bind: address already in use</em>, Ollama is already running. Close it from the taskbar and try again.</p>
</div>
<div class="step"></div>
<span class="step-title"><span class="icon">π οΈ</span>Step 6: Install Ollama LLM with Poetry</span>
<div class="code-block">
<code>poetry install --extras "ui llms-ollama embeddings-ollama vector-stores-qdrant"</code>
</div>
</div>
<div class="step"></div>
<span class="step-title"><span class="icon">π</span>Step 7: Run NST AI</span>
<div class="code-block">
<code>PGPT_PROFILES=ollama make run</code>
</div>
<p class="note">Access NST AI in your browser at <a href="http://localhost:8001" target="_blank">http://localhost:8001</a>.</p>
</div>
</div>
<h2>π Troubleshooting</h2>
<p>If NST AI is slow or if you experience GPU issues, modify the timeout setting:</p>
<div class="code-block">
<code>Open <strong>components/llm/llm_component.py</strong> and add:<br><br>request_timeout=300</code>
</div>
<h2>π₯ Video Tutorial</h2>
<p>Check out our video tutorial for a step-by-step guide on installing and setting up NST AI.</p>
<h2>π Final Note</h2>
<p>NST AI is here to enhance student learning at NST, making studying easier and more efficient.</p>
</div>
<script>
// JavaScript for interactive elements
document.querySelectorAll('.toggle').forEach(toggle => {
toggle.addEventListener('click', () => {
const codeBlock = toggle.nextElementSibling;
if (codeBlock.style.display === 'none') {
codeBlock.style.display = 'block';
} else {
codeBlock.style.display = 'none';
}
});
});
</script>
</body>
</html></div>