搜索与检索

jev-search

@superagents-lab248TypeScriptMIT更新于 2026-09-20可当场跑

使用 TypeSafe 的 Jev 进行网页搜索,包含源选择、查询理解和相关性排序,基于 Search1API 构建。

英文原文

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

superagents-lab/jev-search

它在哪儿调用了 Jev

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

src/lib/typesafe.ts:72

链接指向我们抓取当天的那个 commit,行号是准的。

它问 Jev 的问题

下面是从这个项目源码里原样取出来的 question 组合。

取自 test/typesafe.test.ts:38

  1. window选项

    How recent?

    • anyAny time
    • 7dPast week
  2. source_reddit是/否

    Wants Reddit?

  3. plain是/否

    No criteria

用你自己的内容跑一遍

代码
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' },
  },
});

取自 test/typesafe.test.ts:158

  1. source_reddit是/否

    Wants Reddit?

  2. plain是/否

    No criteria

用你自己的内容跑一遍

代码
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' },
  },
});

同类的其他项目