broadfield-dev commited on
Commit
c65bf2f
·
verified ·
1 Parent(s): 35f8e95

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +4 -4
templates/index.html CHANGED
@@ -41,9 +41,9 @@
41
 
42
  <div class="admin-section">
43
  <h3>Admin Panel</h3>
44
- <form action="/build-rag" method="post" onsubmit="return confirm('This will start a long-running process to build and upload the RAG dataset. Are you sure?');">
45
- <p>Click the button below to process the local JSON files, create text embeddings, build a search index, and push it to the Hugging Face Hub. This process can take several minutes. <strong>Requires a write-permission HF_TOKEN secret.</strong></p>
46
- <input type="submit" value="Build and Push RAG Dataset">
47
  </form>
48
  </div>
49
 
@@ -56,7 +56,7 @@
56
  <div class="result">
57
  <p class="reference">{{ result.reference }} ({{result.version}})</p>
58
  <p>{{ result.text }}</p>
59
- <small>Score: {{ "%.4f"|format(result.score) }}</small>
60
  </div>
61
  {% endfor %}
62
  {% endif %}
 
41
 
42
  <div class="admin-section">
43
  <h3>Admin Panel</h3>
44
+ <form action="/build-rag" method="post" onsubmit="return confirm('This will build the database and push it to the Hub. This can take a long time. Are you sure?');">
45
+ <p>Click to build the vector database from the JSON files and upload it to the Hugging Face Hub for persistence. <strong>Requires a write-permission HF_TOKEN secret.</strong></p>
46
+ <input type="submit" value="Build and Push Database to Hub">
47
  </form>
48
  </div>
49
 
 
56
  <div class="result">
57
  <p class="reference">{{ result.reference }} ({{result.version}})</p>
58
  <p>{{ result.text }}</p>
59
+ <small>Score (Distance): {{ "%.4f"|format(result.score) }}</small>
60
  </div>
61
  {% endfor %}
62
  {% endif %}