Nexus is a research codebase for comparing fixed-call, deterministic-first, and iterative language-model workflows on evidence-grounded question answering. It includes agents and experiment runners for financial QA, fact verification, and multi-hop QA.
The active study asks when iterative agentic reasoning is worth its accuracy, token, latency, and dollar cost in controlled-evidence financial QA. It compares Direct, CoT/PoT, Static Nexus, bounded ReAct, and a pre-generation selector on FinanceBench, FinDER, FinQA, TAT-QA, and ConvFinQA.
The latest manuscript, Capability Is Not Complementarity: A Routing Feasibility Study in Financial Question Answering, centers on the completed three-tier capability study and its different-seed stability check. The original 250-example selector study and subsequent replications remain supporting evidence. All reported results are development-only; the protected final manifest remains unexecuted and unscored.
main is the canonical branch for the integrated code and camera-ready source.
Paper status and scientific boundaries live in
paper/realm2026/README.md.
Branch recovery instructions live in PROJECT_STATE.md.
src/agents/finance/ Finance environments, methods, protocols, and runner
src/agents/nexus/ Shared Nexus agent implementation
src/shared/ Provider wrappers and telemetry
tests/finance/ Finance validity, scoring, protocol, and runner tests
results/finance/ Versioned development and smoke-run artifacts
paper/realm2026/ Active ACL-formatted REALM short-paper draft
paper/icaif2026/ Preserved predecessor draft and decision artifacts
progress_notes/ Research decisions and experiment logs
scripts/ Analysis, download, debug, and cleanup utilities
Use a local virtual environment; environments and secrets are intentionally not tracked.
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txtCopy required provider credentials into an untracked .env file. See
SETUP.md for dataset-specific setup.
Run the finance research-validity suite before changing a protocol or paper claim:
python -m pytest tests/finance -qThe final partition is deliberately sealed. Do not bypass the final-freeze
checks or modify research logic based on final-manifest outcomes. See
src/agents/finance/README.md for experiment
interfaces and PROJECT_STATE.md for the current handoff.
This repository began from the public ReAct prompting implementation associated
with Yao et al. (ICLR 2023) and has since been extended with Nexus workflows,
additional datasets, telemetry, native scoring, and reproducible finance
protocols. See LICENSE for licensing information.