Contact Extraction v1 Baseline.prompt
---
name: contact-extraction-v1-baseline
version: 1.0.0
category: extraction
intent: >
Baseline variant. Extract contact details (name, email, phone, company) from
free text into JSON. Minimal instructions — used as the control in the A/B
eval against the hardened v2.
model_notes: >
Intentionally underspecified to demonstrate, via the eval harness, how a thin
prompt drifts: it tends to omit nulls and occasionally adds prose.
inputs:
- text: free-form text possibly containing contact details
schema: ../../schemas/contact.schema.json
---
# System prompt
Extract the contact information from the text below and return it as JSON with
the fields: name, email, phone, company.
---
## Why it works (and where it falls short)
- It works *often enough* to look fine in a demo, which is exactly the trap.
- It has **no null policy**, so absent fields get dropped or invented depending
on the run — non-deterministic shape.
- It has **no "JSON only" guard**, so the model sometimes wraps output in a
markdown fence or adds a sentence, breaking `json.loads`.
- It does **not normalise phone numbers or constrain email shape**.
This file exists to be *beaten*. See `contact-extraction-v2-hardened` and the
`evals/` harness, which scores both variants on the same golden inputs and shows
the hardened version winning on schema-validity and field accuracy.when to use it
Community prompt sourced from the open-source GitHub repo schuligan/prompt-library (MIT). A "Contact Extraction v1 Baseline.prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
productivitycommunitydeveloper
source
schuligan/prompt-library · MIT
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar