Spaces:
Running
Running
Update index.html
Browse files- index.html +76 -19
index.html
CHANGED
|
@@ -1,19 +1,76 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Advanced RAG System</title>
|
| 7 |
+
<link rel="stylesheet" href="styles.css">
|
| 8 |
+
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
|
| 9 |
+
</head>
|
| 10 |
+
<body>
|
| 11 |
+
<div class="container">
|
| 12 |
+
<!-- Header -->
|
| 13 |
+
<header>
|
| 14 |
+
<h1>Advanced RAG System</h1>
|
| 15 |
+
<p>Retrieval-Augmented Generation for Intelligent Responses</p>
|
| 16 |
+
</header>
|
| 17 |
+
|
| 18 |
+
<!-- Main Content -->
|
| 19 |
+
<main>
|
| 20 |
+
<!-- Query Input Section -->
|
| 21 |
+
<section class="query-section">
|
| 22 |
+
<h2>Ask a Question</h2>
|
| 23 |
+
<textarea id="query-input" placeholder="Type your question here..." rows="4"></textarea>
|
| 24 |
+
<button id="submit-query">Generate Response</button>
|
| 25 |
+
</section>
|
| 26 |
+
|
| 27 |
+
<!-- Response Section -->
|
| 28 |
+
<section class="response-section">
|
| 29 |
+
<h2>Generated Response</h2>
|
| 30 |
+
<div id="response-output" class="output-box">
|
| 31 |
+
<p>Your AI-generated response will appear here.</p>
|
| 32 |
+
</div>
|
| 33 |
+
</section>
|
| 34 |
+
|
| 35 |
+
<!-- Retrieved Context Section -->
|
| 36 |
+
<section class="context-section">
|
| 37 |
+
<h2>Retrieved Context</h2>
|
| 38 |
+
<div id="context-output" class="output-box">
|
| 39 |
+
<p>Relevant documents and context used for generation will be displayed here.</p>
|
| 40 |
+
</div>
|
| 41 |
+
</section>
|
| 42 |
+
|
| 43 |
+
<!-- Settings Panel -->
|
| 44 |
+
<aside class="settings-panel">
|
| 45 |
+
<h2>RAG Settings</h2>
|
| 46 |
+
<div class="setting">
|
| 47 |
+
<label for="model-select">Model:</label>
|
| 48 |
+
<select id="model-select">
|
| 49 |
+
<option value="gemini-2.0-flash">Gemini 2.0 Flash</option>
|
| 50 |
+
<option value="custom-rag">Custom RAG Model</option>
|
| 51 |
+
</select>
|
| 52 |
+
</div>
|
| 53 |
+
<div class="setting">
|
| 54 |
+
<label for="top-k">Top-K Retrieval:</label>
|
| 55 |
+
<input type="number" id="top-k" value="5" min="1" max="20">
|
| 56 |
+
</div>
|
| 57 |
+
<div class="setting">
|
| 58 |
+
<label for="temperature">Temperature:</label>
|
| 59 |
+
<input type="number" id="temperature" value="0.7" step="0.1" min="0" max="1">
|
| 60 |
+
</div>
|
| 61 |
+
<div class="setting">
|
| 62 |
+
<label for="context-length">Context Length:</label>
|
| 63 |
+
<input type="number" id="context-length" value="512" min="128" max="2048">
|
| 64 |
+
</div>
|
| 65 |
+
<button id="apply-settings">Apply Settings</button>
|
| 66 |
+
</aside>
|
| 67 |
+
</main>
|
| 68 |
+
|
| 69 |
+
<!-- Footer -->
|
| 70 |
+
<footer>
|
| 71 |
+
<p>© 2025 Advanced RAG System. Powered by xAI.</p>
|
| 72 |
+
</footer>
|
| 73 |
+
</div>
|
| 74 |
+
<script src="script.js"></script>
|
| 75 |
+
</body>
|
| 76 |
+
</html>
|