File size: 2,369 Bytes
15113fe
c07bca1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15113fe
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="data:,">
<title>Next Trace</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
  <header>
    <h1>Next Trace</h1>
    <p>Ask a question about a Turkish or English document. Next Trace marks the sentences the answer rests on — or says plainly that the document does not contain enough evidence. Everything runs in your browser; nothing is sent anywhere.</p>
    <div class="badges"><span class="badge">Türkçe + English</span><span class="badge">Live in-browser</span><span class="badge">Trained on SQuAD 2.0 (CC BY-SA 4.0)</span><a class="badge" href="https://huggingface.co/thelamapi/Next-Trace">Model repo</a></div>
  </header>
  <div class="grid">
    <section class="card">
      <label for="ex">Example</label><select id="ex"></select>
      <p class="small muted" id="src"></p>
      <label for="doc">Document / Belge</label><textarea id="doc" style="min-height:180px"></textarea>
      <label for="q">Question / Soru</label><input type="text" id="q">
      <div class="row" style="margin-top:8px">
        <select id="mode" style="flex:1" aria-label="method"><option value="learned">Learned reranker (Next Trace)</option><option value="bm25">BM25 only (baseline)</option></select>
        <select id="lang" style="width:120px" aria-label="interface language"><option value="tr">Türkçe</option><option value="en">English</option></select>
      </div>
    </section>
    <section class="card">
      <h2>Verdict</h2>
      <div id="verdict"></div>
      <h3>Document with evidence</h3>
      <div id="marked" style="line-height:1.8"></div>
      <h3>Top sentences</h3>
      <div class="scroll"><table id="tbl"></table></div>
    </section>
  </div>
  <section class="card" style="margin-top:12px"><h2>Recorded benchmark</h2><img src="preview.png" alt="Benchmark" style="width:100%;border-radius:8px"></section>
  <p class="status" id="status"></p>
  <footer>Next Trace selects evidence sentences; it does not generate answers. Example passages from SQuAD 2.0 and XQuAD are CC BY-SA 4.0; hand-written examples are original.</footer>
</main>
<script src="nlrt.js"></script>
<script src="nlui.js"></script>
<script src="core.js"></script>
<script src="app.js"></script>
</body>
</html>