Skip to content

Jev directory

Zero-shot email classification with TypeSafe's Jev

An exploratory study of zero-shot ham, spam, and phishing classification with Jev: enriched email context raised main-set accuracy from 93.62% to 98.64%, within 0.23 points of a trained TF-IDF baseline.
Stars
3
Language
Jupyter Notebook
License
MIT
Reading time
3 min
Published by
Community
Author
bitnovus
Last verified
Sep 2026

bitnovus/jev-spam-eval

User repository on GitHub

View on GitHub

Zero-shot spam filtering with TypeSafe Jev Noul questions, compared with TF-IDF baselines

Forks
1
Last pushed
Updated Sep 2026

Repo stats from the GitHub API, cached Oct 2026.

About this project

TypeSafe’s Jev reached 98.64% accuracy on a 5,733-email ham/spam/phishing test using written category definitions and email context, without task-specific fine-tuning or labeled examples in its requests. A TF-IDF logistic regression classifier trained on roughly 4,600 labeled messages per fold reached 98.87% with the same evidence.

Quoted from the project's README. Read the full README.

Highlights

  • On 9,886 messages, adding link destinations, Reply-To, and attachment metadata raised accuracy from 93.62% to 97.98% with the question unchanged.
  • Phishing recall rose from 85.71% to 98.43%, while legitimate messages flagged as phishing stayed at one.
  • With evidence-focused wording the main set reached 98.64%, 0.23 points behind a TF-IDF logistic regression trained on about 4,600 labeled messages per fold.
  • On 853 phishing messages from 2024-25, enriched Jev caught 95.31% versus 75.26% for regression trained on older mail.

Quickstart

bash
export TYPESAFE_API_KEY=YOUR_API_KEY
uv run python experiments/jev-context/evaluate.py --limit 3

Watch out

MIT-licensed. Results are exploratory on jev-1.13.0 and public corpora that may have leaked into pretraining, and dataset licenses are separate from the code license.

Questions about this entry

Short answers drawn from the linked project or page.

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai