| <html> | |
| <body> | |
| <h1>RAG Search Demo</h1> | |
| <form method="post" action="/demo"> | |
| <input type="text" name="query" placeholder="Enter query" required> | |
| <button type="submit">Search</button> | |
| </form> | |
| {% if results %} | |
| <h2>Results for: {{ query }}</h2> | |
| <ul> | |
| {% for r in results %} | |
| <li>{{ r }}</li> | |
| {% endfor %} | |
| </ul> | |
| {% endif %} | |
| </body> | |
| </html> | |