File size: 1,774 Bytes
46f8a04
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html>
<head>

<meta charset="UTF-8">
<title>KKT Secure Modular RAG Engine</title>

<link rel="stylesheet" href="/static/style.css">

</head>

<body>

<h1>KKT Secure Modular RAG Engine</h1>

<!-- LOGIN / REGISTER -->

<div id="authSection">

<h2>Register</h2>

<input type="text" id="regUser" placeholder="Username">
<input type="password" id="regPass" placeholder="Password">
<button onclick="register()">Register</button>

<h2>Login</h2>

<input type="text" id="loginUser" placeholder="Username">
<input type="password" id="loginPass" placeholder="Password">
<button onclick="login()">Login</button>

</div>


<!-- MAIN APP -->

<div id="mainApp" style="display:none;">

<h2>Select Model</h2>

<div class="model-row">
    <select id="modelSelect"></select>
    <button onclick="loadModels()">Refresh Models</button>
</div>

<!-- NEW: Model change confirmation message -->
<div id="modelInfo" style="margin-top:8px;color:green;font-weight:bold;"></div>

<div class="ref-section">

    <label>
        <input type="checkbox" id="refInline">
        <span>Inline Citation</span>
    </label>

    <label>
        <input type="checkbox" id="refList">
        <span>Bibliography</span>
    </label>

</div>

<h2>Chat</h2>

<div id="chatWindow"></div>

<div id="chatControls">

<input type="text" id="questionInput" placeholder="Ask a question">

<button onclick="sendQuestion()">Send</button>

<button onclick="startVoice()">🎤 Voice</button>

<button onclick="readChat()">🔈Read</button>

<button onclick="stopVoice()">Stop</button>

<button onclick="saveChatAsPDF()">📄 Save as PDF</button>

</div>

</div>

<script src="/static/script.js"></script>

</body>
</html>