Semantic Search

Semantic Search

{% if error %}
{{ error }}
{% endif %} {% if results %} {% if consensus %}
{% if consensus.status == 'consensus' %} Consensus: All models predict {{ consensus.value }} {% else %} Divergent: Models predict {{ consensus['values']|join(', ') }} {% endif %}
{% endif %}
Google (768d) {% if results._timings and results._timings.google %} {{ "%.0f"|format(results._timings.google) }}ms {% endif %}
{% if results.google %}
Predicted GL Account:
Predicted Cost Center:
{{ results.google[0].cost_center or 'N/A' }}
{{ results.google[0].supplier_name }}: {{ results.google[0].description }}
Similarity: {{ "%.3f"|format(results.google[0].similarity) }}
{% if results.google|length > 1 %} {% for r in results.google[1:] %}
{{ "%.3f"|format(r.similarity) }}
{{ r.supplier_name }}
{{ r.description[:100] }}{{ '...' if r.description|length > 100 }}
CC: {{ r.cost_center or '-' }}
{% endfor %} {% endif %} {% else %}
No results
{% endif %}
Jina (1024d) {% if results._timings and results._timings.jina %} {{ "%.0f"|format(results._timings.jina) }}ms {% endif %}
{% if results.jina %}
Predicted GL Account:
Predicted Cost Center:
{{ results.jina[0].cost_center or 'N/A' }}
{{ results.jina[0].supplier_name }}: {{ results.jina[0].description }}
Similarity: {{ "%.3f"|format(results.jina[0].similarity) }}
{% if results.jina|length > 1 %} {% for r in results.jina[1:] %}
{{ "%.3f"|format(r.similarity) }}
{{ r.supplier_name }}
{{ r.description[:100] }}{{ '...' if r.description|length > 100 }}
CC: {{ r.cost_center or '-' }}
{% endfor %} {% endif %} {% else %}
No results
{% endif %}
MiniLM (384d) {% if results._timings and results._timings.minilm %} {{ "%.0f"|format(results._timings.minilm) }}ms {% endif %}
{% if results.minilm %}
Predicted GL Account:
Predicted Cost Center:
{{ results.minilm[0].cost_center or 'N/A' }}
{{ results.minilm[0].supplier_name }}: {{ results.minilm[0].description }}
Similarity: {{ "%.3f"|format(results.minilm[0].similarity) }}
{% if results.minilm|length > 1 %} {% for r in results.minilm[1:] %}
{{ "%.3f"|format(r.similarity) }}
{{ r.supplier_name }}
{{ r.description[:100] }}{{ '...' if r.description|length > 100 }}
CC: {{ r.cost_center or '-' }}
{% endfor %} {% endif %} {% else %}
No results
{% endif %}
LLM (Gemini) {% if results._timings and results._timings.llm %} {{ "%.0f"|format(results._timings.llm) }}ms {% endif %}
{% if results.llm.error %}
{{ results.llm.error }}
{% else %}
Predicted GL Account:
Predicted Cost Center:
{{ results.llm.cost_center or 'N/A' }}
{% if results.llm.historical_count is defined %}
Based on {{ results.llm.historical_count }} historical bookings
{% endif %} {% endif %}
{% if historical_bookings %}
Historical Bookings ({{ historical_bookings|length }} records) Click to expand/collapse
{% for booking in historical_bookings %} {% endfor %}
Supplier Description Amount GL Account Cost Center
{{ booking.supplier_name }} {{ booking.description }} {{ "%.2f"|format(booking.net_amount|float) if booking.net_amount else '-' }} {{ booking.debit_account or '-' }} {{ booking.cost_center or '-' }}
{% endif %} {% endif %}