{% extends "base.html" %} {% block title %}Knowledge Graph — Agent Wasp{% endblock %} {% block page_css %} {% endblock %} {% block content %}

Knowledge Graph

Entities and relations extracted from conversations

{{ stats.node_count }}
Nodes
{{ stats.relation_count }}
Relations
{% for et, n in stats.entity_types.items() %} {% if loop.index <= 2 %} {% set etc = {"person":"#3b82f6","concept":"#8b5cf6","preference":"#f59e0b","fact":"#10b981","organization":"#06b6d4","asset":"#f97316","place":"#22c55e","event":"#ec4899"}.get(et,"#6b7280") %}
{{ n }}
{{ et }}
{% endif %} {% endfor %}
{% if not nodes %}

No knowledge nodes yet

Nodes are extracted automatically from conversations

{% endif %}
{% if nodes %}
All Nodes {{ nodes|length }} shown
{% for n in nodes %} {% set nc = {"person":"#3b82f6","concept":"#8b5cf6","preference":"#f59e0b","fact":"#10b981","organization":"#06b6d4","asset":"#f97316","place":"#22c55e","event":"#ec4899"}.get(n.entity_type,"#6b7280") %} {% endfor %}
Name Type Confidence Del
{{ n.name }} {{ n.entity_type }}
{{ (n.confidence*100)|int }}%
{% endif %} {% endblock %} {% block extra_scripts %} {% endblock %}