adaptive-human-in-the-loop-llm-agent

Resource-aware LLM agent that learns when to answer, retrieve, use a tool, or ask a human with PyTorch DQN

A new way for AI to search for data
View on GitHub
2GitHub stars

Python

What XERJ indexed

Snapshot

Whole repository

The whole repository at commit c8154ac99b (2026-09-22).

Selected work

Hadis Arefanjazi
@HadisArefanJazi

“Expand benchmark to 500 train and 200 test questions and refresh results”. 11 files, 2,014 lines in results, adaptive_hitl_agent, tests.

Licence

The repository

MIT

Checked by a person at the pinned commit.

The XERJ corpus

MIT, with credit

The author agreed by email on 2026-10-22. Same terms as the repository. Answers name the repo, the commit and the file:line.

in licence reviewnot in the hub yetsuggested use: adapt with attribution

agentic-aidqnhuman-in-the-loopllmpytorchragreinforcement-learningtransformers

Example questions

The prompt

Paste it into your AI agent. It clones HadisArefanJazi/adaptive-human-in-the-loop-llm-agent at the pinned commit and indexes it on your machine.

Search the GitHub repository HadisArefanJazi/adaptive-human-in-the-loop-llm-agent with XERJ (https://hub.xerj.org/corpus/hadisarefanjazi--adaptive-human-in-the-loop-llm-agent).
Run these in a shell, in order, and check each result before the next:
1. xerj --help  (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh
2. git clone https://github.com/HadisArefanJazi/adaptive-human-in-the-loop-llm-agent adaptive-human-in-the-loop-llm-agent && git -C adaptive-human-in-the-loop-llm-agent checkout c8154ac99b2b5ae69ab3033e8659e9c4b8a1065b
3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data
4. xerj autoindex ./adaptive-human-in-the-loop-llm-agent --url http://127.0.0.1:9200 --prefix adaptive-human-in-the-lo --progress plain
5. xerj autoindex map --url http://127.0.0.1:9200
Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt
Licence: MIT. Keep the copyright notice and credit the authors.

Related

Selected work and consent: the XERJ registry.