optimize code and ingest docs

This commit is contained in:
team 1
2026-02-17 14:12:24 +01:00
parent f528a1c395
commit 812f2bf265
11 changed files with 156 additions and 282 deletions

View File

@@ -6,21 +6,71 @@
<h1>Create Ingest Profile</h1>
<form method="post">
<label>Chunk Size:</label>
<input type="number" name="chunk_size" required><br>
<label>Chunk Overlap:</label>
<input type="number" name="chunk_overlap" required><br>
<label>Embedding Model:</label>
<input type="text" name="embedding_model" required><br>
<label>Embedding Dimension:</label>
<input type="number" name="embedding_dimension" required><br>
<label>Scoring Version:</label>
<input type="number" name="scoring_version" required><br>
<button type="submit">Create</button>
<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 %}