Appearance
A 4.6 point regression, caused by the safety feature
A rebuild that checked every sentence against its cited passage before showing it delivered 62.8% of requests under sustained overload. The version with no checks delivered 67.4%. That is 4.6 points of throughput lost, or 46 dropped requests out of every thousand.
The checker was not the slow part. Each verification pass took milliseconds. The loss came from what happens when a check fails halfway through a streamed answer: the model's output is cancelled, the bad sentence never reaches the user, and the quota reserved for that call stays spent for the rest of the minute. Seven answers were stopped early in that run. The held-up quota was worth about three model calls, and the safer build made exactly three fewer calls than the older one.
My first diagnosis was wrong. A follow-up run with a simulator that stopped manufacturing fake failures showed part of the gap belonged to my own measurement rig, not the provider. Whether Groq returns reserved budget on a cancelled stream is still unproven. The direction of the tradeoff held anyway: verification costs delivery when quota is the binding constraint, and it does not when the GPU is.
What the Relay does
The corpus is three papers: Attention Is All You Need, Moshi, and H-Net. Converting them to text gives about a thousand chunks. Retrieval is BM25 plus embeddings, scored with plain NumPy, under a millisecond per query.
A vector database for a thousand chunks is an extra service to operate for no retrieval gain. NumPy holds the whole index in memory in a few megabytes of float32, and there is no second system whose failure modes you have to learn.
That refusal branch on the left is the cheapest thing in the diagram. It spends nothing.
Quick Take: retrieval quality decides what your model is able to say, but verification decides whether you can ship it, and verification is what fails first when the budget runs out.
Thirty requests in two seconds
Bursts are where systems break, and bursts are highly repetitive. Something goes wrong in the world, everyone asks the same thing at the same moment. SingleFlight exploits that: if a question is already being answered, a new request waits for the same verified sentences instead of starting its own model call. Repeats after completion come straight from cache.
In the burst test, 30 requests arrived within two seconds across 6 distinct questions.
| What happened | Requests |
|---|---|
| Made its own model call | 6 |
| Joined a call already in progress | 17 |
| Served from the cache | 7 |
| Delivered to the user | 30 |
Thirty answers out of six model calls. On a free tier that is the difference between clearing the burst and getting rate-limited in the first two seconds. With Redis shared between workers, ten identical requests hitting two servers produce one model call in total.
Key numbers Delivery cost of verification: 62.8% delivered with per-sentence checks, 67.4% without Slowest request: 29.8s total, of which 29.2s was waiting for quota and 0.6s was actual work First verified sentence, median: 324.5ms, against 614.2ms when the whole answer is batched Burst efficiency: 30 requests, 6 model calls Citation checks passed: 44 of 45
29.2 of 29.8 seconds was queue
The slowest request took 29.8 seconds. Retrieval plus the model accounted for 0.6 seconds. The other 29.2 seconds were spent waiting for quota to free up. When people say the model is slow under load, they usually mean the queue in front of the model.
I could only see that because every request records waiting, working, and retrying time in separate buckets. Latency as a single number hides the thing you can fix.
The quota math looked per-minute at first. The header read x-ratelimit-limit-requests: 1000, but its reset time grew by exactly 86.4 seconds per request, and 86,400 seconds in a day divided by 1,000 is 86.4. It behaves like a daily budget. A thousand requests a day is not a lot once a burst arrives, which is why the guard checks the budget before every call and counts every retry out loud.
Capping retries had a measurable cost. In a run where 30% of calls failed on purpose, the retry limit cut attempts from 1.41 to 1.27 per request, and two requests failed. Without the limit, none did. I kept the limit. In a real outage, extra retries hammer a provider that is already struggling.
Refusals are the cheapest correct answer
I wrote 21 test questions. Six of them the papers cannot answer: blockchain, photosynthesis, the TCP handshake, Newton's laws, MySQL versus MongoDB, and one trap. Across three retrieval settings, all 17 graded no-answer cases were handled correctly. The 18th hit a network error and I left it in the results rather than quietly re-running it.
With reranking on, five of the six unanswerable questions were refused before any model call, because no passage cleared the relevance floor. Zero quota spent, and an honest sentence telling the user the papers do not cover it.
Three papers can still fool a naive retriever. The trap was asking how WavLM is pretrained. The Moshi paper cites WavLM, so the keywords match hard, but it never describes WavLM's pretraining. My widest retrieval setting fell for it and the model filled the gap from memory. Shared vocabulary makes it worse: "transformer", "attention", and "chunk" appear in all three documents, so they cannot tell you which paper you are in. Broken PDF extraction adds a third failure mode; the attention formula came out garbled, one answer picked up a stray 0, and the checker caught it. Technical synonym for that is a wrong refusal in the safe direction.
Test the model inside your limits, not on a leaderboard
Three Groq models, same six questions. On three of them, both gpt-oss-20b and gpt-oss-120b spent their entire output allowance on reasoning tokens and never wrote an answer. qwen3.8-27b was never cut off, and every answer cleared the citation checks. That is how the model got picked. Not benchmarks. The output cap.
The judge model deserves its own warning. I scored 224 real sentences with a small model asked whether a passage supports a claim. At the standard 0.5 threshold it would have blocked about one good sentence in five while still missing more than a third of the bad ones. That is a 20% throughput tax disguised as a quality gate, and it would have cost more than the cancelled streams ever did. It now records scores and blocks nothing.
Structured episodes beat pasted history
Pasting the whole conversation into context is what most assistants do. It works until the history gets long enough that the reader starts losing the thread. A multi-session hiring assistant paper takes the other path: index interactions in an Open Knowledge Format structure, retrieve events through their lineage, and learn reusable decision procedures from the retrieved episodes.
The results on PersonaMem-v2 are narrower than the headline suggests, and the token number is the interesting one.
| Approach | PersonaMem-v2 accuracy | Relative reader input tokens |
|---|---|---|
| No memory | 29.0% | 0 |
| Full history pasted in | 48.6% | 10.5x |
| OKF retrieval plus Procedure Memory | 50.2% | 1.0x |
A 1.6 point accuracy gap is within noise at this sample size. The 10.5x token reduction is not. Lower cost and equal accuracy at the same time is rare enough that it is worth restructuring for.
The hiring-specific numbers are stronger. OKF-indexed retrieval hit 0.93 to 0.95 F1 on low-priority preference questions at medium and high overlap between projects, and beat full-history context and conversation search in both settings. It used 69% fewer context tokens than full history. Procedure Memory, learned by prompted reflection or RL, cut conversational turns by up to 39% against no memory, and the RL variant scored 60% on both correct abstention and exact-field identification. That abstention number matters more than the F1: knowing when the memory does not contain the answer is the failure mode that makes assistants untrustworthy.
I ran a version of my own Relay with full history pasted in, purely as a control. It read more, answered later, and cited nothing. The retrieval step is not what makes a system trustworthy. The check is.
The knowledge base can be trained, not just written
The schema and card structure of a knowledge base usually gets written once by a human and then rots. Knowledge-Base Gradient Descent treats it as a parameter instead. You give it questions with expected answers, it diagnoses where the current structure produces wrong answers, proposes one structural edit, rebuilds, and keeps the edit if the learning loss drops. Randomizing over candidate edits turns the loss change into a derivative with respect to the probability of picking that edit. Joint edits are evaluated as single candidates because their effects interact.
On bundles of research papers, updated knowledge cards and graph schemas beat their initial structures on held-out generated questions, with schema gains in every document. On human-written questions, mean F1 rose for schemas and fell for cards. The updated structures serve the kind of question they were learned from, which is the whole trap. If you tune structure against a synthetic question set, your evaluation will tell you it worked.
That result is the most useful negative finding in the cluster. Self-structuring is cheap to run and easy to overfit. Hold out human questions before you trust the gain.
What trips people up in verified RAG
- Treating exact-word match as an answer score. Strict matching called 19 of 45 answers correct, but most failures were a single missing phrase, which means the metric graded phrasing instead of truth. Citation checks passed 44 of 45, and that is the number I report.
- Letting a judge model gate output before scoring it. On 224 sentences at the usual threshold, mine would have blocked one good sentence in five and still missed over a third of the bad ones. Measure the judge on labeled data first, then decide whether it gets veto power.
- Assuming a cancelled stream frees its reserved quota. Seven stopped answers cost about three calls in my run. Watch the reset timer for an hour before you size capacity around cancellation.
- Reading a request limit header as per-minute. The reset interval told the real story: 86.4 seconds per request means a daily budget, not a minute one.
- Widening retrieval until the bibliography answers for you. A citation is not an explanation, and keyword overlap will happily hand the model a passage that mentions the thing without describing it.
The lever that mattered most
The single change that bought the most throughput was not verification at all. It was refusing to make the same model call twice, so 30 requests became 6 calls. Verification set the ceiling on trust; deduplication set the ceiling on how many people got an answer at all. If you only copy one idea from this, copy the in-flight join.
What this means for your stack
If you are running a metered API and your traffic arrives in bursts, add single-flight dedupe before you touch anything else. Thirty requests collapsing to six calls buys more than any prompt or model change, and it takes an afternoon.
If verification is non-negotiable for your product, stream and check per sentence, but budget for the quota you lose on cancelled streams and test your provider's cancel behavior before you plan capacity. The first verified sentence arriving at 324.5ms instead of 614.2ms is worth real money in a support tool. Under heavy overload it costs about 4.6 points of delivery, and you should decide that trade before the incident, not during it.
If your agent carries context across sessions, index episodes instead of pasting history. A 10.5x reduction in reader tokens at equal accuracy changes which conversations you can afford to keep, and abstention accuracy is what stops the assistant from inventing a preference nobody stated.
Sources: Knowledge-Base Gradient Descent, Procedure Inference as Memory, I Made My RAG Safer. It Got Worse Under Load, follow-up on the simulator's own error.