Agentic Intelligent Data Engine for Scientific Large Language Models.
AIDE curates scientific datasets for large language model development. Given a natural-language data requirement, it searches for candidate Hugging Face datasets, selects useful datasets with an LLM quality gate, and organizes the selected data into instruction-response examples or retrieval corpora.
git clone https://github.com/bjzgcai/AIDE
cd AIDE
uv syncPython 3.11 or newer is required.
Run the local demo before using external services:
uv run aide-demo --output-dir outputs/demo
uv run python -m unittest discover -s testsThe demo writes a small synthetic curation run under outputs/demo/ and does
not require API keys or network access.
AIDE uses an OpenAI-compatible chat endpoint.
cp .env.example .envEdit .env:
LLM_API_KEY=your-openai-compatible-api-key
LLM_API_BASE=https://api.openai.com/v1
LLM_EXTRA_BODY_JSON=
HF_TOKEN=HF_TOKEN is optional for public Hugging Face datasets, but can help with rate
limits.
RAG corpus curation:
uv run aide-curate --config configs/smoke_biomedical_rag.yamlInstruction-data curation:
uv run aide-curate --config configs/smoke_chemistry_instruction.yamlThe smoke configs keep dataset search and processing small. Use
configs/biomedical_rag.yaml or configs/chemistry_instruction.yaml as
starting points for larger runs.
Runs write artifacts under outputs/, including selected datasets, generated
processors, organized data, logs, and optional stage metrics. Generated files are
kept so that each curation decision can be inspected.
Instruction runs produce per-task train.json files. To export instruction and
output JSONL pairs:
uv run aide-dedup \
--input-dir outputs/<run-dir> \
--train-output outputs/<run-dir>/instruction_train.jsonl \
--val-output outputs/<run-dir>/instruction_val.jsonl \
--summary-path outputs/<run-dir>/dedup_summary.txt \
--seed 0 \
--forceCommon fields:
| Field | Purpose |
|---|---|
prompt |
Natural-language data requirement. |
organization_format |
instruction or rag. |
selection_model |
Model used for dataset selection. |
organization_model |
Model used for data organization. |
max_results_per_term, max_datasets |
Bounds for dataset search. |
instruction_max_items_per_dataset |
Item cap for instruction runs. |
rag_max_items_per_dataset |
Item cap for RAG runs. |
See docs/configuration.md for the full configuration reference and docs/end_to_end.md for live smoke tests.
uv sync --extra dev
uv run ruff format --check .
uv run ruff check src tests
uv run pytest -qIf you use AIDE in research, please cite the accompanying paper and this software release. A machine-readable citation file is available at CITATION.cff.
@software{aide_curator_2026,
title = {Agentic Intelligent Data Engine for Scientific Large Language Models},
author = {Xie, Shufang and Liu, Zequn and Deng, Pan and Luo, Renqian and Xia, Yingce and Qin, Tao and Yan, Rui},
year = {2026},
version = {0.1.0},
license = {MIT}
}