RAG_AI / templates /create_db.html
WebashalarForML's picture
Upload 10 files
1f2ba2d verified
{% extends 'base.html' %}
{% block content %}
<div class="container mt-5">
<div class="card bg-dark text-white shadow">
<div class="card-header">
<h3>Create a New Vector Database</h3>
</div>
<div class="card-body">
<form method="post" enctype="multipart/form-data">
<!-- Database Name Input -->
<div class="form-group">
<label for="db_name" class="form-label">Database Name</label>
<input type="text" id="db_name" name="db_name" class="form-control" placeholder="Enter database name" required>
</div>
<!-- Folder Upload Input -->
<div class="form-group mt-3">
<label for="folder" class="form-label">Upload Folder</label>
<input type="file" id="folder" name="folder" class="form-control" webkitdirectory directory multiple required>
<small class="text-muted">Note: Folder upload is supported only in Chrome and Edge browsers.</small>
</div>
<!-- Submit Button -->
<div class="mt-4 text-center">
<button type="submit" class="btn btn-primary px-5">Create</button>
</div>
</form>
</div>
</div>
</div>
{% endblock %}