{% extends "admin/base.html" %} {% block title %}SVO Session Details - {{ session.session_name }}{% endblock %} {% block page_title %}📊 Session Analysis: {{ session.session_name }}{% endblock %} {% block page_subtitle %}Detailed SVO Research Results and Analytics{% endblock %} {% block extra_head %} {% endblock %} {% block admin_content %}

{{ session.session_name }}

Status: {% if session.status == 'completed' %} Completed {% elif session.status == 'running' %} Running {% elif session.status == 'failed' %} Failed {% else %} {{ session.status.title() }} {% endif %}

Created: {{ session.created_at.strftime('%Y-%m-%d %H:%M:%S') if session.created_at else 'Unknown' }}

{% if session.completed_at %}

Completed: {{ session.completed_at.strftime('%Y-%m-%d %H:%M:%S') }}

{% endif %}

URLs Analyzed: {{ session.urls|length if session.urls else 0 }}

SVO Tuples Found: {{ session.total_svo_found or 0 }}

{% if session.failed_urls %}

Failed URLs: {{ session.failed_urls|length }}

{% endif %}
{% if summary and summary.csv_export_path %} Download CSV {% endif %}
{% if analytics %}
URL Performance Analytics
{{ analytics.total_urls_processed }}
URLs Processed
{{ "%.1f"|format(analytics.average_confidence * 100) }}%
Avg Confidence
{{ analytics.high_confidence_count }}
High Confidence
{% if analytics.most_productive_url %}
Most Productive URL: {{ analytics.most_productive_url[0] }} produced {{ analytics.most_productive_url[1] }} SVO tuples
{% endif %}
Quick Stats
Avg Context Length: {{ "%.0f"|format(analytics.average_context_length) }} chars
Success Rate: {{ "%.1f"|format((analytics.total_urls_processed / (session.urls|length if session.urls else 1)) * 100) }}%
Unique Subjects: {{ summary.unique_subjects if summary else 'N/A' }}
Unique Verbs: {{ summary.unique_verbs if summary else 'N/A' }}
Unique Objects: {{ summary.unique_objects if summary else 'N/A' }}
{% if session.failed_urls %}
Processing Errors
{% for failed in session.failed_urls[:3] %}
{{ failed.url }}
{{ failed.error }}
{% endfor %} {% if session.failed_urls|length > 3 %}
... and {{ session.failed_urls|length - 3 }} more errors
{% endif %}
{% endif %}
{% endif %} {% if summary %}
{% if summary.subject_chart_path %}
Top Subjects
Subject Frequency Chart
{% endif %} {% if summary.verb_chart_path %}
Top Verbs
Verb Frequency Chart
{% endif %} {% if summary.object_chart_path %}
Top Objects
Object Frequency Chart
{% endif %}
{% endif %}
SVO Results Explorer
Quick Filters:
Showing {{ sample_results|length }} of {{ session.total_svo_found or 0 }} total results
{% if sample_results %} {% for result in sample_results %}
{{ result.subject }}
Subject
{{ result.verb }}
Verb
{{ result.object }}
Object
{% if result.context_text %}
Context: {{ result.context_text[:200] }}{% if result.context_text|length > 200 %}...{% endif %}
{% endif %}
Confidence: {{ "%.1f"|format((result.confidence_score or 0) * 100) }}%
Clean: {{ result.subject_clean }} → {{ result.verb_clean }} → {{ result.object_clean }}
{% endfor %} {% if sample_results|length >= 100 %}
{% endif %} {% else %}
No SVO Results Found

This session hasn't produced any SVO tuples yet.

{% endif %}
Back to Dashboard
{% endblock %} {% block extra_js %} {% endblock %}