File size: 5,342 Bytes
c0bb696
 
 
 
 
 
b570a90
c0bb696
 
 
 
 
b570a90
c0bb696
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b570a90
 
 
 
 
 
 
 
 
 
c0bb696
b570a90
c0bb696
 
 
b570a90
 
 
 
c0bb696
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!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:G.Materni" />
    <title>RagRqs</title>

    <link rel="stylesheet" href="css/ragrqs.min.css" />
    <script src="js/ragrqs.min.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>