-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
95 lines (90 loc) · 3.92 KB
/
index.html
File metadata and controls
95 lines (90 loc) · 3.92 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RAG Multi-Model Chatbot</title>
<link rel="stylesheet" href="styles.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"></script>
</head>
<body>
<div class="container">
<!-- Sidebar for model selection -->
<div class="sidebar">
<div class="sidebar-header">
<h2>🤖 Select Models</h2>
<div class="select-controls">
<button onclick="selectAll()" class="btn-small">Select All</button>
<button onclick="deselectAll()" class="btn-small">Clear</button>
</div>
</div>
<div id="modelList" class="model-list">
<div class="loading">Loading models...</div>
</div>
<div class="sidebar-footer">
<div class="selected-count">
<span id="selectedCount">0</span> models selected
</div>
</div>
</div>
<!-- Main chat area -->
<div class="main-content">
<div class="chat-header">
<h1>RAG Multi-Model Testing</h1>
<p>Test multiple OpenAI models with BABILong 64k context</p>
</div>
<div class="chat-container" id="chatContainer">
<div class="welcome-message">
<h2>👋 Welcome!</h2>
<p>Select one or more models from the sidebar and enter your query below to compare responses.</p>
<div class="example-queries">
<p><strong>Try these examples:</strong></p>
<button onclick="setQuery('Hi, my wifi is not working since Monday')" class="example-btn">WiFi Issue</button>
<button onclick="setQuery('I got charged $20 more than last month')" class="example-btn">Billing Question</button>
<button onclick="setQuery('I need help choosing an internet plan')" class="example-btn">Sales Inquiry</button>
</div>
</div>
</div>
<div class="input-container">
<div class="input-wrapper">
<textarea
id="queryInput"
placeholder="Type your question here..."
rows="3"
onkeydown="if(event.key==='Enter' && event.ctrlKey) sendQuery()"
></textarea>
<button onclick="sendQuery()" id="sendBtn" class="send-btn">
<span id="sendBtnText">Send</span>
<span id="sendBtnLoader" class="loader" style="display: none;"></span>
</button>
</div>
<div class="input-hint">Press Ctrl+Enter to send</div>
</div>
</div>
</div>
<!-- Comparison Modal -->
<div id="comparisonModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2>📊 Performance Comparison</h2>
<button class="modal-close" onclick="closeComparisonModal()">×</button>
</div>
<div class="modal-body">
<div class="chart-container">
<h3>Response Time Comparison</h3>
<canvas id="responseTimeChart"></canvas>
</div>
<div class="chart-container">
<h3>Time Breakdown by Phase</h3>
<canvas id="timeBreakdownChart"></canvas>
</div>
<div class="stats-summary">
<h3>Summary Statistics</h3>
<div id="summaryStats"></div>
</div>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>