<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Trials with AI</title><description>Exploring what AI can actually do at work, beyond the hype. Arun MV on building and experimenting with AI: retrieval, evals, agents, security and everything in between, with the numbers and what didn&apos;t work out.</description><link>https://www.trialswithai.com/</link><item><title>The renderer nobody has used since 2023</title><link>https://www.trialswithai.com/posts/okf-for-a-js-survey-platform/</link><guid isPermaLink="true">https://www.trialswithai.com/posts/okf-for-a-js-survey-platform/</guid><description>A worked example of Google&apos;s Open Knowledge Format on a JS/TS monorepo: bundle layout, the concept that says don&apos;t, a scaffold script and CI wiring.

TL;DR
- The Open Knowledge Format (OKF) is a directory of markdown files with one required field, `type`. It turns a repo&apos;s tribal knowledge into a graph that people and agents can both follow.
- Scope it to where the postmortems point, and write at least one concept whose whole job is to say *don&apos;t delete this*.
- Scaffold the boilerplate from `package.json`, leave visible TODOs, and wire a CI nudge that warns without blocking merges.
- Point `CLAUDE.md` at the bundle so the knowledge lives in one place, then measure whether the loop fires: nudges acted on, deletions caught in review, agent proposals that respect the tags.</description><pubDate>Wed, 09 Sep 2026 00:00:00 GMT</pubDate></item><item><title>Your vector database is lying to you about multi-hop</title><link>https://www.trialswithai.com/posts/your-vector-database-is-lying-about-multi-hop/</link><guid isPermaLink="true">https://www.trialswithai.com/posts/your-vector-database-is-lying-about-multi-hop/</guid><description>Single-vector retrieval has a proven ceiling on multi-hop questions, and it fails silently: similarity scores stay confident while a hop is missing.

TL;DR
- Top-k dense retrieval can&apos;t reliably answer multi-hop questions, and a bigger embedding model won&apos;t fix it: Weller et al. (2025) prove a ceiling set by the embedding dimension.
- It fails silently. Similarity scores stay high when one hop&apos;s evidence is missing, so the model writes a fluent, wrong answer when it should say it doesn&apos;t know.
- Standard RAG metrics and averaged recall@k both miss it. Measure joint all-hop recall: the share of queries where every hop shows up in the same top-k.
- Fix it in order of cost: hybrid retrieval plus a reranker, then iterative retrieval, then a graph index for entity-dense corpora.</description><pubDate>Thu, 03 Sep 2026 00:00:00 GMT</pubDate></item><item><title>Your evals have no tests</title><link>https://www.trialswithai.com/posts/your-evals-have-no-tests/</link><guid isPermaLink="true">https://www.trialswithai.com/posts/your-evals-have-no-tests/</guid><description>I planted 15 bugs in a working LLM system and reran its eval suite unchanged. 11 got through, including a data leak, and the suite stayed green.

TL;DR
- A passing eval suite only tells you something once you&apos;ve watched it fail for a reason you planted.
- I planted 15 bugs in a RAG pipeline and a tool agent and reran a typical golden-answer suite unchanged. 11 got through (73%).
- The escapes include the bugs that cause incidents: a wrong-year document injected into 50 of 60 answers, and a skipped auth check that leaked 47 restricted documents. Both passed.
- Removing the grounding instruction made the score go up 19 points. The suite rewarded the model for answering from memory.
- Report the noise floor with it. This suite can&apos;t see a drop under 6.4 points between runs, and a drop has to be 22 points to generalise beyond its 60 questions.</description><pubDate>Thu, 20 Aug 2026 00:00:00 GMT</pubDate></item><item><title>How we measure RAG quality</title><link>https://www.trialswithai.com/posts/measuring-rag-quality/</link><guid isPermaLink="true">https://www.trialswithai.com/posts/measuring-rag-quality/</guid><description>RAG quality by vibes doesn&apos;t survive a second engineer. Break the score down by stage, build the eval set from real failures, calibrate the judge, gate CI.

TL;DR
- The point of measuring RAG is answering which stage broke? the moment something regresses. One quality score can&apos;t tell you that.
- Build the eval set from real failures. Questions you invent cluster around the cases you already handle well.
- Trace every eval query to where its source got lost. On our last run, 67 of 75 cited the right source, and the biggest loss was retrieval (4 queries).
- Treat an LLM judge as an instrument with known biases (verbosity, position), calibrate it against human labels, and gate every change on the eval set in CI.</description><pubDate>Thu, 04 Jun 2026 00:00:00 GMT</pubDate></item><item><title>Agentic workflows that don&apos;t spiral out of control</title><link>https://www.trialswithai.com/posts/agentic-workflows-guardrails/</link><guid isPermaLink="true">https://www.trialswithai.com/posts/agentic-workflows-guardrails/</guid><description>Reliable agents come from bounds. Cap turns and time, push predictable steps into a state machine, and keep a human on the irreversible ones.

TL;DR
- Agents rarely fail by crashing. They fail by never stopping: the same tool, slightly different arguments, over and over, with the cost climbing.
- Cap every run before it starts. Ours stops at 50 model turns and returns its best result so far, and every external call has a wall-clock timeout.
- Put the predictable sequence (research, plan, implement, QA, fix) in deterministic code, and let the model loop only inside a phase.
- Keep a human on the irreversible steps. Our agent stops after planning until someone approves, and it never opens a pull request on its own.</description><pubDate>Thu, 07 May 2026 00:00:00 GMT</pubDate></item><item><title>Choosing a vector database when every query carries a filter</title><link>https://www.trialswithai.com/posts/choosing-a-vector-database/</link><guid isPermaLink="true">https://www.trialswithai.com/posts/choosing-a-vector-database/</guid><description>Vendor benchmarks measure unfiltered search on someone else&apos;s data. If every real query has a tenant filter, that filter decides the choice.

TL;DR
- Pick a vector database for your own workload: your vector count, your dimensions and, above all, your filter pattern.
- When the filter is a tenant boundary, it has to be correct as well as fast. Keeping it in the same statement as the search means no copied metadata that can drift.
- pgvector applies filters *after* the index scan. With default settings, a filter matching 10% of rows returns about 4 of the 10 results you asked for.
- Iterative scans (pgvector 0.8.0+), partial indexes and per-tenant partitions fix most of it. Benchmark the filtered case on your own data before deciding.</description><pubDate>Fri, 24 Apr 2026 00:00:00 GMT</pubDate></item><item><title>Cutting LLM inference cost without losing quality</title><link>https://www.trialswithai.com/posts/cutting-llm-inference-cost/</link><guid isPermaLink="true">https://www.trialswithai.com/posts/cutting-llm-inference-cost/</guid><description>Inference cost is a measurement problem first. Lock the quality metric, then trim context, route steps to a cheaper model and cache the stable prefix.

TL;DR
- Lock a quality baseline in CI before you cut anything. Without it, a cost saving and a quietly worse product look identical.
- Three levers, in the order to try them: send the model less context, route the cheap steps to a cheaper model, and cache the stable prefix.
- How much each lever saves depends on your token mix. In a RAG pipeline the retrieved context is usually most of the bill, so trimming it tends to come first.
- The step with the biggest per-call cost, grounded synthesis, is the most tempting to move to the cheap model and the one most likely to fail the quality gate.</description><pubDate>Wed, 18 Mar 2026 00:00:00 GMT</pubDate></item></channel></rss>