Bottom line: Claude Sonnet was the better critic. Jev was fast and cheap, but it saved money, not time. And its maker, TypeSafe AI, doesn't currently sign BAAs, so I wouldn't send it a clinician's question.
Key takeaways
- A critic step is a model that reads each retrieved document and decides if it moves on to ranking. Every critic I tried beat no critic: answer-key papers in the top 10 went from 22.7 to between 26.3 and 32.0, out of 85.
- Jev, from TypeSafe AI, is a fast, cheap and consistent yes/no filter: about 0.7 seconds and $0.006 a search. It rarely drops a paper that matters, but it is weak at ordering.
- Jev plus Claude Sonnet matched Sonnet alone on accuracy at about a third of the cost ($0.11 against $0.30 a search). It was not faster: 5.3 seconds against 4.5.
- After Jev, an LLM reranker (Sonnet) worked. Cohere Rerank 3.5 made the list worse.
- No BAA from TypeSafe today, by its own FAQ.
Recent research suggests that adding a critic step makes a RAG pipeline more accurate. I wanted to know if that holds in healthcare, and if a small, fast model could fill the seat. I ran the test on November 23, 2026.
What is a RAG pipeline?
RAG is short for retrieval-augmented generation. The model doesn't answer from memory. It first retrieves documents, then writes its answer from what it retrieved. A RAG pipeline is the chain of steps between the question and the answer.
That matters in medicine for two reasons. The answer can cite its sources, so a clinician can check it. And the answer can only be as good as the documents that reach the model. If the right guideline never gets there, the model can't use it.
What does a RAG pipeline look like?
A basic RAG pipeline has three steps:
- Retrieve. Search a collection for documents that may hold the answer.
- Rank. Put them in order and keep the best few. A model can only read so much.
- Generate. A model reads those few and writes the answer.
Real pipelines add more steps around these. I'm leaving those out. These three are the ones that matter here.
What is a critic step in a RAG pipeline?
A critic step is a model that reads each retrieved document and judges it before anything is ranked. It sits between retrieve and rank. It decides which documents move on.
The idea comes from Archon (Saad-Falcon and colleagues, 2024), a Stanford paper about getting better answers by combining several model calls. Each call has one job. Four of them:
- Generator: produces candidates.
- Critic: lists the strengths and weaknesses of each candidate.
- Ranker: puts the candidates in order and keeps the best.
- Fuser: combines them into one final answer.
I came across it in a Stanford CS329A lecture on test-time compute. The Archon part starts near minute 57. Archon works on candidate answers. I borrowed the shape for candidate documents: retrieve is the generator, rank is the ranker, and the model that writes the answer is the fuser. What was missing was the critic.
My hypothesis: what if the critic was Jev?
Based on that research, my hypothesis was that a critic between retrieve and rank, one that decides which documents go to the ranker, increases accuracy.
A critic is also an expensive step, because it reads every document for every question. So I added a second hypothesis. What if the critic was a decision model, a small fast model that only says yes or no to each document? If it could do the job, I would get the gain for a fraction of the time and money. My guess going in was that Jev would save me both.
What is Jev, and what are the types of AI?
Most people mean a language model when they say AI, a model like Claude Sonnet from Anthropic. It writes text and can reason through a problem. That makes it flexible, and slower and more expensive.
Jev is a different kind. It is a model from TypeSafe AI that returns answers a program can use directly, not text. You give it some content and a typed question. For a yes/no question it returns one number: the probability that the answer is yes.
TypeSafe calls this a System One model, after Daniel Kahneman's System 1, the fast and intuitive kind of thinking. Many people call them decision models. TypeSafe has asked people not to, so I'll use their name.
Two things made it interesting. It is fast. And it is cheap: $0.042 per million input tokens, with output free. A token is a small chunk of text, roughly three quarters of a word. Claude Sonnet 5.5 lists at $2 per million input tokens and $10 per million output tokens. That is almost 50 times more for every token read. The Jev version I used was jev-1.14.0.
What did I test?
I tried three models as the critic: Jev, Claude Sonnet 5.5 and the smaller Claude Haiku 5.5, both Claude models through Amazon Bedrock. Jev answered yes or no. The Claude models graded each document. Every critic worked on the same saved set of candidates, so when two setups differ, the critic is what differs.
I used two rulers, because each has a weakness:
- The answer key. 12 oncology questions where a clinician's reference answer cites specific papers. That is 85 papers in all. For each setup I count how many land in the final list and in the top 10, summed over the 12 questions. Best possible is 85. I ran everything 3 times and took the average. A gap of 1 to 3 papers is noise.
- The judge. On 68 questions (the same 12, plus 56 I held out), Claude Sonnet reads the titles of the top 10 results and marks each one A (directly answers the question), B (related) or C (off-topic). That is 680 papers per setup, one run. The judge is a measuring tool, not part of any pipeline.
How did Jev do as a RAG critic against Claude Sonnet and Haiku?
Jev kept the right papers in the list about as well as Sonnet did. It was clearly worse at getting the best ones to the top.
| Critic | Answer-key papers in the final list | In the top 10 | Judge: A | Judge: C | Time added | Cost per search |
|---|---|---|---|---|---|---|
| No critic | 38.3 | 22.7 | 407 | 96 | 0 s | $0 |
| Jev, yes/no | 47.0 | 26.3 | 441 | 16 | 0.7 s | about $0.006 |
| Jev, probability sets the order | 45.0 | 26.3 | 523 | 3 | 0.7 s | about $0.006 |
| Claude Haiku 5.5 | 47.7 | 27.3 | not judged | not judged | 8.0 s | about $0.02 |
| Claude Sonnet 5.5 | 46.3 | 32.0 | 552 | 2 | 4.5 s | about $0.30 |
Answer key: out of 85, mean of 3 runs. Judge: out of 680 top-10 papers, one run. Time is the median the step adds to one search. Cost is at list prices.
- Any critic improves the list. With no critic, 38.3 of the 85 answer-key papers made the final list. With any of the three models it was 46 to 48. The differences among the three are inside the noise.
- Jev rarely throws out a paper that matters. About 55 answer-key papers were somewhere in the candidates in a typical run. Jev said no to about 2 of them.
- Jev is weak at ordering. A yes/no answer splits papers into two piles. It doesn't say which yes is the best yes. With Jev, 20.7 answer-key papers sat below the top 10, where a reader may never see them. With Sonnet it was 14.3.
- The probability helps, but not enough. I also asked Jev the question I ask Claude (would a clinician's answer cite this?) and used its probability to order the papers. The judge liked that much more: 523 A's and 3 off-topic. The answer key didn't move: 26.3 in the top 10.
- Jev is the most consistent. I graded the same paper twice. Jev gave the same answer 97% of the time, Sonnet 92%, Haiku 90%.
LLM reranker vs Cohere Rerank: which works best after Jev?
The LLM reranker, Sonnet. Jev filters well and orders poorly, so the obvious fix is a second model that only orders what Jev kept. That second model is a reranker. I tried three. In every row Jev passes on the same documents. Only the order changes.
| Reranker after Jev | Answer-key papers in the top 10 | Judge: A | Judge: C | Reranker time | Cost per search, with Jev |
|---|---|---|---|---|---|
| None | 26.3 | 441 | 16 | 0 s | about $0.006 |
| Cohere Rerank 3.5, blended in at a light weight | 23.7 | 402 | 21 | 0.5 s | about $0.008 (my estimate) |
| Cohere Rerank 3.5 alone sets the order | 6.0 | 179 | 53 | 0.5 s | about $0.008 (my estimate) |
| Claude Haiku 5.5 | 28.0 | 513 | 5 | 7.8 s (max 14.8) | about $0.013 |
| Claude Sonnet 5.5 | 31.7 | 560 | 2 | 4.6 s (max 6.8) | about $0.11 |
Jev adds 0.7 s in every row. In the Haiku run, the reranker left some documents ungraded in 2 of the 12 answer-key questions, so read that row as approximate.
Cohere made the list worse. Cohere Rerank is a relevance reranker: it scores how closely a document's text matches the question. I ran version 3.5 through Bedrock. The more weight I gave it, the worse the list got. It pushes down guidelines and landmark trials in favour of papers that repeat the question's words. In oncology, the paper you should cite is often not the one that sounds most like the question. I didn't test newer rerank models.
Sonnet brought the numbers back up: 31.7 answer-key papers in the top 10 and 560 A's from the judge. That is level with Sonnet doing the whole job alone.
Is Jev plus Claude Sonnet better than Sonnet alone?
On accuracy it is a tie. On cost, Jev plus Sonnet wins. On time, it loses by a little.
| Sonnet alone | Jev, then Sonnet | |
|---|---|---|
| Answer-key papers in the final list | 46.3 | 47.0 |
| Answer-key papers in the top 10 | 32.0 | 31.7 |
| Judge: A, out of 680 | 552 | 560 |
| Time added per search | 4.5 s | 5.3 s (0.7 + 4.6) |
| Cost per search | about $0.30 | about $0.11 |
Question by question on the 68, Jev plus Sonnet was better on 24, the same on 29, and worse on 15. A sign test asks how often chance alone would give a split this uneven if the two designs were truly equal. The answer is about one time in five (p = 0.20). That is a tie.
So why didn't Jev save time? Sonnet reads documents side by side. Fewer documents means fewer tokens, which is the cost. It doesn't shorten the wait, because you still wait for the slowest read. And Jev adds its own 0.7 seconds first.
How do Jev, Haiku and Sonnet compare as a critic?
- Jev: the fastest and cheapest, and the most consistent. A good filter, a weak ranker.
- Claude Haiku: in the middle on accuracy, and the slowest, which surprised me for a smaller model. It wrote about twice as many output tokens, and writing is the slow part. Not worth it here.
- Claude Sonnet: the best accuracy by a clear margin at the top of the list, and the most expensive. It both filters and orders, so no second model is needed. I also tried a separate ranker call after the critic, as Archon describes. It added nothing: 31.7 answer-key papers in the top 10 with it, 32.0 without.
Is Jev HIPAA compliant, and does TypeSafe AI sign a BAA?
By TypeSafe's own FAQ, not currently. So a clinician's question can't go to Jev if it might contain patient details. For me this was the deciding point.
A clinician may type patient details into a question, and in the US that can make it protected health information under HIPAA. The critic receives the question with every document it reads. A vendor that handles that data for you has to sign a business associate agreement (BAA), the contract that makes it responsible for protecting it.
Here is what I found on November 23, 2026:
- TypeSafe AI. The FAQ on its enterprise page asks "Will you sign a BAA?" and answers: "No. We don't currently support HIPAA compliance or sign business associate agreements (BAAs)." The same page says Jev is available only through TypeSafe's hosted API, that data is processed in the US, that inputs and outputs are not used to train its models, that zero data retention is available on request, and that a SOC 2 Type II report can be requested through its Trust Center.
- Amazon Bedrock, where I ran Claude and Cohere Rerank, is on the AWS list of HIPAA eligible services. Eligible is not the same as compliant. It applies only if the customer has signed a BAA with AWS, and the customer still has to set the service up properly.
I read that as a young product that has done real security work and hasn't taken on healthcare yet. "Currently" is their word, and it may change. It wasn't a problem in the test itself, because my questions are general one-liners with no patient information. It is a problem in a clinical product.
What are the limits of this test?
It is one day of testing on a small set of questions.
- Short questions only. All 68 are one-liners. None is a patient case.
- The judge and the best critic are the same model. Both are Sonnet, so the judge may favour it. The answer key doesn't have that bias. The judge numbers are from a single run.
- The answer key is small: 12 questions and 85 papers. I measured which documents reach the model, not the final answers.
- Timing is from a laptop, one question at a time. Nothing was load-tested.
- Costs are list prices: Sonnet 5.5 at $2 and $10 per million input and output tokens, Haiku 5.5 at $0.10 and $0.50, Jev at $0.042 per million input tokens. Bedrock prices may differ. The Cohere cost is my own estimate.
Bottom line
A critic step helped every time I tried it. Jev is a good fit for a high-volume yes/no filter with no patient data in it. For a clinical product, I'd use Sonnet alone: same accuracy as Jev plus Sonnet, the question stays inside a cloud where a BAA is available, and it costs about 19 cents a search more. If TypeSafe starts signing BAAs, I'll rerun this test.
Sources
- Saad-Falcon J, et al. Archon: An Architecture Search Framework for Inference-Time Techniques. arXiv:2409.15254, 2024. arxiv.org/abs/2409.15254.
- Stanford Online. Stanford CS329A Self-Improving AI Agents, Part 2: Test-Time Compute Scaling. The Archon part starts near minute 57.
- TypeSafe AI. Models (Jev versions and price), System One, Noul, the yes/no question type, and Don't Call It a Decision Model.
- TypeSafe AI. Enterprise page and FAQ (BAA, data handling) and Trust Center. Checked November 23, 2026.
- Anthropic. Claude pricing. Checked November 23, 2026.
- Amazon Web Services. HIPAA Eligible Services Reference and Amazon Bedrock. Checked November 23, 2026.
- Cohere. Rerank.