搜索与检索
基于 TypeSafe Jev 的语义代码搜索工具,按代码功能而非名称进行查找。
grep for what code does, not what it's called. Semantic code search powered by TypeSafe Jev.
s.start("Checking the key against api.typesafe.ai");链接指向我们抓取当天的那个 commit,行号是准的。
下面是从这个项目源码里原样取出来的 question 组合。
beauty是/否beauty content?
cat选项category?
skincare — skinother — elseimport { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
beauty: { type: 'boolean', instructions: 'beauty content?' },
cat: { type: 'choice', instructions: 'category?',
criteria: { skincare: 'skin', other: 'else' } },
},
});ok是/否Is the state the word ping?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
ok: { type: 'boolean', instructions: 'Is the state the word ping?' },
},
});