Search & retrieval

jev-search

@superagents-lab248TypeScriptMITupdated 2026-09-20runnable

Search the web with TypeSafe's Jev: source selection, query understanding and relevance ranking. Built with Search1API.

superagents-lab/jev-search

Where it calls Jev

const TYPESAFE_URL = 'https://api.typesafe.ai/v1/systemone';

src/lib/typesafe.ts:72

The link points at the commit we read, so the line number still holds.

What it asks Jev

These question sets are lifted from this project's source exactly as written.

from test/typesafe.test.ts:38

  1. windowchoice

    How recent?

    • anyAny time
    • 7dPast week
  2. source_reddittrue/false

    Wants Reddit?

  3. plaintrue/false

    No criteria

Run it on your own text

The code
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    window: { type: 'choice', instructions: 'How recent?',
      criteria: { any: 'Any time', 7d: 'Past week' } },
    source_reddit: { type: 'boolean', instructions: 'Wants Reddit?' },
    plain: { type: 'boolean', instructions: 'No criteria' },
  },
});

from test/typesafe.test.ts:158

  1. source_reddittrue/false

    Wants Reddit?

  2. plaintrue/false

    No criteria

Run it on your own text

The code
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    source_reddit: { type: 'boolean', instructions: 'Wants Reddit?' },
    plain: { type: 'boolean', instructions: 'No criteria' },
  },
});

Other projects in this category