Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    CastError
Message:      Couldn't cast
id: string
conversation_id: string
query: string
query_date: timestamp[s]
category: string
query_digest: string
gold_answer: string
gold_source_turn_ids: list<item: string>
  child 0, item: string
candidates: list<item: struct<id: string, kind: string, rank: int64, score: double, text: string, text_digest: s (... 39 chars omitted)
  child 0, item: struct<id: string, kind: string, rank: int64, score: double, text: string, text_digest: string, sour (... 27 chars omitted)
      child 0, id: string
      child 1, kind: string
      child 2, rank: int64
      child 3, score: double
      child 4, text: string
      child 5, text_digest: string
      child 6, source_ids: list<item: string>
          child 0, item: string
sources: struct<01KZ3GFYSVABV34YS06TZSJXVW: struct<session_id: string, ordinal: int64, content_digest: string (... 313433 chars omitted)
  child 0, 01KZ3GFYSVABV34YS06TZSJXVW: struct<session_id: string, ordinal: int64, content_digest: string, occurred_at: timestamp[s]>
      child 0, session_id: string
      child 1, ordinal: int64
      child 2, content_digest: string
      child 3, occurred_at: timestamp[s]
  child 1, 01KZ3GGACF6MC8T1MECS1N54HR: struct<session_id: string, ordinal: int64, content_digest: string, occurred_at: timestamp[s]>
      child 0, session_id: string
      child 1, ordinal: int64
      child 2, content_digest: string
      child 3, occurred_at: timestamp[s]
  child 2, 01KZ3GGACGG0YV64TDH3RT91XR: struct<session_id: string, ordinal: int64, cont
...
t64, content_digest: string, occurred_at: timestamp[s]>
      child 0, session_id: string
      child 1, ordinal: int64
      child 2, content_digest: string
      child 3, occurred_at: timestamp[s]
  child 2546, 01KZ3QMPSKB3SF7W4JJF1YEMCJ: struct<session_id: string, ordinal: int64, content_digest: string, occurred_at: timestamp[s]>
      child 0, session_id: string
      child 1, ordinal: int64
      child 2, content_digest: string
      child 3, occurred_at: timestamp[s]
  child 2547, 01KZ3QMPSM9DG692VT6XRP5CJ8: struct<session_id: string, ordinal: int64, content_digest: string, occurred_at: timestamp[s]>
      child 0, session_id: string
      child 1, ordinal: int64
      child 2, content_digest: string
      child 3, occurred_at: timestamp[s]
  child 2548, 01KZ3QM99FQDH2ZYZCX64CZH0Y: struct<session_id: string, ordinal: int64, content_digest: string, occurred_at: timestamp[s]>
      child 0, session_id: string
      child 1, ordinal: int64
      child 2, content_digest: string
      child 3, occurred_at: timestamp[s]
gold_coverage: struct<gold_source_evidence_ids: list<item: string>, candidate_evidence_union: list<item: string>, c (... 52 chars omitted)
  child 0, gold_source_evidence_ids: list<item: string>
      child 0, item: string
  child 1, candidate_evidence_union: list<item: string>
      child 0, item: string
  child 2, covered_source_count: int64
  child 3, candidate_covered: bool
build_version: string
actions: list<item: string>
  child 0, item: string
gap: bool
to
{'id': Value('string'), 'gap': Value('bool'), 'actions': List(Value('string'))}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1816, in _prepare_split_single
                  for key, table in generator:
                                    ^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
                  for item in generator(*args, **kwargs):
                              ~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              id: string
              conversation_id: string
              query: string
              query_date: timestamp[s]
              category: string
              query_digest: string
              gold_answer: string
              gold_source_turn_ids: list<item: string>
                child 0, item: string
              candidates: list<item: struct<id: string, kind: string, rank: int64, score: double, text: string, text_digest: s (... 39 chars omitted)
                child 0, item: struct<id: string, kind: string, rank: int64, score: double, text: string, text_digest: string, sour (... 27 chars omitted)
                    child 0, id: string
                    child 1, kind: string
                    child 2, rank: int64
                    child 3, score: double
                    child 4, text: string
                    child 5, text_digest: string
                    child 6, source_ids: list<item: string>
                        child 0, item: string
              sources: struct<01KZ3GFYSVABV34YS06TZSJXVW: struct<session_id: string, ordinal: int64, content_digest: string (... 313433 chars omitted)
                child 0, 01KZ3GFYSVABV34YS06TZSJXVW: struct<session_id: string, ordinal: int64, content_digest: string, occurred_at: timestamp[s]>
                    child 0, session_id: string
                    child 1, ordinal: int64
                    child 2, content_digest: string
                    child 3, occurred_at: timestamp[s]
                child 1, 01KZ3GGACF6MC8T1MECS1N54HR: struct<session_id: string, ordinal: int64, content_digest: string, occurred_at: timestamp[s]>
                    child 0, session_id: string
                    child 1, ordinal: int64
                    child 2, content_digest: string
                    child 3, occurred_at: timestamp[s]
                child 2, 01KZ3GGACGG0YV64TDH3RT91XR: struct<session_id: string, ordinal: int64, cont
              ...
              t64, content_digest: string, occurred_at: timestamp[s]>
                    child 0, session_id: string
                    child 1, ordinal: int64
                    child 2, content_digest: string
                    child 3, occurred_at: timestamp[s]
                child 2546, 01KZ3QMPSKB3SF7W4JJF1YEMCJ: struct<session_id: string, ordinal: int64, content_digest: string, occurred_at: timestamp[s]>
                    child 0, session_id: string
                    child 1, ordinal: int64
                    child 2, content_digest: string
                    child 3, occurred_at: timestamp[s]
                child 2547, 01KZ3QMPSM9DG692VT6XRP5CJ8: struct<session_id: string, ordinal: int64, content_digest: string, occurred_at: timestamp[s]>
                    child 0, session_id: string
                    child 1, ordinal: int64
                    child 2, content_digest: string
                    child 3, occurred_at: timestamp[s]
                child 2548, 01KZ3QM99FQDH2ZYZCX64CZH0Y: struct<session_id: string, ordinal: int64, content_digest: string, occurred_at: timestamp[s]>
                    child 0, session_id: string
                    child 1, ordinal: int64
                    child 2, content_digest: string
                    child 3, occurred_at: timestamp[s]
              gold_coverage: struct<gold_source_evidence_ids: list<item: string>, candidate_evidence_union: list<item: string>, c (... 52 chars omitted)
                child 0, gold_source_evidence_ids: list<item: string>
                    child 0, item: string
                child 1, candidate_evidence_union: list<item: string>
                    child 0, item: string
                child 2, covered_source_count: int64
                child 3, candidate_covered: bool
              build_version: string
              actions: list<item: string>
                child 0, item: string
              gap: bool
              to
              {'id': Value('string'), 'gap': Value('bool'), 'actions': List(Value('string'))}
              because column names don't match
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1683, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1869, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

id
string
gap
bool
actions
list
0-00000-0-00000-q0
false
[ "01KZ3GG52YHFZ0Z23GYNFRC7PJ" ]
0-00000-0-00000-q1
true
[]
0-00000-0-00000-q2
true
[]
0-00000-0-00000-q3
false
[ "01KZ3GGHD83QKR41Y8C0W67XVS" ]
0-00001-0-00001-q0
true
[]
0-00001-0-00001-q1
true
[]
0-00001-0-00001-q2
false
[ "01KZ3GHZXC8KFY4P74NARHXEWD" ]
0-00001-0-00001-q3
true
[]
0-00002-0-00002-q0
false
[ "01KZ3GJ5E6Z3088WR2F20AF9EG" ]
0-00002-0-00002-q1
false
[ "01KZ3GJ5E6Z3088WR2F20AF9EG" ]
0-00002-0-00002-q2
false
[ "01KZ3GJQR66ZQGWD8W0ZJJSV04", "01KZ3GJQR7GGJ3TBCQJFCXZRHR", "01KZ3GJQR4QSQ1RC0EB0J7TCHW" ]
0-00002-0-00002-q3
true
[]
0-00003-0-00003-q2
false
[ "01KZ3GKV3925R2Z4C70Z3JQN8Y", "01KZ3GKV38676BH94P5A7TYQCF", "01KZ3GKV3AC7RFT227MG8NPQRM" ]
0-00003-0-00003-q3
true
[]
0-00004-0-00004-q1
false
[ "01KZ3GMW5V8JQVK1ECFHAM2Q0J" ]
0-00004-0-00004-q2
true
[]
0-00004-0-00004-q3
true
[]
0-00005-0-00005-q0
false
[ "01KZ3GPD2ZAZY7BNPP1THJV0GT" ]
0-00005-0-00005-q3
false
[ "01KZ3GPD2ZAZY7BNPP1THJV0GT" ]
0-00006-0-00006-q0
true
[]
0-00006-0-00006-q1
false
[ "01KZ3GPPCA9G62B087GP4AZW6X" ]
0-00006-0-00006-q2
true
[]
0-00006-0-00006-q3
true
[]
0-00007-0-00007-q0
true
[]
0-00007-0-00007-q1
false
[ "01KZ3GR7NSSKKPQD2ZWF2AW076" ]
0-00007-0-00007-q2
false
[ "01KZ3GRWFC6CM8JG1YD6Q46D58", "01KZ3GRWFDAHDNWQK8M0DP6ZT1" ]
0-00007-0-00007-q3
false
[ "01KZ3GRWFC6CM8JG1YD6Q46D58", "01KZ3GRWFDAHDNWQK8M0DP6ZT1" ]
0-00008-0-00008-q0
true
[]
0-00008-0-00008-q1
true
[]
0-00008-0-00008-q2
true
[]
0-00008-0-00008-q3
true
[]
0-00009-0-00009-q0
false
[ "01KZ3GT7Z6Q2RHWEE2S7GK6V1W" ]
0-00009-0-00009-q1
true
[]
0-00009-0-00009-q2
true
[]
0-00009-0-00009-q3
false
[ "01KZ3GT7Z6Q2RHWEE2S7GK6V1W" ]
0-00010-0-00010-q1
true
[]
0-00010-0-00010-q2
false
[ "01KZ3GVHFRRXJK9JBRN2RPHZRW", "01KZ3GVBJ6QJ9TF920BVK6FEDE" ]
0-00011-0-00011-q2
true
[]
0-00012-0-00012-q0
false
[ "01KZ3GXPNQB363W0VKAWR9JR9K" ]
0-00012-0-00012-q1
false
[ "01KZ3GXPNQB363W0VKAWR9JR9K" ]
0-00012-0-00012-q2
true
[]
0-00012-0-00012-q3
false
[ "01KZ3GXPNQB363W0VKAWR9JR9K" ]
0-00013-0-00013-q0
false
[ "01KZ3GYDMS4FGM87VFD16NN2CB" ]
0-00013-0-00013-q1
false
[ "01KZ3GYDMS4FGM87VFD16NN2CB" ]
0-00013-0-00013-q2
true
[]
0-00014-0-00014-q0
false
[ "01KZ3H01YRFDM5YJKJ38WBBTY5" ]
0-00014-0-00014-q1
true
[]
0-00014-0-00014-q2
true
[]
0-00014-0-00014-q3
true
[]
0-00015-0-00015-q0
true
[]
0-00015-0-00015-q1
true
[]
0-00015-0-00015-q2
true
[]
0-00015-0-00015-q3
false
[ "01KZ3H1DYNCKP5BC745TBJHYE7" ]
0-00016-0-00016-q0
true
[]
0-00016-0-00016-q1
true
[]
0-00016-0-00016-q2
true
[]
0-00017-0-00017-q0
true
[]
0-00017-0-00017-q1
true
[]
0-00017-0-00017-q2
true
[]
0-00018-0-00018-q0
false
[ "01KZ3H40GM8CEDK8RTZG1VNEM9" ]
0-00018-0-00018-q1
false
[ "01KZ3H40GM8CEDK8RTZG1VNEM9" ]
0-00018-0-00018-q2
true
[]
0-00018-0-00018-q3
false
[ "01KZ3H51N5ZHSPF3Z7J8XD2EQW" ]
0-00019-0-00019-q0
false
[ "01KZ3H5GV6WX79TBGAAHG0B9F2" ]
0-00019-0-00019-q1
false
[ "01KZ3H5GV6WX79TBGAAHG0B9F2" ]
0-00019-0-00019-q2
true
[]
0-00019-0-00019-q3
true
[]
0-00020-0-00020-q0
false
[ "01KZ3H6SKFF9B0YBNF2M46K7Q3" ]
0-00020-0-00020-q1
false
[ "01KZ3H6SKFF9B0YBNF2M46K7Q3" ]
0-00020-0-00020-q2
false
[ "01KZ3H7GMA5DS674Z7KERSY620", "01KZ3H7GMCSKMT4M7QPGT6N05N" ]
0-00020-0-00020-q3
true
[]
0-00021-0-00021-q0
false
[ "01KZ3H8053HWGACVQQ46WWPR7Y" ]
0-00021-0-00021-q1
false
[ "01KZ3H8050WCKKB12G8M0KB7HW" ]
0-00021-0-00021-q2
true
[]
0-00022-0-00022-q0
true
[]
0-00022-0-00022-q1
true
[]
0-00022-0-00022-q2
true
[]
0-00022-0-00022-q3
true
[]
0-00023-0-00023-q0
true
[]
0-00023-0-00023-q1
true
[]
0-00023-0-00023-q2
true
[]
0-00023-0-00023-q3
true
[]
0-00024-0-00024-q0
false
[ "01KZ3HB105X8EHNF2R19VDK1Y6" ]
0-00024-0-00024-q1
false
[ "01KZ3HB105X8EHNF2R19VDK1Y6" ]
0-00024-0-00024-q2
false
[ "01KZ3HB105X8EHNF2R19VDK1Y6", "01KZ3HC4JJV48GM96NDH6SR27G" ]
0-00024-0-00024-q3
false
[ "01KZ3HB105X8EHNF2R19VDK1Y6" ]
0-00025-0-00025-q2
true
[]
0-00025-0-00025-q3
false
[ "01KZ3HCFNPD4423AX39JSZE9VJ", "01KZ3HCFNRMGCEVPV7R0T706EX" ]
0-00026-0-00026-q0
true
[]
0-00026-0-00026-q1
false
[ "01KZ3HED31WRFMDYW1RQH54RMJ" ]
0-00026-0-00026-q2
false
[ "01KZ3HED31WRFMDYW1RQH54RMJ" ]
0-00026-0-00026-q3
true
[]
0-00027-0-00027-q0
true
[]
0-00027-0-00027-q1
false
[ "01KZ3HF60WDK0XCXAX1AEQETCG" ]
0-00027-0-00027-q2
true
[]
0-00027-0-00027-q3
false
[ "01KZ3HF60WDK0XCXAX1AEQETCG" ]
0-00028-0-00028-q0
false
[ "01KZ3HFMD8HCYW8NZ3XM86VZ10" ]
0-00028-0-00028-q1
false
[ "01KZ3HFMD8HCYW8NZ3XM86VZ10" ]
0-00028-0-00028-q2
false
[ "01KZ3HGAHEEGXB0KV92NG2GA0G", "01KZ3HFMD8HCYW8NZ3XM86VZ10" ]
0-00029-0-00029-q0
false
[ "01KZ3HHNQT7ZDEG276GXP5X445" ]
End of preview.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

engram-023-planner — 本地训练式 Evidence Planner(023)训练资产

用途:为后续 Agent 复现 023 特性(本地训练式 Evidence Planner)的数据构建 → 标签 → 训练 → 评测整条链,提供可继续微调的全部材料。

仓库结构:

training/planner/
├── data_build.py       # 本地 Qwen 生成虚构多会话记忆对话(离线自举,零污染)
├── residual_compare.py # T003 residual cohort 对拍:G (oracle) vs D (B1 deterministic)
├── train_lora.py       # TRL SFT + LoRA
├── serve.sh            # vLLM 起 OpenAI 兼容 sidecar(lora 模式)
├── configs/train.yaml
└── README.md           # pipeline 细节 + 一致性约束
specs/023-local-trained-evidence-compiler/
├── spec.md / plan.md / data-model.md / research.md
├── server-spec.md / tasks.md / checklists/requirements.md

关键一致性(改训练必须同步改适配器,反之亦然)

  1. prompt 模板:train_lora.py 的 SYSTEM_PROMPT + render_user() 必须与 cmd/locomo-bench/local_planner.go 的 plannerSystemPrompt + renderPlannerPrompt 逐字一致。
  2. wire format:训练 target JSON 用 snake_case (need/actions/entities/time_constraints/operands/list_cardinality/update_state/gap), 与 Go parsePlannerProposal 一致(data-model.md §5)。
  3. 候选冻结:训练样本 candidates 必须是 engram 实际检索输出(FR-017)。

模型与运行环境指纹(2026-08-03 实测)

项 值
底模(训练目标) Qwen2.5-7B-Instruct(Apache-2.0,7.6B,BF16 ~15 GiB,单卡 24 GiB LoRA)
Eval answerer(远端 vllm) Qwen/Qwen3.6-35B-A3B-FP8(AutoDL 48GB,vllm 0.26,--convert embed --max-num-seqs 128)
Embedding BAAI/bge-large-en-v1.5
Judge deepseek-v4-flash(anthropic 兼容端点 api.deepseek.com/anthropic)
LoCoMo 数据 官方 snap-research/locomo locomo.json(1,540 answerable cat1-4 + 446 adversarial)
Go 引擎 engram 纯 Go(CGO=0),store/migrations.go 是 schema 唯一权威
Eval 协议 022.v1 B1 legacy control,cap=5000,repeats=3,protocol hash sha256:65f6769c…

当前状态(2026-08-03)

  • T003 进行中:B1 deterministic(D)重跑 + fixed-gold oracle(G)对拍,residual = G∖D。
    • oracle 已修复:跳过 LoCoMo 数据中 4 题空 gold evidence(conv-0-q-30/46, conv-9-q-39/42)。
    • verdict 判定:residual 空 → NOT_NEEDED;非空 → READY(启动 T008–T015 数据构建与训练)。
  • LoRA checkpoint:尚未训练(待 verdict 为 READY 后),训练产物将上传至本 repo 的 training/planner/models/。

后续 Agent 复现

# 1. residual 对拍(需远端 eval 端点 + LoCoMo 完整数据)
python3 training/planner/residual_compare.py \
  --b1-classification <run>/classification.jsonl \
  --oracle-artifact <run>/fixed_gold_oracle.jsonl \
  --out <run>/residual_cohort.json

# 2. 合成训练数据(本地 Qwen sidecar)
python3 training/planner/data_build.py --base-url http://localhost:8000/v1 \
  --convos 200 --sessions 4 --out data/raw/convos.jsonl

# 3. 训练(≤24 GPU-hours)
python3 training/planner/train_lora.py --data data/processed/train.jsonl \
  --base-model Qwen2.5-7B-Instruct --out models/planner-lora

# 4. 配对评测
go run ./cmd/locomo-bench --compiler-arm planner \
  --planner-base-url http://localhost:8000/v1 --planner-model Qwen2.5-7B-Instruct ...

引擎与适配器分离(宪法):所有训练侧工具在 cmd/(adapter)或 training/,engine 零改动。

Downloads last month
92