Files
AKERN-Langchain/templates/index.html
Matteo Rosati b64e97c9d0 add db
2026-02-18 15:39:01 +01:00

144 lines
4.2 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>
<button
class="chat__settings"
id="settings-toggle"
type="button"
aria-haspopup="dialog"
aria-expanded="false"
aria-controls="settings-drawer"
>
Configurazione
</button>
</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"
aria-hidden="true"
>
<div class="drawer__header">
<h2 class="drawer__title">Configurazione</h2>
<button
class="drawer__close"
id="settings-close"
type="button"
aria-label="Chiudi"
>
</button>
</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 for="drawer__field">
<span class="drawer__label">Prompts</span>
<!-- TODO -->
<!-- Here i need a select -->
<!-- {% for prompt in prompts %} {{ prompt.name }} {{ prompt.id }} {% endfor %} -->
</label>
</form>
</aside>
</div>
<script src="/static/js/chat.js" defer></script>
</body>
</html>