Query: "{{ query }}"
Found {{ count }} results
Filter by Knowledge Base:
Very high semantic similarity - meanings are nearly identical
{% elif r.score >= 0.7 %} đĄ Good match ({{ "%.3f"|format(r.score) }})High semantic similarity - meanings are very close
{% elif r.score >= 0.5 %} đ Moderate match ({{ "%.3f"|format(r.score) }})Moderate semantic similarity - related concepts
{% else %} đ´ Weak match ({{ "%.3f"|format(r.score) }})Low semantic similarity - loosely related or unrelated
{% endif %}đ Top Contributing Terms ({{ r.explanation.model_name }} model):
âšī¸ Custom TF-IDF Model:
Query "{{ query }}" - Top terms with TF-IDF scores:
Result text snippet - Top terms with TF-IDF scores:
â Exact Words That Matched:
{% for term in overlapping_terms %} {{ term }} {% endfor %}
â Custom model learned these terms are related!
â ī¸ No Direct Word Overlap
Match is based on semantic similarity in embedding space, not exact word matches
đĄ Custom model uses TF-IDF vectorization: Each of {{ r.explanation.embedding_dim }} dimensions represents a unique word/bigram
đ Dimension Browser
Explore all {{ r.explanation.embedding_dim }} dimensions
â Custom Model Feature:
{% if r.explanation.vocabulary %}Each dimension shows the exact word/bigram it represents with TF-IDF scores
{% else %}This model was trained without vocabulary metadata. Retrain the model to see word/bigram names for each dimension.
{% endif %}Educational feature: Scroll through all dimensions to understand embedding space
Full dimension: {{ r.explanation.embedding_dim }} | Blue = positive, Red = negative
đ Overall Vector Alignment:
{% set query_emb = r.explanation.query_embedding_preview %} {% set chunk_emb = r.explanation.chunk_embedding_preview %} {% set same_sign_count = 0 %} {% set total_diff = 0 %} {% for i in range(3) %} {% if i < query_emb|length and i < chunk_emb|length %} {% set diff = ((query_emb[i] - chunk_emb[i])|abs) %} {% if (query_emb[i] >= 0 and chunk_emb[i] >= 0) or (query_emb[i] < 0 and chunk_emb[i] < 0) %} {% set same_sign_count = same_sign_count + 1 %} {% endif %} {% set total_diff = total_diff + diff %} {% endif %} {% endfor %}đĸ Top 3 Most Aligned Dimensions:
Dimension {{ dim_info.dim + 1 }}: {% if r.explanation.model_type == 'custom' and r.explanation.vocabulary and dim_info.dim < (r.explanation.vocabulary|length) %} "{{ r.explanation.vocabulary[dim_info.dim] }}" {% endif %}
{% if r.explanation.model_type == 'custom' %}TF-IDF scores for this word/bigram:
{% endif %}đ´ Most Divergent Dimensions:
Dimension {{ dim_info.dim + 1 }}: {% if r.explanation.model_type == 'custom' and r.explanation.vocabulary and dim_info.dim < (r.explanation.vocabulary|length) %} "{{ r.explanation.vocabulary[dim_info.dim] }}" {% endif %}
{% if r.explanation.model_type == 'custom' %}TF-IDF scores for this word/bigram:
{% endif %}đ Cosine Similarity = dot product of normalized vectors
Scores range from 0 (unrelated) to 1 (identical). Higher scores mean more similar meanings.
{% if r.explanation.model_type == 'custom' %} This custom model ({{ r.explanation.model_name }}) was trained on domain-specific text. {% else %} Using E5-Small general-purpose model (384 dimensions). {% endif %}