Jev-RAG Toolbox tests when a system answering from retrieved documents should stop searching. It uses a local Jev-style model built from Mentat and Qwen weights. Qwen writes the drafts and follow-up questions; the decision model tells the controller whether to keep searching and which follow-ups to run.
Replay the stop from the same state
- A HotpotQA question asks which team Charlie Nicholas played for in a cup final. The draft says “Charlie Nicholas.” The project’s published trace records
sufficientat 95.30%, just over the 95% cutoff. The runner returns the draft as its final answer. - The author replayed that decision from the same draft and documents. Forcing the search to continue brought in another document and changed the answer to Celtic, at the reported cost of three more Qwen calls and two more gate calls. The original stop was checked against the trace; the model replay was not rerun here.
Count the whole search
- On its 400-question HotpotQA run, the project reports 207 exact matches with the v2 gate versus 211 without a gate. Total input and output tokens were 1.61 million versus 2.50 million, including the gate’s own inputs. The project’s 2Wiki run reports 209 versus 208 exact matches and a smaller token saving. These are the author’s runs; inference was not reproduced.
- A well-formed stop decision can still submit the wrong answer. Replay some of the stops and skips your pipeline would normally accept, then compare the resulting answers and the cost of extra work.
Caveat: The tests search a fixed set of documents supplied with each question. Older timing runs used different cache and scheduling conditions, so the results are more useful as an answer-quality and token comparison than as a latency forecast.