Proposal: map vakra's Example/ExampleResult types to a portable eval schema (EvalPort)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
まず evaluator/utils.py、evaluator/evaluator.py、evaluator/scorer.py を読み、次にこれらの型を sample_data/capability_1_bi_apis および capability_4_multiturn のデータと比較します。提案されている Example/ExampleResult と EvalReport のマッピングを maintainers と確認してから、EvalPort の validate_suite() と validate_result_set() を使って adapter の出力を検証します。スコープと配置について合意され、代表的なデータセットが検証されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Context
I'm the maintainer of EvalPort, an open standard (JSON Schema + Python SDK, evalport-sdk) for portable LLM eval/benchmark data — a Suite/TestCase schema for eval inputs and a ResultSet/Result schema for run outputs, plus openeval.validate.validate_suite() / validate_result_set() to check any dataset against the schema.
I went through the vakra source (not just the README) before writing this — specifically evaluator/utils.py, evaluator/evaluator.py, evaluator/scorer.py, and the sample_data/ dialogues — because I wanted to open this only if there was a real, concrete mapping, not a generic "you should support format X" ask.
Why vakra looks like a good fit
evaluator/utils.py already has frozen dataclasses that map almost 1:1 onto a portable eval schema:
Example(id,capability,domain,turns,trajectory,final_answer) — this is a test case.ToolCall(tool_name,arguments,output) — a grading input for tool-trajectory checks.ExampleResult(example_id,answer_score,answer_label,trajectory_score,trajectory_details,meta) — this is a per-case result.EvalSliceResult/EvalReport(benchmark_name,slices,aggregated, with ato_dict()) — this is a result set.
Separately, the actual runtime path in evaluate_domain() (evaluator/evaluator.py) and the sample_data/capability_1_bi_apis/input.json + output.json pair works over the raw dialogue JSON (uuid, domain, dialogue.turns[].query, output[].answer, output[].sequence[].tool_call) rather than through those dataclasses directly — so today there are two parallel representations of essentially the same thing. A portable schema could give both a single typed target: the dataclasses already describe the shape, and dialogues could validate against it, which also gets you a common form to compare across capability_bi_apis / capability_multihop_reasoning / capability_multiturn runs without writing bespoke sameness checks each time.
To be upfront: I have not built or tested an adapter for vakra yet. This is a proposal to build one together (I'd expect to do the initial pass and want your input on where it's wrong), not a claim that one exists.
Concrete sketch
Rough mapping from vakra's own types to EvalPort's Suite/TestCase and ResultSet/Result:
# vakra Example (evaluator/utils.py) -> EvalPort TestCase
from evaluator.utils import Example, ExampleResult, EvalReport
def example_to_testcase(ex: Example) -> dict:
return {
"id": ex.id,
"input": {
"query": ex.turns[-1].content if ex.turns else "",
"capability": ex.capability,
"domain": ex.domain,
},
"graders": [
{"type": "exact_match", "target": ex.final_answer},
{
"type": "tool_trajectory",
"expected_calls": [tc.tool_name for tc in ex.trajectory],
},
],
}
def build_suite(examples: list[Example], suite_id: str) -> dict:
return {
"version": "0.1.0",
"id": suite_id, # e.g. "vakra-capability_bi_apis-beer_factory"
"test_cases": [example_to_testcase(e) for e in examples],
}
# vakra ExampleResult / EvalReport -> EvalPort ResultSet
def example_result_to_result(r: ExampleResult) -> dict:
return {
"test_case_id": r.example_id,
"passed": r.answer_score == 1.0,
"grader_results": [
{
"type": "answer_score",
"score": r.answer_score,
"details": r.trajectory_details,
}
],
}
def build_result_set(report: EvalReport, run_id: str, started_at: str) -> dict:
results = [r for s in report.slices for r in s.per_example]
return {
"version": "0.1.0",
"suite_id": report.benchmark_name,
"run_id": run_id,
"started_at": started_at,
"results": [example_result_to_result(r) for r in results],
}
Both build_suite(...) and build_result_set(...) outputs would then run through openeval.validate.validate_suite() / validate_result_set() to confirm they're portable — i.e. loadable by any other tool that also speaks EvalPort, without vakra-specific glue.
What I'm asking
Not a PR yet — just: does this mapping look right to you, and is there appetite for a small vakra -> evalport adapter (probably living in examples/ or as a script, not touching the scoring pipeline)? If there's interest I'll put together a working version against sample_data/capability_1_bi_apis and capability_4_multiturn and open a PR for review, rather than guessing at the parts of the multiturn/policy-judge flow I haven't fully traced yet.
- 主要言語
- Python
- スター
- 79
- フォーク
- 23
- 平均マージ
- 2日 7時間
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
IBM/vakra のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
accepted
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
future-agi/future-agi#5908 ·
メンテナーはふだん 1 日以内に返信
-
Placeholder export disables HTML image input for picture description対応中かも @cloudiful が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
docling-project/docling-serve#817 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
Techiebutler/freeframe#687 ·
メンテナーはふだん 1 日以内に返信
-
Parse truncated verbose GC logs up to the first XML error対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug verbose GC
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
IBM/javacore-analyser#677 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 2 日以内に返信