Prompt engineering

Feed Summary Prompt Library

Build versioned prompt contracts for item summaries, topic synthesis, alerts, executive briefings, and independent verification.

prompt templatestructured outputevidence IDsuncertaintyevaluation

Prompt contract

A reusable prompt anatomy

Every template should state the job, evidence boundaries, output contract, limits, and failure behavior.

Purpose + audience

Name the reader, decision, time window, and information priority.

Evidence envelope

Label source metadata and blocks; treat embedded instructions as untrusted content.

Output schema

Define field types, lengths, null behavior, uncertainty, conflict handling, and evidence IDs.

Copy the structure

Starter template

A compact example for item-level summaries. Adapt the fields to the decision, not to a generic writing style.

item-summary.prompt
SYSTEM / TASK
Create a neutral item record for an editorial review queue.

RULES
- Use only the enclosed source blocks.
- Return null when a date is not stated.
- Attribute claims and preserve disagreement.
- Cite evidence_ids for every key point.

OUTPUT
headline, abstract, key_points[], event_date,
content_type, open_questions[], evidence_ids[]

<SOURCE id="rss-104"> ... </SOURCE>

Task separation

Use separate templates by stage

Extraction, item summary, cluster synthesis, briefing, alerting, and verification are different jobs.

Item record

Facts, entities, dates, content type, and evidence from one source.

Cluster synthesis

Central development, new information, agreement, differences, and open questions.

Verification

Unsupported claims, mismatched dates, quantities, entities, and invalid evidence references.

Feed Signals

Complete prompt guide

Versioning, examples, structured output, validation, evaluation, and production monitoring.