开源复现

von

@wfzyx48PythonApache-2.0更新于 2026-09-20可当场跑

开源的 System One 决策模型,非自回归,响应时间低于15毫秒,可本地替代 TypeSafe Jev。

英文原文

The open-source System One decision model. Sub-15ms, non-autoregressive, local drop-in alternative to TypeSafe Jev.

wfzyx/von

它在哪儿调用了 Jev

* Evaluates state and questions via System One wire protocol (POST /v1/systemone).

js/src/client.ts:43

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

它问 Jev 的问题

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

取自 examples/intent_routing.py:3

  1. intent选项

    What does the author of `message` want?

    • order_statusWhere is my order, has it shipped, tracking lookup
    • product_questionHow a product works, compatibility, specs
    • return_exchangeReturn, exchange, or replace an item
    • complaintUnhappy with service or product, wants a resolution
  2. needs_reasoning打分

    How much thought does a good answer to `message` need?

    • 0A lookup or a one-line fact
    • 1A short explanation using product knowledge
    • 2A judgment call with trade-offs or an unhappy customer

用你自己的内容跑一遍

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

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    intent: { type: 'choice', instructions: 'What does the author of `message` want?',
      criteria: { order_status: 'Where is my order, has it shipped, tracking lookup', product_question: 'How a product works, compatibility, specs', return_exchange: 'Return, exchange, or replace an item', complaint: 'Unhappy with service or product, wants a resolution' } },
    needs_reasoning: { type: 'score', instructions: 'How much thought does a good answer to `message` need?',
      criteria: ['A lookup or a one-line fact', 'A short explanation using product knowledge', 'A judgment call with trade-offs or an unhappy customer'] },
  },
});

取自 examples/sponsor_form.py:10

  1. is_sponsor_inquiry是/否

    Does `description` ask to sponsor the site or newsletter?

  2. product_category选项

    What kind of product is described by `name` and `description`?

    • dev_toolDeveloper tools, hosting, APIs, SaaS for developers
    • courseCourses, books, or training
    • unrelatedAnything not aimed at developers
  3. message_quality打分

    How specific is the request?

    • 0Generic template, no reference to this site
    • 1Mentions the site but no concrete ask
    • 2Concrete ask with a timeframe or product named

用你自己的内容跑一遍

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

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    is_sponsor_inquiry: { type: 'boolean', instructions: 'Does `description` ask to sponsor the site or newsletter?' },
    product_category: { type: 'choice', instructions: 'What kind of product is described by `name` and `description`?',
      criteria: { dev_tool: 'Developer tools, hosting, APIs, SaaS for developers', course: 'Courses, books, or training', unrelated: 'Anything not aimed at developers' } },
    message_quality: { type: 'score', instructions: 'How specific is the request?',
      criteria: ['Generic template, no reference to this site', 'Mentions the site but no concrete ask', 'Concrete ask with a timeframe or product named'] },
  },
});

取自 tests/test_patterns_presets.py:63

  1. is_outage是/否

    Is there an active database outage?

用你自己的内容跑一遍

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

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    is_outage: { type: 'boolean', instructions: 'Is there an active database outage?' },
  },
});

取自 tests/test_patterns_presets.py:78

  1. severity打分

    Rate outage severity

    • 0Minor
    • 1Moderate
    • 2Critical emergency
  2. blocking是/否

    Is this blocking?

用你自己的内容跑一遍

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

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    severity: { type: 'score', instructions: 'Rate outage severity',
      criteria: ['Minor', 'Moderate', 'Critical emergency'] },
    blocking: { type: 'boolean', instructions: 'Is this blocking?' },
  },
});

同类的其他项目