Semantic Search Curation

Semantic Search Curation

{% if error %}
{{ error }}
{% endif %} {% if results %}
{% for model in ['google', 'minilm'] %} {% set data = results[model] %}
{{ model.upper() }} ({{ "%.1f"|format(data.timing_ms) }}ms)
{% for cluster in data.clusters[:6] %} {% if cluster.cost_center %}/{{ cluster.cost_center }}{% endif %} ({{ cluster.total_matches }}) {% endfor %} {% if data.clusters|length > 6 %} +{{ data.clusters|length - 6 }} more {% endif %}
{% for cluster in data.clusters %}
{% if cluster.cost_center %} / {{ cluster.cost_center }} {% endif %}
{{ cluster.total_matches }} matches {{ cluster['items']|length }} items
{% for item in cluster['items'] %} {% endfor %}
Supplier Description Amount Sim
{{ item.supplier_name }} {{ item.description }} {% if item.net_amount %} {{ "%.2f"|format(item.net_amount|float) }} {% endif %} {% set sim_pct = (item.similarity * 100)|int %} {{ sim_pct }}%
{% endfor %}
{% endfor %}
{% endif %}