File size: 1,016 Bytes
1f2ba2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{% extends 'base.html' %}

{% block content %}
    <div class="container mt-5">
        <div class="card bg-dark text-white shadow">
            <div class="card-header text-center">
                <h3>Available Vector Databases</h3>
            </div>
            <div class="card-body">
                <h4 class="text-center mb-4">Select a Vector Database</h4>
                <ul class="list-group">
                    {% for db in vector_dbs %}
                    <li class="list-group-item bg-dark text-white d-flex justify-content-between align-items-center">
                        <span>{{ db }}</span>
                        <form method="post" action="{{ url_for('select_db', db_name=db) }}" class="mb-0">
                            <button type="submit" class="btn btn-primary btn-sm">Select</button>
                        </form>
                    </li>
                    {% endfor %}
                </ul>
            </div>
        </div>
    </div>
{% endblock %}