Agent 工具

jev-context

@zbush1JavaScriptMIT更新于 2026-09-19可当场跑

基于Jev相关性过滤和可审计token指标的Codex代码搜索插件。

英文原文

Codex code-search plugin using Jev relevance filtering with auditable token metrics

zbush/jev-context

它在哪儿调用了 Jev

const response = await fetchImpl('https://api.typesafe.ai/v1/systemone', {

src/jev.mjs:45

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

它问 Jev 的问题

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

取自 src/jev.mjs:4

  1. relevance选项

    Does candidate contain useful evidence for user_question or retrieval_objective?

    • YesThe passage provides useful evidence, a relevant dependency, background, a test, or counterevidence.
    • NoThe passage does not provide useful evidence for this information need; shared keywords alone are insufficient.

用你自己的内容跑一遍

代码
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    relevance: { type: 'choice', instructions: 'Does candidate contain useful evidence for user_question or retrieval_objective?',
      criteria: { Yes: 'The passage provides useful evidence, a relevant dependency, background, a test, or counterevidence.', No: 'The passage does not provide useful evidence for this information need; shared keywords alone are insufficient.' } },
  },
});

同类的其他项目