R226 · Agent architecture › Memory and context

Jetriever: rank every agent memory by usefulness, not similarity

Read the original

Authors Zelal Gungordu (shared)

memoryretrievalragrerankingcalibrationpaper

· Source: Ruizhe Li, Licheng Zhang, Mingxuan Du, Zhendong Mao, Jetriever: Shifting Agent Memory Retrieval from Similarity to Utility, arXiv:2611.21478 (v1 16 Nov 2026, v2 18 Nov 2026); code at imlrz/Jetriever. Surfaced by Zelal Gungordu (Principal Engineer, Search & AI).

The short version

Agent memory is usually retrieved like a search index. You embed or keyword-match the query, take a shortlist, and maybe rerank it. That fails when the memory that matters shares no surface features with the question. In the paper's canonical case, a user mentioned a nut allergy months ago and now asks for a macaron recipe. The query says nothing about nuts, so a similarity retriever never surfaces the allergy.

Jetriever drops the shortlist. For each query it scores every stored memory with a small LLM-derived decision model (Jev) for the probability that the memory helps produce a correct answer, then ranks the whole pool by that probability.

On InMind's 125 indirect-query tasks:

How it works

  1. Store past exchanges as discrete memories. No embedding index is required for ranking.

  2. Score the full pool. For a new query, pair it with each memory and ask the decision model one question: would this memory contribute to a correct answer? The output is a calibrated probability, not a similarity score.

  3. Rank and truncate. Sort by probability and pass the top k (five in the paper) to the answering model.

  4. Answer with the selected memories in context.

The design bet is that usefulness depends on world knowledge (macarons contain almonds), and only a model with that knowledge can see the link. Vector distance can't.

The finding that matters most: recognising is not ranking

A controlled 20-question comparison separates two abilities:

So a general LLM "knows" the memory is relevant but can't order it above merely plausible context. What wins is calibrated probabilities. For anyone tempted to use a general model as a reranker by asking it to score relevance from 1 to 10, that is the warning: knowing something is relevant isn't enough, because the scores also have to be comparable from one memory to the next.

Tradeoffs

Failure modes to watch

Review checklist

Cited in field guides

Connections

See R226 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.