|
<!DOCTYPE html> |
|
<html lang="it"> |
|
|
|
<head> |
|
<meta charset="utf-8" /> |
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
|
<meta name="description" content="Author:M.Materni" /> |
|
<title>RagRqs</title> |
|
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="less/normalize.css" /> |
|
<link rel="stylesheet/less" type="text/css" href="less/ragrqs.less" /> |
|
<script src="less/less.js"></script> |
|
|
|
<script src="javascript/uadrag.js"></script> |
|
<script src="javascript/uawindow.js"></script> |
|
<script src="javascript/uajtfh.js"></script> |
|
<script src="javascript/ualog.js"></script> |
|
<script src="javascript/rag_cleaner.js"></script> |
|
<script src="javascript/rag_data_mgr.js"></script> |
|
<script src="javascript/rag_http.js"></script> |
|
<script src="javascript/rag_mgr.js"></script> |
|
<script src="javascript/rag_prompts.js"></script> |
|
<script src="javascript/rag_rqs.js"></script> |
|
<script src="javascript/rag_upload.js"></script> |
|
<script src="javascript/rag_ui.js"></script> |
|
|
|
<body> |
|
<div id="spinner" class="spinner"> |
|
<div class="pulse-icon"></div> |
|
<div class="stop-message">Stop</div> |
|
</div> |
|
|
|
<div class="menu-h"> |
|
|
|
<input id="id-menu-btn" name="id-menu-btn" class="menu-btn" type="checkbox" /> |
|
<label for="id-menu-btn" class="menu-icon"> |
|
<span class="nav-icon"></span> |
|
</label> |
|
|
|
<div class="head-wrapper"> |
|
|
|
<button class="help" onclick="Menu.help();" title="Istruzioni">?</button> |
|
|
|
<button class="upload" onclick="Menu.upload();" ; title="Upload files"> |
|
<svg class="icon" viewBox="0 0 24 24"> |
|
<path d="M20 15v2H4v-2H2v5h20v-5zM13 5V1h-2v4H7l5 5 5-5z" fill="none" stroke="#FFFFFF" stroke-width="2" /> |
|
</svg> |
|
</button> |
|
|
|
<button class="upload" onclick="Menu.uploadDir();" ; title="Upload dir"> |
|
<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> |
|
<path d="M20 6h-8l-2-2H4C2.9 4 2 4.9 2 6v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-8 7H8v2h4v-2zm6 0h-4v2h4v-2zm0-4H8v2h10V9z" fill="none" stroke="#FFFFFF" stroke-width="2" /> |
|
</svg> |
|
</button> |
|
|
|
<button class="log active" id="id_log" onclick="Menu.log();" title="Log">Log</button> |
|
<label class="release"></label> |
|
</div> |
|
<div class="menu-box"> |
|
<ul> |
|
<li><a href="#" onCLick="op0(this);">README</a></li> |
|
<li><a href="#" onCLick="showQuery();">Domanda</a></li> |
|
<li><a href="#" onCLick="showRagResponse();">Risposta</a></li> |
|
<li><a href="#" onCLick="showThread();">Conversazione</a></li> |
|
|
|
<li><a href="#" onCLick="elencoRisposte(this);">Elenco Risposte</a></li> |
|
<li><a href="#" onCLick="showContesto(this);">Contesto RAG</a></li> |
|
<li><a href="#" onCLick="elencoDati(this);">Dati archviati</a></li> |
|
<li><a href="#" onCLick="elencoDocs(this);">Elenco Documenti</a></li> |
|
<li><a href="#" onCLick="calcQuery();">Numero Richieste</a></li> |
|
<li><a class="delete" href="#" onCLick="deleteDati(this);">Cancella Dati</a></li> |
|
<li>-</li> |
|
<li><a class="help" href="#" onCLick="deleteSttorage(this);">Cancella Documenti</a></li> |
|
<li>-</li> |
|
<li><a href="#" onCLick="help1(this);">Esempi di documenti</a></li> |
|
<li><a href="#" onCLick="help2(this);">Esempi di domande</a></li> |
|
|
|
<li><a href="#" onCLick="showPrompts(this);">prompts</a></li> |
|
<li><a href="#" onCLick="showTesti(this);">Testo Documenti</a></li> |
|
|
|
</ul> |
|
</div> |
|
</div> |
|
|
|
<div class="container"> |
|
<div class="item item1"> |
|
<div class="output-wrapper"> |
|
|
|
<div class="text-out" id="id-text-out"> |
|
</div> |
|
|
|
<div class="output-actions"> |
|
<button class="copy-output" title="Copia"> |
|
<svg class="copy-icon" viewBox="0 0 20 24"> |
|
<path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" /> |
|
</svg> |
|
</button> |
|
<button class="wnd-output" title="Apri"> |
|
<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> |
|
<path d="M10 9v6h4V9h5l-7-7-7 7h5zM5 19v2h14v-2H5z" /> |
|
</svg> |
|
</button> |
|
<button class="clear-output" title="Cancella"> |
|
<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> |
|
<path d="M3 6h18v2H3V6zm2 3h14v12H5V9zm3-7h6v2H8V2z" /> |
|
</svg> |
|
</button> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<div class="item item2"> |
|
<div class="input-wrapper"> |
|
|
|
<textarea class="text-input" placeholder="Scrivi qui... " rows="2"></textarea> |
|
<button class="clear-button" title="Cancella input">X</button> |
|
|
|
<div class="input-actions"> |
|
<button class="send-input" title="Documenti=>RAG=>Conetso=>Query"> |
|
<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> |
|
<path d="M2 21l21-9L2 3v7l15 2-15 2v7z" fill="none" stroke="#FFFFFF" stroke-width="2" /> |
|
</svg> |
|
</button> |
|
|
|
|
|
<button class="send2-input" title="Contesto=>Query"> |
|
<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> |
|
<path d="M2 21l21-9L2 3v7l15 2-15 2v7z" fill="none" stroke="#FFFFFF" stroke-width="2" /> |
|
</svg> |
|
</button> |
|
<button class="clear-input" title="Cancella Conversazione"> |
|
<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> |
|
<path d="M3 6h18v2H3V6zm2 3h14v12H5V9zm3-7h6v2H8V2z" fill="none" stroke="#FFFFFF" stroke-width="2" /> |
|
</svg> |
|
</button> |
|
|
|
</div> |
|
</div> |
|
</div> |
|
|
|
</div> |
|
</body> |
|
|
|
</html> |
|
<script> |
|
openApp(); |
|
</script> |