agentic-rag-router / config.json
MHkhan50's picture
Question-only routers (correctness and oracle objectives) with config and model card
04660ff verified
Raw History Blame Contribute Delete
3.82 kB
{
"repo_commit": "ddbd0ff",
"d_model": 768,
"num_agents": 5,
"agent_order": [
"A_direct_small",
"B_direct_large",
"C_rag_small",
"D_rag_large",
"E_iterative_large"
],
"oracle_manifest": {
"created_utc": "2026-11-15T06:39:20Z",
"repo_commit": "f4a846a",
"run_mode": "full",
"config": {
"seed": 42,
"n_per_dataset": {
"nq_open": 500,
"squad": 500,
"hotpotqa": 500,
"musique": 500
},
"agents": [
{
"name": "A_direct_small",
"model_id": "Qwen/Qwen2.5-1.5B-Instruct",
"strategy": "direct",
"top_k": 0,
"max_steps": 1,
"max_passages": 0,
"batch_size": 64
},
{
"name": "B_direct_large",
"model_id": "Qwen/Qwen2.5-7B-Instruct",
"strategy": "direct",
"top_k": 0,
"max_steps": 1,
"max_passages": 0,
"batch_size": 32
},
{
"name": "C_rag_small",
"model_id": "Qwen/Qwen2.5-1.5B-Instruct",
"strategy": "single_rag",
"top_k": 5,
"max_steps": 1,
"max_passages": 5,
"batch_size": 32
},
{
"name": "D_rag_large",
"model_id": "Qwen/Qwen2.5-7B-Instruct",
"strategy": "single_rag",
"top_k": 5,
"max_steps": 1,
"max_passages": 5,
"batch_size": 16
},
{
"name": "E_iterative_large",
"model_id": "Qwen/Qwen2.5-7B-Instruct",
"strategy": "iterative_rag",
"top_k": 3,
"max_steps": 3,
"max_passages": 9,
"batch_size": 16
}
],
"embedding_model": "intfloat/multilingual-e5-base",
"passage_max_words": 120,
"answer_max_new_tokens": 32,
"step_max_new_tokens": 48,
"correct_f1_threshold": 0.6,
"split_fractions": {
"train": 0.7,
"val": 0.15,
"test": 0.15
}
},
"agent_cost_order": [
"A_direct_small",
"B_direct_large",
"C_rag_small",
"D_rag_large",
"E_iterative_large"
],
"n_questions": 2000,
"n_passages": 12224,
"versions": {
"python": "3.13.16",
"torch": "2.11.0+cu130",
"transformers": "5.20.2",
"datasets": "4.8.5"
},
"gpus": [
"Tesla T4",
"Tesla T4"
]
},
"splits": {
"train": 1400,
"val": 300,
"test": 300
},
"routers": {
"router_correctness": {
"variant": "router: correctness",
"seed": 4,
"best_val_loss": 0.5177801847457886,
"train_config": {
"objective": "correctness",
"hidden": 384,
"dropout": 0.1,
"use_gate": true,
"lr": 0.001,
"weight_decay": 0.01,
"batch_size": 64,
"max_epochs": 300,
"patience": 25,
"label_smoothing": 0.0
},
"tau_star": 0.8,
"test_at_tau_star": {
"accuracy": 0.4533333333333333,
"gflops": 17157.58485147648,
"cost_vs_strongest": 0.9728565084384521,
"routing_accuracy": 0.47
}
},
"router_oracle": {
"variant": "router: oracle",
"seed": 0,
"best_val_loss": 1.3223388195037842,
"train_config": {
"objective": "oracle",
"hidden": 384,
"dropout": 0.1,
"use_gate": true,
"lr": 0.001,
"weight_decay": 0.01,
"batch_size": 64,
"max_epochs": 300,
"patience": 25,
"label_smoothing": 0.0
},
"tau_star": 0.0,
"test_at_tau_star": {
"accuracy": 0.43666666666666665,
"gflops": 12623.67808053248,
"cost_vs_strongest": 0.7157783270423994,
"routing_accuracy": 0.5
}
}
}
}