fix: guard against empty inputs

This commit is contained in:
Rajat Ahuja 2025-11-10 17:07:46 -05:00
parent e663fbd730
commit a45bd98c8f
2 changed files with 9 additions and 0 deletions

View File

@ -177,9 +177,14 @@ Each deduction must be self-contained and include sufficient context:
- Disambiguating details that make the conclusion independently meaningful
- All necessary qualifiers to ensure accuracy
{% if peer_card %}
{{ peer_card|join('\n') }}
{% endif %}
{% if existing_deductions_section %}
Existing deductions ....
{{ existing_deductions_section }}
{% endif %}
Atomic propositions to use as premises:
<atomic_propositions>

View File

@ -94,15 +94,19 @@ Example 4 - Implicit Extraction:
- [ ] Absolute dates/times when temporal info present
- [ ] Both explicit and obvious implicit facts extracted
{% if peer_card %}
{{ peer_id }}'s known biographical information:
<peer_card>
{{ peer_card|join('\n') }}
</peer_card>
{% endif %}
{% if has_working_representation %}
Current understanding of {{ peer_id }}:
<current_context>
{{ working_representation }}
</current_context>
{% endif %}
Recent conversation history for context:
<history>