{% if not queried %}

Enter a user id to inspect their recent events and current top-K.

{% else %}

Recommendations for {{ user_id }}

{% if events and not events_error %} warm {% elif not events_error %} no events {% endif %} {% if fallback %} cold-start fallback {% endif %} {% if variant %} {{ experiment_id }} / {{ variant }} {% endif %} {% for mix in source_mix %} {{ mix.source }} {{ mix.count }} {% endfor %}
{% if fallback %}

These are popular-item stand-ins, not this user's personalized ranking.

{% endif %} {% if user_attrs %}
{% for attr in user_attrs %}
{{ attr.name }}
{{ attr.value }}
{% endfor %}
{% endif %}

Recent events

{% if events_error %}
{{ events_error }}
{% elif not events %}

No events for {{ user_id }}.

{% else %}
{% if show_quantity %} {% endif %} {% for event in events %} {% if show_quantity %} {% endif %} {% endfor %}
Recent events for {{ user_id }}
When Item TypeQty
{% if event.occurred_at != "—" %} {% else %} {{ event.occurred_at }} {% endif %} {{ event.item_id }}{% if event.item_id in overlap_item_ids %} Also in recommendations{% endif %} {{ event.event_type }}{{ event.quantity }}
{% endif %}

Current top-K

{% if error %} {% elif not items %}

No recommendations for {{ user_id }}.

{% else %}
{% if show_category %} {% endif %} {% if show_reasons %} {% endif %} {% for item in items %} {% if show_category %} {% endif %} {% if show_reasons %} {% endif %} {% endfor %}
Current top-K recommendations for {{ user_id }}{% if fallback %}, using cold-start fallback{% endif %}
Rank ItemCategoryScore SourceWhy
{{ item.rank }} {{ item.item_id }}{% if item.item_id in overlap_item_ids %} Also in recent events{% endif %}{{ item.category }}{{ item.score }} {{ item.source }}{{ item.reasons }}
{% endif %}
{% if overlap_item_ids %}

Highlighted rows appear in both events and recommendations.

{% endif %} {% endif %}