AI Reviews & Comparisons

Stay ahead of AI.

Honest reviews, comparisons, and guides on the tools actually worth your time.
1109 in-depth guides
Diagram of three agent-memory traces drawn from the published span dump. Trace one has an invoke_agent parent and one create_memory child labelled record.count 51. Trace two has an invoke_agent parent with two search_memory children for the same query: the first returns the value UTC+8, the second returns UTC+9, with record.count 1 on both, and a callout to the left states that no write span exists between the two reads, so the changed value arrives without a recorded write. Trace three has an invoke_agent parent and one delete_memory child labelled evicted_reason=superseded_by_newer_value. A footer states that the layout is the fixture span shape, not a performance measurement, and that the two returned values come from the run log in method.md rather than from the span dump.

Agent Memory Tracing: OpenTelemetry Spans for Write, Retrieve and Evict

A memory-backed agent gives a stale answer and the stack shows a clean turn. The prompt was assembled, the tool returned, the model spoke, and every span on the trace is green. Nothing reports whether the fact was ever written, whether the retrieval that should have supplied it actually matched, or whether the record was quietly evicted two turns earlier. Those three causes produce the same user-visible symptom, and the usual log line — a query string and a hit count — cannot separate them. ...

November 25, 2026 · 10 min · baeseokjae
Diagram of one local model answering the same prompt on two Ollama endpoints: /api/chat returns function.arguments as an object whose Python type is dict, /v1/chat/completions returns the same call as a JSON string of type str, and replaying either assistant message into the other endpoint returns HTTP 400 with a distinct parse error.

Ollama Tool Calls: Object vs String Arguments on Two API Surfaces

A coding agent works for an afternoon against Ollama’s native /api/chat. Then someone points the OpenAI SDK at http://localhost:11434/v1 to reuse an existing client, or a library switches endpoints underneath the agent. The first turn still works. The second turn is where the run dies, in one of two ways that look unrelated: the executor calls args["path"] and gets TypeError: string indices must be integers, not 'str', because the arguments arrived as a JSON string; or the client stores the native assistant message, sends it back to /v1/chat/completions, and gets HTTP 400 before a single token is generated. Both failures have the same cause: the two surfaces of the same server encode a tool call in incompatible ways. On Ollama 0.20.3, non-streaming, with qwen3:0.6b, POST /api/chat returned function.arguments as a JSON object. POST /v1/chat/completions, same model, same prompt, same tools array, returned the same call with function.arguments as a JSON string. Replaying either assistant message into the other endpoint was rejected with 400, each with its own parse error. ...

November 25, 2026 · 11 min · baeseokjae
Conceptual two-lane diagram. Lane A is the measured single-shot top-5 shape: the question asks which database holds orders-api; the retrieved set contains the fact that orders-api runs in eu-west but not the bridging fact that eu-west data lives in aurora-eu-1, which ranks below the five-slot cut, so only one of the two facts arrives. Lane B is marked as not measured in this run and shows an iterative split: a first retrieval returns the region for orders-api, that region goes into a second query, and only the second call can reach the database fact, at the cost of another round trip. Conceptual diagram of retrieval shape, not measurement data.

Agent Memory Multi-Hop Recall: One Retrieval Misses Half of a Two-Hop Answer

Your agent memory store answers single-fact questions well enough to look healthy. Ask which region a service runs in and the right row comes back with a good similarity score. Then someone asks which database holds that service’s data — a question the store can only answer by joining two rows — and the agent either returns half of it with no trace of doubt or says it has nothing. ...

November 24, 2026 · 15 min · baeseokjae
Range plot of cosine scores for 16 paraphrase and 16 one-token-change memory pairs on three local encoders. On every encoder the highest-scoring critical pair sits above the highest-scoring paraphrase, so a single threshold cannot separate duplicates from facts that must not be merged.

A 0.95 Memory Dedupe Threshold Merged Production Into Staging

Your agent memory layer writes a fact the same way a semantic cache writes an answer: embed the incoming record, compare it with what is already stored, and skip the insert if the cosine similarity clears a threshold. The number that circulates for that threshold is 0.92–0.95. This site’s own backend guide recommends exactly that band for semantic caching, with a code default of 0.93, and the advice transfers into memory layers by copy-paste because the code shape is identical. ...

November 24, 2026 · 16 min · baeseokjae
Horizontal dot plot of 13 measured qwen3:0.6b /api/chat wall times on a 2-core CPU box, one row per call in three groups (1, 4 and 8 tools); filled blue circles are the 7 calls that returned create_ticket with a valid title and priority (done_reason=stop), filled orange squares are the 6 calls that returned no tool call under the 128-token budget (done_reason=length); each marker is labelled with its own wall time in seconds.

Qwen3 0.6B as an Agent Tool Router: 13 CPU Calls, 10-94 s Each

The smallest Qwen3 checkpoint is 0.6B parameters and fits on a CPU in under a gigabyte of memory. That makes it tempting as the cheap routing layer of an agent: hand it eight tool definitions, let it pick create_ticket, let a bigger model do the actual work. Two numbers decide whether that idea survives contact with a real agent loop - how often it picks the right tool, and how long one call takes - and neither is on the model card. ...

November 24, 2026 · 10 min · baeseokjae
Five-by-five survival matrix: five truncation policies (head-N, tail-N, head+tail, middle-out, match-centred) against five positions of a planted evidence line in a 400,110-character payload at a 20,000-character budget. Head-N keeps the line only at 0%, tail-N only at 100%, head+tail at 0% and 100%, middle-out only at 50%, and the pattern-centred window at all five positions.

Your Agent Drops 380 KB of Tool Output. Which Line Survives?

A coding agent runs a test suite, a log tail or a recursive grep. The tool returns 400 KB. The harness caps it before the text reaches the model, and the cap is almost always a character or byte budget applied to a fixed part of the string — the head, or the two ends. The agent then answers confidently about a failure whose stack frame was at 62% of the output and never made it into the prompt. ...

November 22, 2026 · 10 min · baeseokjae
Four-stage diagram: a question, the embedder returning ten candidates with a value-swapped near-duplicate first, a listwise rerank prompt to qwen3:0.6b, and the measured outcome per arm. Labels carry only values measured in this article.

Listwise Reranking on a 0.6B Local Model: 1 Top-1 Gain out of 8 Queries, and 4 Answers That Would Not Parse

A vector store returns ten candidates. The sentence that answers the question is in there, at position three, behind a near-duplicate that states the same fact with the wrong number. Nothing errors. The agent answers confidently from the wrong value. The standard fix in every guide is a cross-encoder reranker, which on a CPU-only box is a model you do not have. But a chat model is already loaded and resident. So the practical question is narrow enough to measure: if the top ten candidates go to a 0.6B local model with the instruction to return them best-first, does the correct answer reach position one, does the model reorder by relevance or by where the candidate sits in the prompt, and what does one query cost on a box that generates in the low teens of tokens per second? ...

November 21, 2026 · 14 min · baeseokjae
Line chart of recall@5 against stored vector width (384, 256, 128, 64 dims) for snowflake-arctic-embed:33m at three index sizes. The 50-fact store stays at 0.983 and 0.967 for 384 and 128 dims; the 800-fact store falls from 0.650 to 0.550 over the same 3x byte cut.

Ollama dimensions for Agent Memory: What Cutting Vector Width Costs in Recall

Your agent memory table has become the biggest thing you own. The embedding model is small, the code is small, but a million stored vectors at 384 float32 dimensions is 1.5 GB of payload before any index overhead, and Ollama’s embed API exposes a dimensions option that looks like a free discount: ask for 128 instead of 384 and the payload drops to one third. The discount is real. The question is what it does to retrieval, and the documentation does not answer it. The embed API reference declares the parameter in a single line — “Number of dimensions to generate embeddings for” — and says nothing about how the shorter vector is produced. If your agent memory is full of near-duplicate facts (the same preference restated four ways, the same project detail rephrased across sessions), the shorter vector is exactly where those paraphrases start colliding, and the failure mode is silent: the wrong paraphrase wins the top-k, and only questions that need one specific variant come back wrong. ...

November 21, 2026 · 15 min · baeseokjae
Bar chart of six memory-write arms measured on eight authored turns: answerability@1, acknowledgement rows as a fraction of stored rows, and characters in a five-row top-5 prompt (365 for raw turns, 230 for qwen3:0.6b with the JSON-array prompt).

Agent Memory Fact Extraction on a 0.6B Local Model: What It Drops, What It Stores as Noise, and What Raw Turns Cost Instead (2026)

Week two of a local agent memory store is where the design questions actually arrive. The store was built the obvious way: every conversation turn goes through the embedding endpoint, one vector per turn, top-k comes back. Then two things happen at once, and neither raises an error. The first is that retrieved rows are chat fragments. In the authored 8-turn fixture behind this article, four of the eight stored turns were acknowledgements — “Noted. I will run black and isort with the black profile rather than reformatting by hand”, “Got it. Deploy window is Tuesday 02:00-04:00 UTC”, “Running the tests now.”, “Sounds good.” Those rows are short, they are dense in the vocabulary of the question being asked, and they rank. A retriever asked about the deploy window returns the sentence that says the window exists without saying what it is. ...

November 21, 2026 · 15 min · baeseokjae
Elasticsearch as agent memory: three indices, hybrid retrieval, supersession and tenant isolation

Elasticsearch as Agent Memory: three indices, hybrid RRF retrieval, and the 0.89 recall number Elastic published

You build agent memory on Elasticsearch by splitting it into three indices — episodic events, semantic facts, procedural playbooks — writing each memory once into a BM25 field and a semantic_text field, recalling with a hybrid query that fuses 80 keyword and 80 dense candidates through reciprocal rank fusion at rank_constant=30, reranking the merged pool with a cross-encoder, hiding contradicted documents behind a superseded_by filter, and isolating tenants with a query-level security rule. That is the shape of the reference implementation Elastic Search Labs published on 2026-06-16, described in Agent memory on Elasticsearch: hybrid retrieval and DLS. ...

November 19, 2026 · 13 min · baeseokjae