77 lines
2.8 KiB
Twig
77 lines
2.8 KiB
Twig
{% extends 'admin/base.html.twig' %}
|
|
|
|
{% block title %}System Prompt{% endblock %}
|
|
|
|
{% block body %}
|
|
<h1>Create Ingest Profile</h1>
|
|
|
|
<form method="post">
|
|
<table class="table table-sm table-dark align-middle">
|
|
<tbody>
|
|
<tr>
|
|
<th scope="row" class="w-25">Chunk Size (500-2500)</th>
|
|
<td>
|
|
<label>
|
|
<select name="chunk_size" class="form-select">
|
|
{% for i in range(250, 2500, 50) %}
|
|
<option value="{{ i }}" {{ selectedValue is defined and selectedValue == i ? 'selected' : '' }}>
|
|
{{ i }}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Chunk Overlap (50-150)</th>
|
|
<td>
|
|
<label>
|
|
<select name="chunk_overlap" class="form-select">
|
|
{% for i in range(50, 150, 25) %}
|
|
<option value="{{ i }}" {{ selectedValue is defined and selectedValue == i ? 'selected' : '' }}>
|
|
{{ i }}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Embedding Model (default)</th>
|
|
<td>
|
|
<label>
|
|
<select name="embedding_model" class="form-control" required>
|
|
<option value="all-MiniLM-L6-v2">all-MiniLM-L6-v2</option>
|
|
</select>
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Embedding Dimension (default)</th>
|
|
<td>
|
|
<label>
|
|
<select name="embedding_dimension" class="form-control" required>
|
|
<option value="768">768</option>
|
|
</select>
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Scoring Version (default)</th>
|
|
<td>
|
|
<label>
|
|
<input type="number" name="scoring_version" class="form-control" value="1" placeholder="1" readonly required>
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" class="text-start">
|
|
<button type="submit" class="btn btn-primary">Create</button>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
|
|
{% endblock %}
|