LukasBe commited on
Commit
e89eef9
·
verified ·
1 Parent(s): bcdf9e7

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +6 -4
  2. index.html +537 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Rag Knowledge Lab
3
- emoji: 🐢
4
- colorFrom: indigo
5
  colorTo: blue
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: rag-knowledge-lab
3
+ emoji: 🐳
4
+ colorFrom: gray
5
  colorTo: blue
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,537 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Knowledge Lab Blend | RAG × Lab Notebook × Version Control</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ .diff-added {
11
+ background-color: rgba(134, 239, 172, 0.3);
12
+ border-left: 3px solid rgba(74, 222, 128, 1);
13
+ }
14
+ .diff-removed {
15
+ background-color: rgba(252, 165, 165, 0.3);
16
+ border-left: 3px solid rgba(239, 68, 68, 1);
17
+ text-decoration: line-through;
18
+ }
19
+ .diff-changed {
20
+ background-color: rgba(253, 230, 138, 0.3);
21
+ border-left: 3px solid rgba(234, 179, 8, 1);
22
+ }
23
+ .timeline-item:not(:last-child)::after {
24
+ content: '';
25
+ position: absolute;
26
+ left: 24px;
27
+ top: 32px;
28
+ height: calc(100% - 32px);
29
+ width: 2px;
30
+ background-color: #e5e7eb;
31
+ }
32
+ .markdown-content h1 {
33
+ font-size: 1.5rem;
34
+ font-weight: 600;
35
+ margin: 1rem 0;
36
+ }
37
+ .markdown-content h2 {
38
+ font-size: 1.25rem;
39
+ font-weight: 600;
40
+ margin: 0.75rem 0;
41
+ }
42
+ .markdown-content p {
43
+ margin: 0.5rem 0;
44
+ }
45
+ .markdown-content ul, .markdown-content ol {
46
+ margin: 0.5rem 0;
47
+ padding-left: 1.5rem;
48
+ }
49
+ .markdown-content pre {
50
+ background-color: #f3f4f6;
51
+ padding: 0.75rem;
52
+ border-radius: 0.375rem;
53
+ overflow-x: auto;
54
+ margin: 0.75rem 0;
55
+ }
56
+ .markdown-content code {
57
+ background-color: #f3f4f6;
58
+ padding: 0.2rem 0.4rem;
59
+ border-radius: 0.25rem;
60
+ font-family: monospace;
61
+ }
62
+ .sidebar {
63
+ scrollbar-width: thin;
64
+ scrollbar-color: #9ca3af #f3f4f6;
65
+ }
66
+ .sidebar::-webkit-scrollbar {
67
+ width: 6px;
68
+ }
69
+ .sidebar::-webkit-scrollbar-track {
70
+ background: #f3f4f6;
71
+ }
72
+ .sidebar::-webkit-scrollbar-thumb {
73
+ background-color: #9ca3af;
74
+ border-radius: 3px;
75
+ }
76
+ </style>
77
+ </head>
78
+ <body class="bg-gray-50 text-gray-900 font-sans">
79
+ <div class="flex h-screen overflow-hidden">
80
+ <!-- Sidebar -->
81
+ <div class="hidden md:flex md:flex-shrink-0">
82
+ <div class="flex flex-col w-64 border-r border-gray-200 bg-white">
83
+ <div class="h-16 flex items-center px-4 border-b border-gray-200">
84
+ <div class="flex items-center">
85
+ <i class="fas fa-flask text-indigo-600 text-xl mr-2"></i>
86
+ <span class="text-xl font-semibold">Knowledge Lab</span>
87
+ </div>
88
+ </div>
89
+ <div class="flex flex-col flex-grow overflow-y-auto sidebar">
90
+ <div class="px-4 py-4">
91
+ <button id="newNotebookBtn" class="w-full flex items-center justify-center px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 transition-colors">
92
+ <i class="fas fa-plus mr-2"></i> New Notebook
93
+ </button>
94
+ </div>
95
+ <div class="px-4">
96
+ <div class="text-xs font-semibold text-gray-500 uppercase tracking-wider mb-2">Recent Notebooks</div>
97
+ <ul class="space-y-1">
98
+ <li>
99
+ <a href="#" class="flex items-center px-2 py-2 text-sm font-medium text-gray-900 rounded-md bg-gray-100">
100
+ <i class="fas fa-book mr-3 text-gray-500"></i>
101
+ Quantum Computing Basics
102
+ </a>
103
+ </li>
104
+ <li>
105
+ <a href="#" class="flex items-center px-2 py-2 text-sm font-medium text-gray-600 rounded-md hover:bg-gray-100">
106
+ <i class="fas fa-book mr-3 text-gray-400"></i>
107
+ Climate Change Models
108
+ </a>
109
+ </li>
110
+ <li>
111
+ <a href="#" class="flex items-center px-2 py-2 text-sm font-medium text-gray-600 rounded-md hover:bg-gray-100">
112
+ <i class="fas fa-book mr-3 text-gray-400"></i>
113
+ Neural Network Architectures
114
+ </a>
115
+ </li>
116
+ <li>
117
+ <a href="#" class="flex items-center px-2 py-2 text-sm font-medium text-gray-600 rounded-md hover:bg-gray-100">
118
+ <i class="fas fa-book mr-3 text-gray-400"></i>
119
+ CRISPR Technology Review
120
+ </a>
121
+ </li>
122
+ </ul>
123
+ </div>
124
+ <div class="px-4 mt-4">
125
+ <div class="text-xs font-semibold text-gray-500 uppercase tracking-wider mb-2">Shared With Me</div>
126
+ <ul class="space-y-1">
127
+ <li>
128
+ <a href="#" class="flex items-center px-2 py-2 text-sm font-medium text-gray-600 rounded-md hover:bg-gray-100">
129
+ <i class="fas fa-users mr-3 text-gray-400"></i>
130
+ Team Project - BioTech
131
+ </a>
132
+ </li>
133
+ <li>
134
+ <a href="#" class="flex items-center px-2 py-2 text-sm font-medium text-gray-600 rounded-md hover:bg-gray-100">
135
+ <i class="fas fa-users mr-3 text-gray-400"></i>
136
+ Research Collab - AI Ethics
137
+ </a>
138
+ </li>
139
+ </ul>
140
+ </div>
141
+ </div>
142
+ </div>
143
+ </div>
144
+
145
+ <!-- Main Content -->
146
+ <div class="flex flex-col flex-1 overflow-hidden">
147
+ <!-- Top Navigation -->
148
+ <div class="h-16 flex items-center justify-between border-b border-gray-200 bg-white px-4">
149
+ <div class="flex items-center">
150
+ <button class="md:hidden mr-2 text-gray-500">
151
+ <i class="fas fa-bars"></i>
152
+ </button>
153
+ <div class="text-lg font-medium">Quantum Computing Basics</div>
154
+ </div>
155
+ <div class="flex items-center space-x-4">
156
+ <div class="relative">
157
+ <button id="versionDropdownBtn" class="flex items-center text-gray-600 hover:text-gray-900">
158
+ <span class="mr-1">Version 1.2</span>
159
+ <i class="fas fa-chevron-down text-xs"></i>
160
+ </button>
161
+ <div id="versionDropdown" class="hidden absolute right-0 mt-2 w-56 bg-white rounded-md shadow-lg z-10 border border-gray-200">
162
+ <div class="py-1">
163
+ <div class="px-4 py-2 text-xs text-gray-500 border-b border-gray-100">Current Branch</div>
164
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">main</a>
165
+ <div class="px-4 py-2 text-xs text-gray-500 border-t border-b border-gray-100">Branches</div>
166
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">experiment/new-models</a>
167
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">fix/error-calculation</a>
168
+ <div class="px-4 py-2 text-xs text-gray-500 border-t border-b border-gray-100">Actions</div>
169
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">New Branch</a>
170
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Merge Changes</a>
171
+ </div>
172
+ </div>
173
+ </div>
174
+ <button class="flex items-center text-gray-600 hover:text-gray-900">
175
+ <i class="fas fa-share-alt mr-1"></i>
176
+ <span>Share</span>
177
+ </button>
178
+ <div class="flex items-center">
179
+ <img class="h-8 w-8 rounded-full" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
180
+ </div>
181
+ </div>
182
+ </div>
183
+
184
+ <!-- Notebook Content -->
185
+ <div class="flex flex-1 overflow-hidden">
186
+ <!-- Left Panel - Notebook Content -->
187
+ <div class="flex-1 flex flex-col overflow-hidden">
188
+ <div class="flex-1 overflow-y-auto p-6">
189
+ <!-- Experiment Setup -->
190
+ <div class="bg-white rounded-lg shadow-sm border border-gray-200 mb-6">
191
+ <div class="px-6 py-4 border-b border-gray-200">
192
+ <h2 class="text-lg font-semibold">Experiment Setup</h2>
193
+ </div>
194
+ <div class="p-6">
195
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
196
+ <div>
197
+ <label class="block text-sm font-medium text-gray-700 mb-1">Hypothesis</label>
198
+ <div class="bg-gray-50 p-3 rounded border border-gray-200">
199
+ Quantum computers can solve optimization problems faster than classical computers for certain problem classes, specifically in combinatorial optimization.
200
+ </div>
201
+ </div>
202
+ <div>
203
+ <label class="block text-sm font-medium text-gray-700 mb-1">Background</label>
204
+ <div class="bg-gray-50 p-3 rounded border border-gray-200">
205
+ Recent advances in quantum annealing and gate-model quantum computers show promise for optimization. Need to understand the specific problem classes where quantum advantage is provable.
206
+ </div>
207
+ </div>
208
+ </div>
209
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
210
+ <div>
211
+ <label class="block text-sm font-medium text-gray-700 mb-1">Answer Format</label>
212
+ <select class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md border bg-gray-50">
213
+ <option>Comparative Analysis</option>
214
+ <option>Technical Explanation</option>
215
+ <option>Literature Review</option>
216
+ <option>Mathematical Proof</option>
217
+ </select>
218
+ </div>
219
+ <div>
220
+ <label class="block text-sm font-medium text-gray-700 mb-1">Output Fidelity</label>
221
+ <select class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md border bg-gray-50">
222
+ <option>Analytical</option>
223
+ <option>Comparative</option>
224
+ <option>Shallow</option>
225
+ <option>In-depth</option>
226
+ </select>
227
+ </div>
228
+ <div>
229
+ <label class="block text-sm font-medium text-gray-700 mb-1">Sources</label>
230
+ <select class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md border bg-gray-50">
231
+ <option>Peer-reviewed Only</option>
232
+ <option>Preprints Included</option>
233
+ <option>Technical Reports</option>
234
+ <option>All Sources</option>
235
+ </select>
236
+ </div>
237
+ </div>
238
+ </div>
239
+ </div>
240
+
241
+ <!-- Results Section -->
242
+ <div class="bg-white rounded-lg shadow-sm border border-gray-200 mb-6">
243
+ <div class="px-6 py-4 border-b border-gray-200 flex justify-between items-center">
244
+ <h2 class="text-lg font-semibold">Results</h2>
245
+ <div class="flex space-x-2">
246
+ <button class="px-3 py-1 text-sm bg-indigo-600 text-white rounded hover:bg-indigo-700">
247
+ <i class="fas fa-sync-alt mr-1"></i> Rerun
248
+ </button>
249
+ <button class="px-3 py-1 text-sm border border-gray-300 rounded hover:bg-gray-50">
250
+ <i class="fas fa-code-branch mr-1"></i> Fork
251
+ </button>
252
+ </div>
253
+ </div>
254
+ <div class="p-6">
255
+ <!-- Retrieval Steps -->
256
+ <div class="mb-8">
257
+ <h3 class="text-md font-medium mb-3 flex items-center">
258
+ <i class="fas fa-search mr-2 text-indigo-500"></i> Retrieval Steps
259
+ </h3>
260
+ <div class="bg-gray-50 p-4 rounded border border-gray-200">
261
+ <div class="flex items-start mb-3">
262
+ <div class="flex-shrink-0 h-5 w-5 rounded-full bg-indigo-100 flex items-center justify-center mt-1">
263
+ <i class="fas fa-check text-indigo-600 text-xs"></i>
264
+ </div>
265
+ <div class="ml-3">
266
+ <p class="text-sm font-medium">Retrieved 12 papers from arXiv</p>
267
+ <p class="text-xs text-gray-500">Query: "quantum optimization speedup combinatorial"</p>
268
+ </div>
269
+ </div>
270
+ <div class="flex items-start mb-3">
271
+ <div class="flex-shrink-0 h-5 w-5 rounded-full bg-indigo-100 flex items-center justify-center mt-1">
272
+ <i class="fas fa-check text-indigo-600 text-xs"></i>
273
+ </div>
274
+ <div class="ml-3">
275
+ <p class="text-sm font-medium">Filtered to 5 relevant papers</p>
276
+ <p class="text-xs text-gray-500">Criteria: published in last 5 years, citation count > 50</p>
277
+ </div>
278
+ </div>
279
+ <div class="flex items-start">
280
+ <div class="flex-shrink-0 h-5 w-5 rounded-full bg-indigo-100 flex items-center justify-center mt-1">
281
+ <i class="fas fa-check text-indigo-600 text-xs"></i>
282
+ </div>
283
+ <div class="ml-3">
284
+ <p class="text-sm font-medium">Extracted key sections</p>
285
+ <p class="text-xs text-gray-500">Focus on methods and results sections</p>
286
+ </div>
287
+ </div>
288
+ </div>
289
+ </div>
290
+
291
+ <!-- Generated Answer -->
292
+ <div class="mb-8">
293
+ <h3 class="text-md font-medium mb-3 flex items-center">
294
+ <i class="fas fa-robot mr-2 text-indigo-500"></i> Generated Answer
295
+ </h3>
296
+ <div class="bg-gray-50 p-4 rounded border border-gray-200 markdown-content">
297
+ <h1>Quantum Speedup in Combinatorial Optimization</h1>
298
+
299
+ <p>Current evidence suggests quantum computers can provide polynomial to exponential speedups for certain combinatorial optimization problems, but with important caveats:</p>
300
+
301
+ <h2>Problem Classes with Proven Speedups</h2>
302
+ <ul>
303
+ <li><strong>Quadratic Unconstrained Binary Optimization (QUBO)</strong>: Quantum annealing shows 2-5x speedup on D-Wave for specific instances</li>
304
+ <li><strong>Graph Isomorphism</strong>: Theoretical speedup possible with Grover's algorithm (√N vs N)</li>
305
+ <li><strong>Traveling Salesman</strong>: Hybrid quantum-classical approaches show promise for medium-sized problems</li>
306
+ </ul>
307
+
308
+ <h2>Limitations</h2>
309
+ <p>The speedups are highly dependent on:</p>
310
+ <ol>
311
+ <li>Problem encoding efficiency</li>
312
+ <li>Noise levels in current quantum hardware</li>
313
+ <li>Comparison to highly optimized classical algorithms</li>
314
+ </ol>
315
+
316
+ <h2>Comparative Analysis</h2>
317
+ <pre>
318
+ Problem Classical Time Quantum Time Speedup
319
+ -------------------------------------------------------
320
+ Graph Partition O(2^n) O(√(2^n)) Exponential
321
+ MaxCut O(n^3) O(n^2) Polynomial
322
+ TSP O(n!) O(√(n!)) Exponential
323
+ </pre>
324
+ </div>
325
+ </div>
326
+
327
+ <!-- Sources -->
328
+ <div>
329
+ <h3 class="text-md font-medium mb-3 flex items-center">
330
+ <i class="fas fa-book-open mr-2 text-indigo-500"></i> Sources
331
+ </h3>
332
+ <div class="space-y-3">
333
+ <div class="flex items-start p-3 bg-gray-50 rounded border border-gray-200">
334
+ <div class="flex-shrink-0 mt-1">
335
+ <i class="fas fa-file-alt text-gray-400"></i>
336
+ </div>
337
+ <div class="ml-3">
338
+ <p class="text-sm font-medium">"Quantum Algorithms for Combinatorial Optimization" - Nature (2021)</p>
339
+ <p class="text-xs text-gray-500">DOI: 10.1038/s41586-021-03222-x | Cited by 142</p>
340
+ </div>
341
+ </div>
342
+ <div class="flex items-start p-3 bg-gray-50 rounded border border-gray-200">
343
+ <div class="flex-shrink-0 mt-1">
344
+ <i class="fas fa-file-alt text-gray-400"></i>
345
+ </div>
346
+ <div class="ml-3">
347
+ <p class="text-sm font-medium">"Practical Quantum Speedups for Optimization" - PRX Quantum (2022)</p>
348
+ <p class="text-xs text-gray-500">DOI: 10.1103/PRXQuantum.3.020304 | Cited by 87</p>
349
+ </div>
350
+ </div>
351
+ <div class="flex items-start p-3 bg-gray-50 rounded border border-gray-200">
352
+ <div class="flex-shrink-0 mt-1">
353
+ <i class="fas fa-file-alt text-gray-400"></i>
354
+ </div>
355
+ <div class="ml-3">
356
+ <p class="text-sm font-medium">"Limits of Quantum Speedup in Optimization" - Quantum (2020)</p>
357
+ <p class="text-xs text-gray-500">DOI: 10.22331/q-2020-10-12-342 | Cited by 203</p>
358
+ </div>
359
+ </div>
360
+ </div>
361
+ </div>
362
+ </div>
363
+ </div>
364
+
365
+ <!-- Version History -->
366
+ <div class="bg-white rounded-lg shadow-sm border border-gray-200">
367
+ <div class="px-6 py-4 border-b border-gray-200">
368
+ <h2 class="text-lg font-semibold">Version History</h2>
369
+ </div>
370
+ <div class="p-6">
371
+ <div class="space-y-6">
372
+ <!-- Version Item -->
373
+ <div class="relative pl-10 timeline-item">
374
+ <div class="absolute left-0 top-0 h-6 w-6 rounded-full bg-indigo-100 flex items-center justify-center">
375
+ <i class="fas fa-code-commit text-indigo-600 text-xs"></i>
376
+ </div>
377
+ <div class="bg-gray-50 p-4 rounded border border-gray-200">
378
+ <div class="flex justify-between items-start mb-2">
379
+ <div>
380
+ <span class="text-sm font-medium">Version 1.2</span>
381
+ <span class="ml-2 px-2 py-1 text-xs bg-indigo-100 text-indigo-800 rounded-full">Current</span>
382
+ </div>
383
+ <div class="text-xs text-gray-500">2 hours ago</div>
384
+ </div>
385
+ <div class="text-sm mb-2">Refined hypothesis and added comparative analysis table</div>
386
+ <div class="text-xs text-gray-500">Commit by Dr. Alice Chen</div>
387
+ </div>
388
+ </div>
389
+
390
+ <!-- Version Item -->
391
+ <div class="relative pl-10 timeline-item">
392
+ <div class="absolute left-0 top-0 h-6 w-6 rounded-full bg-gray-100 flex items-center justify-center">
393
+ <i class="fas fa-code-commit text-gray-600 text-xs"></i>
394
+ </div>
395
+ <div class="bg-gray-50 p-4 rounded border border-gray-200">
396
+ <div class="flex justify-between items-start mb-2">
397
+ <div>
398
+ <span class="text-sm font-medium">Version 1.1</span>
399
+ </div>
400
+ <div class="text-xs text-gray-500">1 day ago</div>
401
+ </div>
402
+ <div class="text-sm mb-2">Added limitations section based on peer feedback</div>
403
+ <div class="text-xs text-gray-500">Commit by Dr. Bob Johnson</div>
404
+ </div>
405
+ </div>
406
+
407
+ <!-- Version Item -->
408
+ <div class="relative pl-10 timeline-item">
409
+ <div class="absolute left-0 top-0 h-6 w-6 rounded-full bg-gray-100 flex items-center justify-center">
410
+ <i class="fas fa-code-commit text-gray-600 text-xs"></i>
411
+ </div>
412
+ <div class="bg-gray-50 p-4 rounded border border-gray-200">
413
+ <div class="flex justify-between items-start mb-2">
414
+ <div>
415
+ <span class="text-sm font-medium">Version 1.0</span>
416
+ </div>
417
+ <div class="text-xs text-gray-500">3 days ago</div>
418
+ </div>
419
+ <div class="text-sm mb-2">Initial experiment setup and first results</div>
420
+ <div class="text-xs text-gray-500">Commit by Dr. Alice Chen</div>
421
+ </div>
422
+ </div>
423
+ </div>
424
+ </div>
425
+ </div>
426
+ </div>
427
+ </div>
428
+
429
+ <!-- Right Panel - Diff Viewer -->
430
+ <div class="hidden lg:flex lg:w-96 flex-shrink-0 border-l border-gray-200 bg-white overflow-y-auto">
431
+ <div class="w-full p-6">
432
+ <div class="flex items-center justify-between mb-4">
433
+ <h2 class="text-lg font-semibold">Version Comparison</h2>
434
+ <div class="flex space-x-2">
435
+ <select class="text-sm border-gray-300 rounded-md bg-gray-50">
436
+ <option>v1.2 (Current)</option>
437
+ <option>v1.1</option>
438
+ <option>v1.0</option>
439
+ </select>
440
+ <select class="text-sm border-gray-300 rounded-md bg-gray-50">
441
+ <option>v1.1</option>
442
+ <option>v1.0</option>
443
+ </select>
444
+ </div>
445
+ </div>
446
+
447
+ <div class="space-y-4">
448
+ <div>
449
+ <div class="text-sm font-medium mb-2">Hypothesis Changes</div>
450
+ <div class="text-sm p-3 rounded diff-added">
451
+ <p>Quantum computers can solve optimization problems faster than classical computers for certain problem classes, specifically in combinatorial optimization.</p>
452
+ </div>
453
+ <div class="text-sm p-3 rounded diff-removed mt-1">
454
+ <p>Quantum computers are faster than classical computers for optimization problems.</p>
455
+ </div>
456
+ </div>
457
+
458
+ <div>
459
+ <div class="text-sm font-medium mb-2">Added Content</div>
460
+ <div class="text-sm p-3 rounded diff-added">
461
+ <h3>Comparative Analysis</h3>
462
+ <pre>
463
+ Problem Classical Time Quantum Time Speedup
464
+ -------------------------------------------------------
465
+ Graph Partition O(2^n) O(√(2^n)) Exponential
466
+ MaxCut O(n^3) O(n^2) Polynomial
467
+ TSP O(n!) O(√(n!)) Exponential
468
+ </pre>
469
+ </div>
470
+ </div>
471
+
472
+ <div>
473
+ <div class="text-sm font-medium mb-2">Modified Content</div>
474
+ <div class="text-sm p-3 rounded diff-changed">
475
+ <p>The speedups are highly dependent on:</p>
476
+ <ol>
477
+ <li>Problem encoding efficiency</li>
478
+ <li class="diff-added">Noise levels in current quantum hardware</li>
479
+ <li>Comparison to highly optimized classical algorithms</li>
480
+ </ol>
481
+ </div>
482
+ </div>
483
+
484
+ <div>
485
+ <div class="text-sm font-medium mb-2">Peer Feedback</div>
486
+ <div class="bg-blue-50 p-3 rounded border border-blue-200">
487
+ <div class="flex items-start">
488
+ <img class="h-6 w-6 rounded-full mr-2" src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
489
+ <div>
490
+ <p class="text-sm font-medium">Dr. Sarah Williams</p>
491
+ <p class="text-xs text-gray-600">"Consider adding more quantitative comparisons between quantum and classical approaches."</p>
492
+ <div class="flex items-center mt-1 text-xs text-gray-500">
493
+ <i class="fas fa-thumbs-up text-blue-500 mr-1"></i> 3
494
+ <i class="fas fa-thumbs-down text-gray-400 ml-2 mr-1"></i> 0
495
+ </div>
496
+ </div>
497
+ </div>
498
+ </div>
499
+ </div>
500
+ </div>
501
+ </div>
502
+ </div>
503
+ </div>
504
+ </div>
505
+ </div>
506
+
507
+ <script>
508
+ // Toggle version dropdown
509
+ document.getElementById('versionDropdownBtn').addEventListener('click', function() {
510
+ const dropdown = document.getElementById('versionDropdown');
511
+ dropdown.classList.toggle('hidden');
512
+ });
513
+
514
+ // Close dropdown when clicking outside
515
+ document.addEventListener('click', function(event) {
516
+ const dropdownBtn = document.getElementById('versionDropdownBtn');
517
+ const dropdown = document.getElementById('versionDropdown');
518
+
519
+ if (!dropdownBtn.contains(event.target) && !dropdown.contains(event.target)) {
520
+ dropdown.classList.add('hidden');
521
+ }
522
+ });
523
+
524
+ // New notebook button
525
+ document.getElementById('newNotebookBtn').addEventListener('click', function() {
526
+ alert('Opening new notebook session...');
527
+ // In a real app, this would open a modal or new page for experiment setup
528
+ });
529
+
530
+ // Simulate markdown rendering (in a real app, you'd use a proper markdown renderer)
531
+ document.querySelectorAll('.markdown-content').forEach(el => {
532
+ // This is just a placeholder - in reality you'd use a library like marked.js
533
+ // Here we're just demonstrating the styled output
534
+ });
535
+ </script>
536
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=LukasBe/rag-knowledge-lab" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
537
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ The Knowledge Lab Blend: RAG × lab notebook × Git version control × crowdsourced science Key ideas: Queries start as experiments: user opens a “notebook session”. The system walks the user through: hypothesis background expected format of answer output fidelity (shallow, analytical, comparative, etc.) All retrieval and reasoning steps are tracked and visualized, versioned like Git commits. If answers change or contradict over time, the system shows a diff. Users and teams can fork, compare, and merge explorations. User reviews are logged for collaborative RL: improving retrieval, chunking, and generation over time. ⚗️ Think of this as RAG for scientific or critical thinkers — answers are traceable, inspectable, and revisable.