Dataset Viewer
Auto-converted to Parquet Duplicate
configuration
stringclasses
1 value
configuration_id
stringclasses
1 value
harness
stringclasses
1 value
model
stringclasses
1 value
dataset
stringclasses
3 values
split
stringclasses
1 value
in_test_subset
bool
2 classes
query_id
stringlengths
1
5
query
stringlengths
40
559
answer_ids
listlengths
1
20
status
stringclasses
1 value
attempts
int64
1
3
final_answer
stringlengths
15
174
node_ids
listlengths
0
21
hit_at_1
float64
0
1
recall_at_20
float64
0
1
mrr
float64
0
1
input_tokens
int64
26.3k
825k
output_tokens
int64
532
12.5k
trajectory
listlengths
15
72
Full DKGI (Pi), GPT-6-Luna
full_dkgi_pi_luna
pi
gpt-6-luna
amazon
test
false
0
Looking for a chess strategy guide from The House of Staunton that offers tactics against Old Indian and Modern defenses. Any recommendations?
[ 16 ]
scored
1
{"node_ids":[16,22,136,191,20,188,660677,200719,413618,625431,722020,854399,499444,499449,499463,852383,938817,64093,79188,183]}
[ 16, 22, 136, 191, 20, 188, 660677, 200719, 413618, 625431, 722020, 854399, 499444, 499449, 499463, 852383, 938817, 64093, 79188, 183 ]
1
1
1
72,177
1,232
[ { "type": "user", "text": "Answer the retrieval query using only the supplied local STaRK knowledge base. Use the textual attributes and graph relations as evidence. Return candidate node IDs ranked by relevance, most relevant first. Use the benchmark node_id field, not external IDs within attributes. Only ...
Full DKGI (Pi), GPT-6-Luna
full_dkgi_pi_luna
pi
gpt-6-luna
amazon
test
false
1522
"Is there a duty belt with a suede lining and an interior band of hook and loop that pairs well with(...TRUNCATED)
[ 100096, 3138, 100099, 99433, 99563, 3147, 99437, 3150, 33326, 3152, 99445, 93047, 100093 ]
scored
1
"{\"node_ids\":[99433,99445,99437,33311,99563,93047,3138,3147,3150,3152,100093,100096,100099,99752,3(...TRUNCATED)
[99433,99445,99437,33311,99563,93047,3138,3147,3150,3152,100093,100096,100099,99752,3136,33326,64763(...TRUNCATED)
1
1
1
338,773
3,259
[{"type":"user","text":"Answer the retrieval query using only the supplied local STaRK knowledge bas(...TRUNCATED)
Full DKGI (Pi), GPT-6-Luna
full_dkgi_pi_luna
pi
gpt-6-luna
amazon
test
true
1524
"Can you suggest a Minn Kota trolling motor with a 45-inch shaft that would pair well with my existi(...TRUNCATED)
[ 258229, 99647 ]
scored
1
"{\"node_ids\":[319820,53573,255585,379798,516145,158821,183645,258229,374767,631825,631823,143792,7(...TRUNCATED)
[319820,53573,255585,379798,516145,158821,183645,258229,374767,631825,631823,143792,73272,75621,4959(...TRUNCATED)
0
0.5
0.125
50,374
1,437
[{"type":"user","text":"Answer the retrieval query using only the supplied local STaRK knowledge bas(...TRUNCATED)
Full DKGI (Pi), GPT-6-Luna
full_dkgi_pi_luna
pi
gpt-6-luna
amazon
test
false
1530
"Looking for a gun case similar to Plano 150100 Protector Single Rifle/Shotgun Case that can comfort(...TRUNCATED)
[278340,419782,100647,301898,151982,57488,271056,739293,100660,124788,107476,39834,386235,590173,398(...TRUNCATED)
scored
1
"{\"node_ids\":[441895,394812,394846,183715,183724,394793,506559,191172,191174,442841,442966,334759,(...TRUNCATED)
[441895,394812,394846,183715,183724,394793,506559,191172,191174,442841,442966,334759,182547,441538,3(...TRUNCATED)
0
0
0
220,600
2,250
[{"type":"user","text":"Answer the retrieval query using only the supplied local STaRK knowledge bas(...TRUNCATED)
Full DKGI (Pi), GPT-6-Luna
full_dkgi_pi_luna
pi
gpt-6-luna
amazon
test
false
1536
Looking for an executive putting cup with a target flag for my office, can you help me find one?
[ 101576, 592254 ]
scored
1
"{\"node_ids\":[101576,272183,200115,443770,95258,204156,127544,198889,199483,193455,538373,931567,2(...TRUNCATED)
[101576,272183,200115,443770,95258,204156,127544,198889,199483,193455,538373,931567,204165,803915,19(...TRUNCATED)
1
0.5
1
82,129
1,641
[{"type":"user","text":"Answer the retrieval query using only the supplied local STaRK knowledge bas(...TRUNCATED)
Full DKGI (Pi), GPT-6-Luna
full_dkgi_pi_luna
pi
gpt-6-luna
amazon
test
false
1275
"Is the 1996 Mickey Mantle Yankees 23-karat gold baseball card, a sought-after collector's item, ava(...TRUNCATED)
[ 256981, 72486 ]
scored
1
"{\"node_ids\":[72486,256981,418845,317849,369956,433115,650003,654882,547594,548115,335963,328947,5(...TRUNCATED)
[72486,256981,418845,317849,369956,433115,650003,654882,547594,548115,335963,328947,56844,60942,2860(...TRUNCATED)
1
1
1
39,765
913
[{"type":"user","text":"Answer the retrieval query using only the supplied local STaRK knowledge bas(...TRUNCATED)
Full DKGI (Pi), GPT-6-Luna
full_dkgi_pi_luna
pi
gpt-6-luna
amazon
test
false
1277
"Can you recommend a practical ice skating boot bag that has separate compartments for a cell phone (...TRUNCATED)
[ 815048, 456653, 89105, 72823, 72824, 696253 ]
scored
1
"{\"node_ids\":[72824,460363,72823,238287,56631,33104,56627,386441,167083,763751,520499,661037,45665(...TRUNCATED)
[72824,460363,72823,238287,56631,33104,56627,386441,167083,763751,520499,661037,456653,825385,815048(...TRUNCATED)
1
0.666667
1
108,428
1,819
[{"type":"user","text":"Answer the retrieval query using only the supplied local STaRK knowledge bas(...TRUNCATED)
Full DKGI (Pi), GPT-6-Luna
full_dkgi_pi_luna
pi
gpt-6-luna
amazon
test
false
1279
Could you recommend a bamboo longboard skateboard from Blank Skateboards?
[ 72897 ]
scored
1
"{\"node_ids\":[72897,396217,72882,77237,412029,287554,282277,355780,396203,308997,286435,286436,286(...TRUNCATED)
[72897,396217,72882,77237,412029,287554,282277,355780,396203,308997,286435,286436,286439,472963,4120(...TRUNCATED)
1
1
1
114,379
2,180
[{"type":"user","text":"Answer the retrieval query using only the supplied local STaRK knowledge bas(...TRUNCATED)
Full DKGI (Pi), GPT-6-Luna
full_dkgi_pi_luna
pi
gpt-6-luna
amazon
test
false
1284
"Is there a street hockey goal available with precision-fit couplings that's also easily foldable an(...TRUNCATED)
[ 73419 ]
scored
1
"{\"node_ids\":[196253,302912,201058,128949,615975,364613,271679,53518,209504,23917,124575,125916,12(...TRUNCATED)
[196253,302912,201058,128949,615975,364613,271679,53518,209504,23917,124575,125916,125917,126392,196(...TRUNCATED)
0
0
0
123,117
1,325
[{"type":"user","text":"Answer the retrieval query using only the supplied local STaRK knowledge bas(...TRUNCATED)
Full DKGI (Pi), GPT-6-Luna
full_dkgi_pi_luna
pi
gpt-6-luna
amazon
test
false
1661
"Looking for an affordable short sleeve leotard for kids with a ballet leg line cut to support their(...TRUNCATED)
[ 113840, 113851, 90733, 788711 ]
scored
1
"{\"node_ids\":[935186,417345,935190,310661,327147,29566,90733,90736,321367,904560,185728,185733,124(...TRUNCATED)
[935186,417345,935190,310661,327147,29566,90733,90736,321367,904560,185728,185733,124266,951436,9518(...TRUNCATED)
0
0.25
0.142857
144,303
2,319
[{"type":"user","text":"Answer the retrieval query using only the supplied local STaRK knowledge bas(...TRUNCATED)
End of preview. Expand in Data Studio

DKGI Trajectories on STaRK

Agent trajectories, answers and scores for every test configuration of the paper Knowledge Graphs as Files: An Agent Harness Where Tool Creation and Tool Use Co-Evolve (Yuyang Bai, Yu Wang, Yu Zhang).

In DKGI (direct knowledge graph interaction), an LLM agent receives the complete node and edge files of a STaRK knowledge graph and a shell. It writes and revises its own Python programs over these files to follow relations, combine node sets and select textual evidence. The agent returns a ranked list of node IDs.

Configurations

Each configuration is a subset (config_name), with one JSONL file per STaRK dataset (amazon, mag, prime) and one line per question.

Subset Configuration Questions Paper
full_dkgi_pi_luna Full DKGI (Pi), GPT-6-Luna 7,108 (test) Table 2; Table 3 (test subset); analysis
full_dkgi_codex_luna Full DKGI (Codex), GPT-6-Luna 7,108 (test) Table 2; Table 3 (test subset)
full_dkgi_pi_astra Full DKGI (Pi), GPT-6-Astra 7,108 (test) Table 2; analysis
full_dkgi_codex_astra Full DKGI (Codex), GPT-6-Astra 710 (test subset) harness comparison (appendix)
shell_only Shell only 710 (test subset) Table 3
graph_tools_code Graph tools + code 710 (test subset) Table 3
graph_tools Graph tools 710 (test subset) Table 3
one_program One program 710 (test subset) Table 3
retrieval_only Retrieval only 710 (test subset) Table 3
no_edges No edges 710 (test subset) Table 3
id_probe Closed-book ID probe 7,108 (test) appendix (probes)
name_probe Closed-book name probe (MAG, Prime) 5,466 (test) appendix (probes)

test is STaRK's synthetic test set (7,108 questions). The test subset is STaRK's official test-0.1 split (710 questions). Its questions carry in_test_subset: true in every configuration. The rows of the paper's Table 3 (ablation) use the test subset, so the Full DKGI rows there are the test-subset questions of full_dkgi_pi_luna and full_dkgi_codex_luna.

Averaging hit_at_1, recall_at_20 and mrr over the questions of a dataset (and multiplying by 100) gives the numbers in the paper's tables.

Fields

Field Meaning
configuration, configuration_id paper name and subset name of the configuration
harness, model pi (Pi coding agent, via DCI-Agent-Lite) or codex (Codex CLI); gpt-6-luna or gpt-6-astra
dataset, split, query_id, in_test_subset the STaRK question
query, answer_ids question text and gold node IDs (from STaRK)
status, attempts scored or failed; the number of attempts (an attempt that failed was retried)
final_answer the agent's final message
node_ids the ranked node IDs parsed from it (names for the name probe)
hit_at_1, recall_at_20, mrr scores of the question as used in the paper; a failed question scores 0
input_tokens, output_tokens recorded token usage of the scored attempt
trajectory list of steps of the scored attempt (below)

Each step has type, text, name, call_id and is_error:

type text
user the prompt (with Codex, also Codex's environment context message)
reasoning_summary the model's reasoning summary, where the API returned one
assistant assistant text, including the final answer
tool_call the call: JSON arguments for Pi tools (read, bash, and in the graph-tool variants search, neighbors, get_node, get_schema); the JavaScript program of Codex's exec tool
tool_result the output returned to the model (name and call_id link it to its call)

How the trajectories were extracted

  • Pi configurations: Pi's message list of the scored attempt. Tool outputs appear as they were returned to the model, after the harness's head-and-tail truncation and the truncation of large outputs.
  • Codex configurations: the input items of all model requests of the scored attempt, in order of first appearance, and the final agent message. Codex's own developer messages and tool definitions are left out because they are the same for every question. They are part of Codex CLI 0.156.1.
  • Encrypted reasoning is not included. The system prompt of Pi and the prompts of every configuration are given in the paper's appendix and in the prompts/ directory of the code release.
  • Paths in the trajectories are the absolute paths of our machine (the graph files were under .../experiments/stark/corpus/<dataset>).

License

CC BY 4.0, following the license of the STaRK data. Please cite STaRK and our paper.

@misc{bai2026dkgi,
  title  = {Knowledge Graphs as Files: An Agent Harness Where Tool Creation and Tool Use Co-Evolve},
  author = {Bai, Yuyang and Wang, Yu and Zhang, Yu},
  year   = {2026}
}

@inproceedings{wu2024stark,
  title     = {{STaRK}: Benchmarking {LLM} Retrieval on Textual and Relational Knowledge Bases},
  author    = {Wu, Shirley and Zhao, Shiyu and Yasunaga, Michihiro and Huang, Kexin and Cao, Kaidi and
               Huang, Qian and Ioannidis, Vassilis N. and Subbian, Karthik and Zou, James and Leskovec, Jure},
  booktitle = {Advances in Neural Information Processing Systems},
  volume    = {37},
  pages     = {127129--127153},
  year      = {2024}
}
Downloads last month
116

Collection including yuyangbai/DKGI-Trajectories