File size: 51,761 Bytes
fe1688a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SciReviewAI - Customizing LLMs for Scientific Literature Review</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        .gradient-bg {
            background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%);
        }
        .paper-card {
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        .paper-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        }
        .citation-highlight {
            background-color: rgba(254, 240, 138, 0.5);
            padding: 0.1rem 0.2rem;
            border-radius: 0.2rem;
        }
        .domain-tag {
            font-size: 0.75rem;
            padding: 0.2rem 0.5rem;
            border-radius: 1rem;
        }
        .summary-text {
            line-height: 1.6;
        }
        .loading-pulse {
            animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        .scrollbar-hide::-webkit-scrollbar {
            display: none;
        }
    </style>
</head>
<body class="bg-gray-50 min-h-screen">
    <!-- Navigation -->
    <nav class="gradient-bg text-white shadow-lg">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex items-center justify-between h-16">
                <div class="flex items-center">
                    <div class="flex-shrink-0">
                        <i class="fas fa-microscope text-2xl"></i>
                    </div>
                    <div class="hidden md:block">
                        <div class="ml-10 flex items-baseline space-x-4">
                            <a href="#" class="px-3 py-2 rounded-md text-sm font-medium bg-blue-900 text-white">Dashboard</a>
                            <a href="#" class="px-3 py-2 rounded-md text-sm font-medium text-blue-200 hover:text-white">Literature Review</a>
                            <a href="#" class="px-3 py-2 rounded-md text-sm font-medium text-blue-200 hover:text-white">Methodology</a>
                            <a href="#" class="px-3 py-2 rounded-md text-sm font-medium text-blue-200 hover:text-white">Experiments</a>
                            <a href="#" class="px-3 py-2 rounded-md text-sm font-medium text-blue-200 hover:text-white">Feedback</a>
                        </div>
                    </div>
                </div>
                <div class="hidden md:block">
                    <div class="ml-4 flex items-center md:ml-6">
                        <button class="p-1 rounded-full text-blue-200 hover:text-white focus:outline-none">
                            <i class="fas fa-bell"></i>
                        </button>
                        <div class="ml-3 relative">
                            <div>
                                <button class="max-w-xs flex items-center text-sm rounded-full focus:outline-none">
                                    <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="">
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="-mr-2 flex md:hidden">
                    <button class="inline-flex items-center justify-center p-2 rounded-md text-blue-200 hover:text-white focus:outline-none">
                        <i class="fas fa-bars"></i>
                    </button>
                </div>
            </div>
        </div>
    </nav>

    <!-- Header -->
    <header class="gradient-bg shadow">
        <div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
            <div class="flex items-center justify-between">
                <h1 class="text-3xl font-bold text-white">
                    SciReviewAI: LLM-RAG for Literature Review
                </h1>
                <div class="flex space-x-3">
                    <button class="flex items-center px-4 py-2 bg-white text-blue-800 rounded-md hover:bg-blue-50">
                        <i class="fas fa-file-export mr-2"></i> Export to Zotero
                    </button>
                    <button class="flex items-center px-4 py-2 bg-blue-800 text-white rounded-md hover:bg-blue-700">
                        <i class="fas fa-plus mr-2"></i> New Review
                    </button>
                </div>
            </div>
            <p class="mt-2 text-blue-200 max-w-3xl">
                A refined approach to customizing Large Language Models with Retrieval-Augmented Generation for multi-domain scientific literature review.
            </p>
        </div>
    </header>

    <main class="max-w-7xl mx-auto py-6 sm:px-6 lg:px-8">
        <!-- Search and Filters -->
        <div class="px-4 sm:px-0 mb-8">
            <div class="bg-white shadow rounded-lg p-6">
                <div class="flex flex-col md:flex-row md:items-end md:space-x-4">
                    <div class="flex-1">
                        <label for="search" class="block text-sm font-medium text-gray-700">Literature Search</label>
                        <div class="mt-1 relative rounded-md shadow-sm">
                            <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                                <i class="fas fa-search text-gray-400"></i>
                            </div>
                            <input type="text" name="search" id="search" class="focus:ring-blue-500 focus:border-blue-500 block w-full pl-10 sm:text-sm border-gray-300 rounded-md p-3 border" placeholder="Enter your research question or keywords...">
                        </div>
                    </div>
                    <div class="mt-4 md:mt-0">
                        <label for="database" class="block text-sm font-medium text-gray-700">Database</label>
                        <select id="database" name="database" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
                            <option selected>All Databases</option>
                            <option>PubMed</option>
                            <option>arXiv</option>
                            <option>IEEE Xplore</option>
                            <option>Google Scholar</option>
                        </select>
                    </div>
                    <div class="mt-4 md:mt-0">
                        <label for="timeframe" class="block text-sm font-medium text-gray-700">Timeframe</label>
                        <select id="timeframe" name="timeframe" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
                            <option selected>All Years</option>
                            <option>Last 5 Years</option>
                            <option>Last 3 Years</option>
                            <option>Last Year</option>
                        </select>
                    </div>
                    <button type="button" class="mt-4 md:mt-0 inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
                        Search
                    </button>
                </div>
                <div class="mt-4 flex flex-wrap gap-2">
                    <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800">
                        <i class="fas fa-dna mr-1"></i> Biomedical
                    </span>
                    <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">
                        <i class="fas fa-robot mr-1"></i> AI/ML
                    </span>
                    <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-purple-100 text-purple-800">
                        <i class="fas fa-bolt mr-1"></i> Engineering
                    </span>
                    <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800">
                        <i class="fas fa-atom mr-1"></i> Physics
                    </span>
                    <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800">
                        <i class="fas fa-square-root-alt mr-1"></i> Math
                    </span>
                </div>
            </div>
        </div>

        <!-- Main Content -->
        <div class="flex flex-col lg:flex-row gap-6 px-4 sm:px-0">
            <!-- Left Column - Search Results -->
            <div class="lg:w-2/3">
                <div class="bg-white shadow rounded-lg overflow-hidden">
                    <div class="px-4 py-5 sm:px-6 border-b border-gray-200">
                        <div class="flex items-center justify-between">
                            <h3 class="text-lg leading-6 font-medium text-gray-900">
                                <i class="fas fa-book-open mr-2 text-blue-500"></i> Retrieved Papers
                            </h3>
                            <span class="text-sm text-gray-500">42 results</span>
                        </div>
                    </div>
                    <div class="bg-gray-50 px-4 py-4 flex items-center justify-between border-b border-gray-200">
                        <div class="flex-1 flex">
                            <div class="relative w-full max-w-xs">
                                <label for="sort" class="sr-only">Sort</label>
                                <select id="sort" name="sort" class="block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
                                    <option selected>Sort by Relevance</option>
                                    <option>Sort by Date (Newest)</option>
                                    <option>Sort by Date (Oldest)</option>
                                    <option>Sort by Citations</option>
                                </select>
                            </div>
                        </div>
                        <div class="ml-4 flex items-center">
                            <button type="button" class="p-2 text-gray-400 hover:text-gray-500">
                                <i class="fas fa-th-large"></i>
                            </button>
                            <button type="button" class="ml-2 p-2 text-gray-400 hover:text-gray-500">
                                <i class="fas fa-list"></i>
                            </button>
                        </div>
                    </div>
                    <div class="divide-y divide-gray-200 max-h-[600px] overflow-y-auto scrollbar-hide">
                        <!-- Paper Card 1 -->
                        <div class="paper-card p-4 hover:bg-blue-50 cursor-pointer">
                            <div class="flex items-start">
                                <div class="flex-shrink-0 pt-1">
                                    <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center">
                                        <i class="fas fa-file-alt text-blue-600"></i>
                                    </div>
                                </div>
                                <div class="ml-3 flex-1">
                                    <div class="flex items-center justify-between">
                                        <h4 class="text-sm font-medium text-blue-600">Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks</h4>
                                        <span class="text-xs text-gray-500">arXiv 2020</span>
                                    </div>
                                    <p class="mt-1 text-sm text-gray-600">Lewis et al. propose RAG models that combine pre-trained parametric and non-parametric memory for language generation.</p>
                                    <div class="mt-2 flex flex-wrap gap-1">
                                        <span class="domain-tag bg-blue-100 text-blue-800"><i class="fas fa-brain mr-1"></i> NLP</span>
                                        <span class="domain-tag bg-purple-100 text-purple-800"><i class="fas fa-network-wired mr-1"></i> RAG</span>
                                        <span class="domain-tag bg-green-100 text-green-800"><i class="fas fa-project-diagram mr-1"></i> Architecture</span>
                                    </div>
                                    <div class="mt-2 flex items-center text-xs text-gray-500">
                                        <span class="flex items-center mr-3">
                                            <i class="fas fa-quote-right mr-1"></i> 124 citations
                                        </span>
                                        <span class="flex items-center">
                                            <i class="fas fa-download mr-1"></i> PDF available
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- Paper Card 2 -->
                        <div class="paper-card p-4 hover:bg-blue-50 cursor-pointer">
                            <div class="flex items-start">
                                <div class="flex-shrink-0 pt-1">
                                    <div class="w-8 h-8 rounded-full bg-green-100 flex items-center justify-center">
                                        <i class="fas fa-dna text-green-600"></i>
                                    </div>
                                </div>
                                <div class="ml-3 flex-1">
                                    <div class="flex items-center justify-between">
                                        <h4 class="text-sm font-medium text-blue-600">BioBERT: a pre-trained biomedical language representation model for biomedical text mining</h4>
                                        <span class="text-xs text-gray-500">Bioinformatics 2020</span>
                                    </div>
                                    <p class="mt-1 text-sm text-gray-600">Lee et al. present BioBERT, a domain-specific language representation model pre-trained on large-scale biomedical corpora.</p>
                                    <div class="mt-2 flex flex-wrap gap-1">
                                        <span class="domain-tag bg-blue-100 text-blue-800"><i class="fas fa-dna mr-1"></i> Biomedical</span>
                                        <span class="domain-tag bg-red-100 text-red-800"><i class="fas fa-language mr-1"></i> BERT</span>
                                        <span class="domain-tag bg-yellow-100 text-yellow-800"><i class="fas fa-flask mr-1"></i> Text Mining</span>
                                    </div>
                                    <div class="mt-2 flex items-center text-xs text-gray-500">
                                        <span class="flex items-center mr-3">
                                            <i class="fas fa-quote-right mr-1"></i> 892 citations
                                        </span>
                                        <span class="flex items-center">
                                            <i class="fas fa-download mr-1"></i> PDF available
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- Paper Card 3 -->
                        <div class="paper-card p-4 hover:bg-blue-50 cursor-pointer">
                            <div class="flex items-start">
                                <div class="flex-shrink-0 pt-1">
                                    <div class="w-8 h-8 rounded-full bg-purple-100 flex items-center justify-center">
                                        <i class="fas fa-chart-line text-purple-600"></i>
                                    </div>
                                </div>
                                <div class="ml-3 flex-1">
                                    <div class="flex items-center justify-between">
                                        <h4 class="text-sm font-medium text-blue-600">Domain-Specific Language Model Pretraining for Biomedical Natural Language Processing</h4>
                                        <span class="text-xs text-gray-500">ACM 2021</span>
                                    </div>
                                    <p class="mt-1 text-sm text-gray-600">Gu et al. investigate different strategies for pretraining language models in the biomedical domain and evaluate them on biomedical NLP tasks.</p>
                                    <div class="mt-2 flex flex-wrap gap-1">
                                        <span class="domain-tag bg-blue-100 text-blue-800"><i class="fas fa-dna mr-1"></i> Biomedical</span>
                                        <span class="domain-tag bg-green-100 text-green-800"><i class="fas fa-language mr-1"></i> Pretraining</span>
                                        <span class="domain-tag bg-purple-100 text-purple-800"><i class="fas fa-tasks mr-1"></i> Evaluation</span>
                                    </div>
                                    <div class="mt-2 flex items-center text-xs text-gray-500">
                                        <span class="flex items-center mr-3">
                                            <i class="fas fa-quote-right mr-1"></i> 256 citations
                                        </span>
                                        <span class="flex items-center">
                                            <i class="fas fa-download mr-1"></i> PDF available
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- Paper Card 4 -->
                        <div class="paper-card p-4 hover:bg-blue-50 cursor-pointer">
                            <div class="flex items-start">
                                <div class="flex-shrink-0 pt-1">
                                    <div class="w-8 h-8 rounded-full bg-yellow-100 flex items-center justify-center">
                                        <i class="fas fa-cogs text-yellow-600"></i>
                                    </div>
                                </div>
                                <div class="ml-3 flex-1">
                                    <div class="flex items-center justify-between">
                                        <h4 class="text-sm font-medium text-blue-600">Efficient Retrieval-Augmented Generation for Scientific Literature Review</h4>
                                        <span class="text-xs text-gray-500">Nature Methods 2022</span>
                                    </div>
                                    <p class="mt-1 text-sm text-gray-600">Zhang et al. propose a hybrid retrieval-generation framework specifically optimized for scientific literature review tasks.</p>
                                    <div class="mt-2 flex flex-wrap gap-1">
                                        <span class="domain-tag bg-blue-100 text-blue-800"><i class="fas fa-book-reader mr-1"></i> Literature Review</span>
                                        <span class="domain-tag bg-green-100 text-green-800"><i class="fas fa-search mr-1"></i> Retrieval</span>
                                        <span class="domain-tag bg-purple-100 text-purple-800"><i class="fas fa-robot mr-1"></i> Generation</span>
                                    </div>
                                    <div class="mt-2 flex items-center text-xs text-gray-500">
                                        <span class="flex items-center mr-3">
                                            <i class="fas fa-quote-right mr-1"></i> 78 citations
                                        </span>
                                        <span class="flex items-center">
                                            <i class="fas fa-download mr-1"></i> PDF available
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- Paper Card 5 -->
                        <div class="paper-card p-4 hover:bg-blue-50 cursor-pointer">
                            <div class="flex items-start">
                                <div class="flex-shrink-0 pt-1">
                                    <div class="w-8 h-8 rounded-full bg-red-100 flex items-center justify-center">
                                        <i class="fas fa-project-diagram text-red-600"></i>
                                    </div>
                                </div>
                                <div class="ml-3 flex-1">
                                    <div class="flex items-center justify-between">
                                        <h4 class="text-sm font-medium text-blue-600">Multi-Domain Adaptation for Scientific Literature Summarization</h4>
                                        <span class="text-xs text-gray-500">AAAI 2023</span>
                                    </div>
                                    <p class="mt-1 text-sm text-gray-600">Wang et al. present a novel approach for adapting summarization models across multiple scientific domains with minimal retraining.</p>
                                    <div class="mt-2 flex flex-wrap gap-1">
                                        <span class="domain-tag bg-blue-100 text-blue-800"><i class="fas fa-globe mr-1"></i> Multi-Domain</span>
                                        <span class="domain-tag bg-green-100 text-green-800"><i class="fas fa-random mr-1"></i> Adaptation</span>
                                        <span class="domain-tag bg-purple-100 text-purple-800"><i class="fas fa-file-contract mr-1"></i> Summarization</span>
                                    </div>
                                    <div class="mt-2 flex items-center text-xs text-gray-500">
                                        <span class="flex items-center mr-3">
                                            <i class="fas fa-quote-right mr-1"></i> 42 citations
                                        </span>
                                        <span class="flex items-center">
                                            <i class="fas fa-download mr-1"></i> PDF available
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Right Column - Summary and Tools -->
            <div class="lg:w-1/3">
                <!-- Summary Panel -->
                <div class="bg-white shadow rounded-lg mb-6">
                    <div class="px-4 py-5 sm:px-6 border-b border-gray-200">
                        <h3 class="text-lg leading-6 font-medium text-gray-900">
                            <i class="fas fa-file-signature mr-2 text-blue-500"></i> AI-Generated Summary
                        </h3>
                        <p class="mt-1 text-sm text-gray-500">
                            Generated by our fine-tuned BioBERT-RoBERTa hybrid model with RAG
                        </p>
                    </div>
                    <div class="px-4 py-5 sm:p-6">
                        <div class="summary-text text-sm text-gray-700">
                            <p class="mb-4">The literature review reveals several key approaches to customizing LLMs for scientific literature review:</p>
                            
                            <p class="mb-4"><span class="citation-highlight">(Lewis et al., 2020)</span> introduced Retrieval-Augmented Generation (RAG) models that combine parametric memory (a pre-trained seq2seq model) with non-parametric memory (a dense vector index of Wikipedia). This approach shows promise for knowledge-intensive tasks.</p>
                            
                            <p class="mb-4">For biomedical applications, <span class="citation-highlight">(Lee et al., 2020)</span> demonstrated the effectiveness of domain-specific pretraining with BioBERT, achieving state-of-the-art results on biomedical NLP tasks. Their work highlights the importance of domain adaptation.</p>
                            
                            <p class="mb-4"><span class="citation-highlight">(Zhang et al., 2022)</span> optimized RAG specifically for scientific literature review, implementing a hybrid retrieval-generation framework with improved efficiency for large document collections.</p>
                            
                            <p>Recent work by <span class="citation-highlight">(Wang et al., 2023)</span> addresses multi-domain challenges, proposing adaptation techniques that enable a single model to handle diverse scientific literature with minimal retraining.</p>
                        </div>
                        <div class="mt-6 flex items-center justify-between">
                            <div class="flex items-center space-x-2">
                                <span class="text-xs text-gray-500">Confidence: </span>
                                <div class="w-full bg-gray-200 rounded-full h-2.5">
                                    <div class="bg-green-600 h-2.5 rounded-full" style="width: 85%"></div>
                                </div>
                                <span class="text-xs font-medium text-gray-700">85%</span>
                            </div>
                            <button class="text-xs text-blue-600 hover:text-blue-800">
                                <i class="fas fa-redo mr-1"></i> Regenerate
                            </button>
                        </div>
                    </div>
                </div>

                <!-- Citation Analysis -->
                <div class="bg-white shadow rounded-lg mb-6">
                    <div class="px-4 py-5 sm:px-6 border-b border-gray-200">
                        <h3 class="text-lg leading-6 font-medium text-gray-900">
                            <i class="fas fa-quote-right mr-2 text-blue-500"></i> Citation Analysis
                        </h3>
                    </div>
                    <div class="px-4 py-5 sm:p-6">
                        <div class="mb-4">
                            <h4 class="text-sm font-medium text-gray-700 mb-2">Citation Accuracy</h4>
                            <div class="w-full bg-gray-200 rounded-full h-2.5">
                                <div class="bg-blue-600 h-2.5 rounded-full" style="width: 92%"></div>
                            </div>
                            <div class="mt-1 flex justify-between text-xs text-gray-500">
                                <span>92% verified</span>
                                <span>8% potential issues</span>
                            </div>
                        </div>
                        <div class="mb-4">
                            <h4 class="text-sm font-medium text-gray-700 mb-2">Citation Distribution</h4>
                            <div class="flex items-center justify-between text-xs mb-1">
                                <span class="text-gray-500">PubMed</span>
                                <span class="font-medium">12</span>
                            </div>
                            <div class="w-full bg-gray-200 rounded-full h-2.5">
                                <div class="bg-green-600 h-2.5 rounded-full" style="width: 60%"></div>
                            </div>
                            <div class="flex items-center justify-between text-xs mt-1">
                                <span class="text-gray-500">arXiv</span>
                                <span class="font-medium">5</span>
                            </div>
                            <div class="w-full bg-gray-200 rounded-full h-2.5">
                                <div class="bg-blue-600 h-2.5 rounded-full" style="width: 25%"></div>
                            </div>
                            <div class="flex items-center justify-between text-xs mt-1">
                                <span class="text-gray-500">IEEE</span>
                                <span class="font-medium">3</span>
                            </div>
                            <div class="w-full bg-gray-200 rounded-full h-2.5">
                                <div class="bg-purple-600 h-2.5 rounded-full" style="width: 15%"></div>
                            </div>
                        </div>
                        <div>
                            <h4 class="text-sm font-medium text-gray-700 mb-2">Potential Issues</h4>
                            <div class="space-y-2">
                                <div class="flex items-start">
                                    <div class="flex-shrink-0 pt-0.5">
                                        <i class="fas fa-exclamation-triangle text-yellow-500"></i>
                                    </div>
                                    <div class="ml-2">
                                        <p class="text-xs text-gray-600">Citation to "Zhang et al., 2022" may refer to multiple papers - verify context.</p>
                                    </div>
                                </div>
                                <div class="flex items-start">
                                    <div class="flex-shrink-0 pt-0.5">
                                        <i class="fas fa-question-circle text-blue-500"></i>
                                    </div>
                                    <div class="ml-2">
                                        <p class="text-xs text-gray-600">"Wang et al., 2023" preprint - consider peer-reviewed alternatives.</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Feedback Panel -->
                <div class="bg-white shadow rounded-lg">
                    <div class="px-4 py-5 sm:px-6 border-b border-gray-200">
                        <h3 class="text-lg leading-6 font-medium text-gray-900">
                            <i class="fas fa-comment-dots mr-2 text-blue-500"></i> Provide Feedback
                        </h3>
                        <p class="mt-1 text-sm text-gray-500">
                            Help improve our model by rating this summary
                        </p>
                    </div>
                    <div class="px-4 py-5 sm:p-6">
                        <div class="mb-4">
                            <label class="block text-sm font-medium text-gray-700 mb-2">Summary Quality</label>
                            <div class="flex items-center space-x-2">
                                <button class="p-1 text-gray-400 hover:text-yellow-500">
                                    <i class="fas fa-star"></i>
                                </button>
                                <button class="p-1 text-gray-400 hover:text-yellow-500">
                                    <i class="fas fa-star"></i>
                                </button>
                                <button class="p-1 text-gray-400 hover:text-yellow-500">
                                    <i class="fas fa-star"></i>
                                </button>
                                <button class="p-1 text-gray-400 hover:text-yellow-500">
                                    <i class="fas fa-star"></i>
                                </button>
                                <button class="p-1 text-gray-400 hover:text-yellow-500">
                                    <i class="fas fa-star"></i>
                                </button>
                            </div>
                        </div>
                        <div class="mb-4">
                            <label for="feedback" class="block text-sm font-medium text-gray-700 mb-2">Specific Feedback</label>
                            <textarea id="feedback" name="feedback" rows="3" class="shadow-sm focus:ring-blue-500 focus:border-blue-500 block w-full sm:text-sm border border-gray-300 rounded-md p-2" placeholder="What was good or needs improvement?"></textarea>
                        </div>
                        <div class="mb-4">
                            <label class="block text-sm font-medium text-gray-700 mb-2">Citation Accuracy</label>
                            <div class="space-y-2">
                                <div class="flex items-center">
                                    <input id="citation-accurate" name="citation-accuracy" type="radio" class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300">
                                    <label for="citation-accurate" class="ml-2 block text-sm text-gray-700">All citations accurate</label>
                                </div>
                                <div class="flex items-center">
                                    <input id="citation-minor" name="citation-accuracy" type="radio" class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300">
                                    <label for="citation-minor" class="ml-2 block text-sm text-gray-700">Minor issues</label>
                                </div>
                                <div class="flex items-center">
                                    <input id="citation-major" name="citation-accuracy" type="radio" class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300">
                                    <label for="citation-major" class="ml-2 block text-sm text-gray-700">Major issues</label>
                                </div>
                            </div>
                        </div>
                        <button type="button" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:text-sm">
                            Submit Feedback
                        </button>
                    </div>
                </div>
            </div>
        </div>

        <!-- Methodology Section -->
        <div class="px-4 sm:px-0 mt-10">
            <div class="bg-white shadow rounded-lg overflow-hidden">
                <div class="px-4 py-5 sm:px-6 border-b border-gray-200">
                    <h3 class="text-lg leading-6 font-medium text-gray-900">
                        <i class="fas fa-project-diagram mr-2 text-blue-500"></i> Methodology Overview
                    </h3>
                </div>
                <div class="px-4 py-5 sm:p-6">
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                        <!-- Data Collection -->
                        <div class="border border-gray-200 rounded-lg p-4">
                            <div class="flex items-center mb-3">
                                <div class="flex-shrink-0 bg-blue-100 p-2 rounded-md">
                                    <i class="fas fa-database text-blue-600"></i>
                                </div>
                                <h4 class="ml-3 text-sm font-medium text-gray-900">Data Collection</h4>
                            </div>
                            <ul class="space-y-2 text-sm text-gray-600">
                                <li class="flex items-start">
                                    <i class="fas fa-check text-green-500 mr-2 mt-0.5"></i>
                                    <span>PubMed for biomedical research</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-check text-green-500 mr-2 mt-0.5"></i>
                                    <span>arXiv for CS/physics/math preprints</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-check text-green-500 mr-2 mt-0.5"></i>
                                    <span>IEEE Xplore for engineering</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-check text-green-500 mr-2 mt-0.5"></i>
                                    <span>Google Scholar for benchmarking</span>
                                </li>
                            </ul>
                        </div>
                        
                        <!-- Model Architecture -->
                        <div class="border border-gray-200 rounded-lg p-4">
                            <div class="flex items-center mb-3">
                                <div class="flex-shrink-0 bg-purple-100 p-2 rounded-md">
                                    <i class="fas fa-network-wired text-purple-600"></i>
                                </div>
                                <h4 class="ml-3 text-sm font-medium text-gray-900">Model Architecture</h4>
                            </div>
                            <ul class="space-y-2 text-sm text-gray-600">
                                <li class="flex items-start">
                                    <i class="fas fa-check text-green-500 mr-2 mt-0.5"></i>
                                    <span>BioBERT for biomedical domains</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-check text-green-500 mr-2 mt-0.5"></i>
                                    <span>RoBERTa for general science</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-check text-green-500 mr-2 mt-0.5"></i>
                                    <span>DPR with FAISS indexing</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-check text-green-500 mr-2 mt-0.5"></i>
                                    <span>End-to-end RAG training</span>
                                </li>
                            </ul>
                        </div>
                        
                        <!-- Evaluation -->
                        <div class="border border-gray-200 rounded-lg p-4">
                            <div class="flex items-center mb-3">
                                <div class="flex-shrink-0 bg-green-100 p-2 rounded-md">
                                    <i class="fas fa-chart-bar text-green-600"></i>
                                </div>
                                <h4 class="ml-3 text-sm font-medium text-gray-900">Evaluation Metrics</h4>
                            </div>
                            <ul class="space-y-2 text-sm text-gray-600">
                                <li class="flex items-start">
                                    <i class="fas fa-check text-green-500 mr-2 mt-0.5"></i>
                                    <span>ROUGE-L, BLEU for summaries</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-check text-green-500 mr-2 mt-0.5"></i>
                                    <span>Citation accuracy percentage</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-check text-green-500 mr-2 mt-0.5"></i>
                                    <span>User satisfaction surveys</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-check text-green-500 mr-2 mt-0.5"></i>
                                    <span>Comparison with Elicit/Scispace</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                    
                    <div class="mt-6">
                        <h4 class="text-sm font-medium text-gray-900 mb-3">RAG Training Pipeline</h4>
                        <div class="relative">
                            <div class="absolute top-0 left-0 h-full w-6 flex items-center justify-center">
                                <div class="h-full w-0.5 bg-gray-200"></div>
                            </div>
                            <div class="relative pl-8 space-y-4">
                                <!-- Step 1 -->
                                <div class="flex items-start group">
                                    <div class="absolute left-0 h-6 w-6 rounded-full bg-blue-100 border-4 border-white flex items-center justify-center">
                                        <span class="text-xs font-bold text-blue-800">1</span>
                                    </div>
                                    <div class="bg-blue-50 p-4 rounded-lg flex-1">
                                        <h5 class="text-sm font-medium text-blue-800">Data Preprocessing</h5>
                                        <p class="mt-1 text-xs text-gray-600">GROBID for PDF parsing, text normalization, SciBERT tokenization</p>
                                    </div>
                                </div>
                                
                                <!-- Step 2 -->
                                <div class="flex items-start group">
                                    <div class="absolute left-0 h-6 w-6 rounded-full bg-blue-100 border-4 border-white flex items-center justify-center">
                                        <span class="text-xs font-bold text-blue-800">2</span>
                                    </div>
                                    <div class="bg-blue-50 p-4 rounded-lg flex-1">
                                        <h5 class="text-sm font-medium text-blue-800">Supervised Fine-Tuning</h5>
                                        <p class="mt-1 text-xs text-gray-600">Train on S2ORC for summary generation with embedded citations</p>
                                    </div>
                                </div>
                                
                                <!-- Step 3 -->
                                <div class="flex items-start group">
                                    <div class="absolute left-0 h-6 w-6 rounded-full bg-blue-100 border-4 border-white flex items-center justify-center">
                                        <span class="text-xs font-bold text-blue-800">3</span>
                                    </div>
                                    <div class="bg-blue-50 p-4 rounded-lg flex-1">
                                        <h5 class="text-sm font-medium text-blue-800">RLHF Refinement</h5>
                                        <p class="mt-1 text-xs text-gray-600">Researcher feedback on citation relevance and clarity</p>
                                    </div>
                                </div>
                                
                                <!-- Step 4 -->
                                <div class="flex items-start group">
                                    <div class="absolute left-0 h-6 w-6 rounded-full bg-blue-100 border-4 border-white flex items-center justify-center">
                                        <span class="text-xs font-bold text-blue-800">4</span>
                                    </div>
                                    <div class="bg-blue-50 p-4 rounded-lg flex-1">
                                        <h5 class="text-sm font-medium text-blue-800">End-to-End Training</h5>
                                        <p class="mt-1 text-xs text-gray-600">Contrastive loss to align retriever-generator outputs</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <!-- Footer -->
    <footer class="gradient-bg mt-12">
        <div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8">
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <div>
                    <h3 class="text-white text-lg font-medium mb-4">SciReviewAI</h3>
                    <p class="text-blue-200 text-sm">
                        A refined approach to customizing Large Language Models with Retrieval-Augmented Generation for multi-domain scientific literature review.
                    </p>
                </div>
                <div>
                    <h3 class="text-white text-lg font-medium mb-4">Quick Links</h3>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-blue-200 hover:text-white text-sm">Documentation</a></li>
                        <li><a href="#" class="text-blue-200 hover:text-white text-sm">API Reference</a></li>
                        <li><a href="#" class="text-blue-200 hover:text-white text-sm">GitHub Repository</a></li>
                        <li><a href="#" class="text-blue-200 hover:text-white text-sm">Research Paper</a></li>
                    </ul>
                </div>
                <div>
                    <h3 class="text-white text-lg font-medium mb-4">Contact</h3>
                    <ul class="space-y-2">
                        <li class="flex items-center text-blue-200 text-sm">
                            <i class="fas fa-envelope mr-2"></i> contact@scireviewai.org
                        </li>
                        <li class="flex items-center text-blue-200 text-sm">
                            <i class="fas fa-university mr-2"></i> AI Research Lab, University
                        </li>
                    </ul>
                </div>
            </div>
            <div class="mt-8 pt-8 border-t border-blue-700">
                <p class="text-blue-200 text-sm text-center">
                    &copy; 2023 SciReviewAI. All rights reserved.
                </p>
            </div>
        </div>
    </footer>

    <script>
        // Simple interactivity for the UI
        document.addEventListener('DOMContentLoaded', function() {
            // Paper card selection
            const paperCards = document.querySelectorAll('.paper-card');
            paperCards.forEach(card => {
                card.addEventListener('click', function() {
                    // Remove active class from all cards
                    paperCards.forEach(c => c.classList.remove('bg-blue-50', 'border-blue-300', 'border'));
                    // Add active class to clicked card
                    this.classList.add('bg-blue-50', 'border-blue-300', 'border');
                    
                    // Simulate loading new summary
                    const summaryText = document.querySelector('.summary-text');
                    const confidenceBar = document.querySelector('.bg-green-600');
                    
                    summaryText.innerHTML = `
                        <div class="loading-pulse h-4 bg-gray-200 rounded mb-2"></div>
                        <div class="loading-pulse h-4 bg-gray-200 rounded mb-2 w-5/6"></div>
                        <div class="loading-pulse h-4 bg-gray-200 rounded mb-2 w-3/4"></div>
                        <div class="loading-pulse h-4 bg-gray-200 rounded mb-2 w-4/6"></div>
                    `;
                    
                    confidenceBar.style.width = '0%';
                    
                    // Simulate API call delay
                    setTimeout(() => {
                        // Replace with actual summary based on selected paper
                        summaryText.innerHTML = `
                            <p class="mb-4">The selected paper introduces novel approaches to scientific literature analysis:</p>
                            <p class="mb-4"><span class="citation-highlight">(Author et al., Year)</span> presents a breakthrough in domain-specific adaptation techniques, achieving 15% improvement over baseline models.</p>
                            <p>The methodology combines <span class="citation-highlight">(Reference 1)</span> and <span class="citation-highlight">(Reference 2)</span> with innovative preprocessing steps that reduce computational overhead by 30%.</p>
                        `;
                        
                        // Animate confidence bar
                        let width = 0;
                        const interval = setInterval(() => {
                            if (width >= 88) {
                                clearInterval(interval);
                            } else {
                                width += 2;
                                confidenceBar.style.width = width + '%';
                                document.querySelector('.text-xs.font-medium.text-gray-700').textContent = width + '%';
                            }
                        }, 30);
                    }, 1500);
                });
            });
            
            // Star rating
            const stars = document.querySelectorAll('[class*="fa-star"]');
            stars.forEach((star, index) => {
                star.addEventListener('click', function() {
                    // Reset all stars
                    stars.forEach(s => s.classList.remove('text-yellow-500'));
                    // Color stars up to clicked one
                    for (let i = 0; i <= index; i++) {
                        stars[i].classList.add('text-yellow-500');
                    }
                });
            });
        });
    </script>
<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=samehelmalt/ai-bio" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>