alpha new hybridretriver line
This commit is contained in:
93
templates/admin/model_config/test_retrieval.html.twig
Normal file
93
templates/admin/model_config/test_retrieval.html.twig
Normal file
@@ -0,0 +1,93 @@
|
||||
{% extends 'admin/base.html.twig' %}
|
||||
|
||||
{% block title %}Retrieval-Test{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h1 class="h3">
|
||||
Retrieval-Test – {{ config.modelName }} (v{{ config.version }})
|
||||
</h1>
|
||||
|
||||
<a href="{{ path('admin_model_config_list') }}"
|
||||
class="btn btn-sm btn-outline-secondary">
|
||||
Zurück
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{# ====================================================== #}
|
||||
{# Konfigurationsübersicht #}
|
||||
{# ====================================================== #}
|
||||
|
||||
<div class="card bg-black border-secondary text-light mb-4">
|
||||
<div class="card-body small">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<strong>Max Chunks:</strong>
|
||||
{{ config.retrievalMaxChunks }}
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<strong>Vector Top K:</strong>
|
||||
{{ config.retrievalVectorTopK }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{# ====================================================== #}
|
||||
{# Testformular #}
|
||||
{# ====================================================== #}
|
||||
|
||||
<div class="card bg-black border-secondary text-light mb-4">
|
||||
<div class="card-body">
|
||||
|
||||
<form method="post">
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Test-Prompt</label>
|
||||
<textarea name="prompt"
|
||||
rows="3"
|
||||
class="form-control bg-dark text-light border-secondary"
|
||||
required>{{ prompt }}</textarea>
|
||||
</div>
|
||||
|
||||
<button type="submit"
|
||||
class="btn btn-outline-warning">
|
||||
Retrieval testen
|
||||
</button>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{# ====================================================== #}
|
||||
{# Ergebnisse #}
|
||||
{# ====================================================== #}
|
||||
|
||||
{% if results is not empty %}
|
||||
<div class="card bg-black border-secondary text-light">
|
||||
<div class="card-body">
|
||||
|
||||
<h5 class="text-warning mb-3">
|
||||
Gefundene Chunks ({{ results|length }})
|
||||
</h5>
|
||||
|
||||
<div style="max-height: 500px; overflow-y: auto;">
|
||||
|
||||
{% for chunk in results %}
|
||||
<div class="border border-secondary p-3 mb-3 small">
|
||||
{{ chunk }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user