129 lines
5.1 KiB
HTML
129 lines
5.1 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>AKERN Assistant</title>
|
|
<link rel="stylesheet" href="/static/css/chat.css" />
|
|
</head>
|
|
|
|
<body>
|
|
<div class="app" aria-label="Chat application">
|
|
<section class="chat" aria-label="Chat">
|
|
<div class="chat__header">
|
|
<span>AKERN Assistant</span>
|
|
</div>
|
|
<div class="chat__messages" id="messages"></div>
|
|
<div class="chat__status" id="status">Connecting…</div>
|
|
<form class="chat__footer" id="chat-form">
|
|
<input
|
|
class="chat__input"
|
|
id="chat-input"
|
|
type="text"
|
|
placeholder="Type a message"
|
|
autocomplete="off"
|
|
required
|
|
/>
|
|
<button class="chat__button" type="submit">Send</button>
|
|
<button
|
|
class="chat__button chat__button--secondary"
|
|
id="chat-clear"
|
|
type="button"
|
|
>
|
|
Clear
|
|
</button>
|
|
</form>
|
|
</section>
|
|
|
|
<aside
|
|
class="drawer"
|
|
id="settings-drawer"
|
|
aria-label="Configurazione"
|
|
>
|
|
<div class="drawer__header">
|
|
<h2 class="drawer__title">Configurazione</h2>
|
|
</div>
|
|
<form class="drawer__form">
|
|
<label class="drawer__field">
|
|
<span class="drawer__label">top_k</span>
|
|
<input
|
|
class="drawer__range"
|
|
id="config-top-k"
|
|
type="range"
|
|
min="0"
|
|
max="100"
|
|
step="1"
|
|
value="40"
|
|
/>
|
|
<output class="drawer__value">40</output>
|
|
</label>
|
|
<label class="drawer__field">
|
|
<span class="drawer__label">top_p</span>
|
|
<input
|
|
class="drawer__range"
|
|
id="config-top-p"
|
|
type="range"
|
|
min="0"
|
|
max="1"
|
|
step="0.1"
|
|
value="0.0"
|
|
/>
|
|
<output class="drawer__value">0.0</output>
|
|
</label>
|
|
<label class="drawer__field">
|
|
<span class="drawer__label">temperature</span>
|
|
<input
|
|
class="drawer__range"
|
|
id="config-temperature"
|
|
type="range"
|
|
min="0"
|
|
max="1.5"
|
|
step="0.1"
|
|
value="0.0"
|
|
/>
|
|
<output class="drawer__value">0.0</output>
|
|
</label>
|
|
<label class="drawer__field">
|
|
<span class="drawer__label">retriever max docs</span>
|
|
<input
|
|
class="drawer__range"
|
|
id="config-retriever-max-docs"
|
|
type="range"
|
|
min="5"
|
|
max="100"
|
|
step="1"
|
|
value="40"
|
|
/>
|
|
<output class="drawer__value">40</output>
|
|
</label>
|
|
<label class="drawer__field">
|
|
<span class="drawer__label">reranker max docs</span>
|
|
<input
|
|
class="drawer__range"
|
|
id="config-reranker-max-docs"
|
|
type="range"
|
|
min="5"
|
|
max="100"
|
|
step="1"
|
|
value="20"
|
|
/>
|
|
<output class="drawer__value">20</output>
|
|
</label>
|
|
<label class="drawer__field">
|
|
<span class="drawer__label">Prompts</span>
|
|
<select class="drawer__select" id="config-prompt">
|
|
{% for prompt in prompts %}
|
|
<option value="{{ prompt.id }}">
|
|
{{ prompt.name }}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</label>
|
|
</form>
|
|
</aside>
|
|
</div>
|
|
|
|
<script src="/static/js/chat.js" defer></script>
|
|
</body>
|
|
</html>
|