{% extends "base.html" %} {% set active_page = "ask" %} {% block title %}Ask — IETF Draft Analyzer{% endblock %} {% block extra_head %} {% endblock %} {% block content %}

Ask the Draft Corpus

Search across {{ "{:,}".format(stats.total if stats is defined and stats else 434) }} drafts using keyword + semantic similarity. AI synthesis is optional.

Combines keyword search + semantic similarity (free, no API calls)
{% if not question %}
Example questions
{% set examples = [ "Which drafts address agent authentication and identity?", "What are the competing approaches to agent-to-agent communication?", "How do safety mechanisms work across different proposals?", "What protocols exist for AI model serving and inference?", "Which drafts propose agent discovery or registration systems?", "What are the main gaps in autonomous network operations?", ] %} {% for q in examples %} {{ q }} {% endfor %}
{% endif %} {% if result %}
{% if result.answer %}

AI Answer

cached
{{ result.answer }}
{% else %} {% if is_admin %}
Want an AI-synthesized answer?
Uses Claude API (Haiku, ~$0.001). Result is cached permanently for all future visitors.
{% endif %} {% endif %}
{% if result.sources %}

Matching Drafts ({{ result.sources|length }})

{% for src in result.sources %} {% endfor %}
# Draft Match Score
{{ loop.index }} {{ src.title }}
{{ src.name }}
{% if src.match_type == 'both' %} both {% elif src.match_type == 'semantic' %} semantic {% else %} keyword {% endif %} {{ "%.3f"|format(src.similarity) if src.similarity else "-" }}
{% endif %}
{% endif %} {% endblock %}