<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nerav Doshi</title>
    <description>The latest articles on DEV Community by Nerav Doshi (@agenticdevops).</description>
    <link>https://dev.to/agenticdevops</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3916785%2F423b2322-f2d4-4fee-8576-b0537c2866f0.png</url>
      <title>DEV Community: Nerav Doshi</title>
      <link>https://dev.to/agenticdevops</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/agenticdevops"/>
    <language>en</language>
    <item>
      <title>Retrospective: Every Number From 24 Entries in One Table, and What Had to Be Corrected First</title>
      <dc:creator>Nerav Doshi</dc:creator>
      <pubDate>Mon, 30 Nov 2026 13:23:24 +0000</pubDate>
      <link>https://dev.to/agenticdevops/retrospective-every-number-from-24-entries-in-one-table-and-what-had-to-be-corrected-first-1b3h</link>
      <guid>https://dev.to/agenticdevops/retrospective-every-number-from-24-entries-in-one-table-and-what-had-to-be-corrected-first-1b3h</guid>
      <description>&lt;p&gt;This was planned as the week-9 retrospective and kept slipping, because every entry opened another one. Twenty-four entries in, here is every number the series has measured, in one place, with links back to where it came from.&lt;/p&gt;

&lt;p&gt;Compiling it was useful before it was finished. Checking each figure against its published post turned up errors I hadn't caught, so the first job was fixing those. Every fix is a dated correction at the bottom of the entry, as in Entries 01 and 03, not a silent edit.&lt;/p&gt;

&lt;h2&gt;
  
  
  What had to be corrected
&lt;/h2&gt;

&lt;p&gt;Four corrections came from the same mistake: mixing units. macOS &lt;code&gt;ps&lt;/code&gt; reports memory in kibibytes, &lt;code&gt;podman stats&lt;/code&gt; in decimal gigabytes, and Kubernetes in mebibytes. I'd compared them as if they were the same.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Entry 03 and 04&lt;/strong&gt;: three RSS figures were converted inconsistently. The 3b is 2.41 GiB, not ~2.47. Q4_K_M is 0.92 and FP16 is 2.51, not 0.94 and 2.57. The "roughly 2x" conclusions hold.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Entry 09&lt;/strong&gt;: container overhead is about &lt;strong&gt;25%&lt;/strong&gt;, not 34%. &lt;code&gt;podman stats&lt;/code&gt; reports decimal GB (I checked: its limit of 4.082GB equals the VM's 3,986,016 KiB exactly), so 1.663 GB is 1.55 GiB against 1.24 GiB bare metal.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Entry 11&lt;/strong&gt;: the 1663Mi limit was about 5% above the Podman reading, not equal to it. The pod was still killed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Entry 12&lt;/strong&gt;: Kubernetes used about &lt;strong&gt;12%&lt;/strong&gt; more than Podman, not 6.7%.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The rest were claims the posts didn't support:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Entry 14 and 17&lt;/strong&gt;: 437.7 was attributed to Entry 08, which never recorded a distance. It came from Entry 06. Entry 17 also put that store at 45 entries, when it held 3, then 20.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Entry 15&lt;/strong&gt;: a third result, 437.7, was left out of the table. Re-embedding Entry 02 as it was on Aug 10 reproduced it (437.73) and the table's 430.1 (430.2).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Entry 16&lt;/strong&gt;: the store didn't hold "the 15 Today I Ran entries" before the bulk embed, just the handful of documents Entries 05 to 07 put there.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Entry 10&lt;/strong&gt;: the "30 seconds under Podman" pull time was never measured.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Entry 08&lt;/strong&gt;: the "Connection closed" error came from an attempt that was never written up.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Several entries also gained the commands they described but didn't show: Entry 02's Modelfile (recovered with &lt;code&gt;ollama show oc-mentor --modelfile&lt;/code&gt;), the three pod manifests from Entries 10 to 12, Entry 14's n8n container and its FastMCP fix. The scripts behind the corrections are in the site repo under &lt;code&gt;scripts/tir-review-2026-11-18/&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The reference table
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Model memory and quantization (&lt;code&gt;llama3.2&lt;/code&gt;, Ollama on an Apple M4 Mac mini, 16 GB)
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Measurement&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Entry&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1b (Q8_0) download / loaded (&lt;code&gt;ollama ps&lt;/code&gt;) / RSS&lt;/td&gt;
&lt;td&gt;1.3 GB / 1.5 GB / 1.24 GiB&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://dev.to/posts/01-ollama-local-deploy/"&gt;01&lt;/a&gt;, &lt;a href="https://dev.to/posts/04-quantization-q4-q8-fp16/"&gt;04&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3b loaded / RSS&lt;/td&gt;
&lt;td&gt;2.5 GB / 2.41 GiB&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/03-1b-vs-3b-memory-comparison/"&gt;03&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1b Q4_K_M download / loaded / RSS&lt;/td&gt;
&lt;td&gt;807 MB / 997 MB / 0.92 GiB&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/04-quantization-q4-q8-fp16/"&gt;04&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1b FP16 download / loaded / RSS&lt;/td&gt;
&lt;td&gt;2.5 GB / 2.7 GB / 2.51 GiB&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/04-quantization-q4-q8-fp16/"&gt;04&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;gemma3:12b&lt;/code&gt; size&lt;/td&gt;
&lt;td&gt;8 GB&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/20-reranking-top-20-local-models/"&gt;20&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Containers and Kubernetes (same 1b model)
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Measurement&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Entry&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Podman VM at 2 GiB: memory free vs needed&lt;/td&gt;
&lt;td&gt;620.8 MiB vs 1.3 GiB, failed to load&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/09-containerized-ollama-memory-overhead/"&gt;09&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Container memory, VM at 4096 MB&lt;/td&gt;
&lt;td&gt;1.663 GB (1.55 GiB), ~25% over bare metal, CPU only&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/09-containerized-ollama-memory-overhead/"&gt;09&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;kind&lt;/code&gt; first image pull&lt;/td&gt;
&lt;td&gt;4 min 26 s&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/10-kubernetes-no-limits-baseline/"&gt;10&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Limit 1663Mi&lt;/td&gt;
&lt;td&gt;OOMKilled, exit 137, 2 restarts&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/11-oom-kubernetes-vs-podman/"&gt;11&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Limit 2048Mi&lt;/td&gt;
&lt;td&gt;no restarts, 1775Mi used (~12% over Podman)&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/12-real-kubernetes-memory-ceiling/"&gt;12&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sizing rule adopted&lt;/td&gt;
&lt;td&gt;measured steady state + 10 to 15%&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/12-real-kubernetes-memory-ceiling/"&gt;12&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Embeddings and distances (&lt;code&gt;nomic-embed-text&lt;/code&gt;, Chroma squared-L2)
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Measurement&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Entry&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Vector size / context window&lt;/td&gt;
&lt;td&gt;768 / 2048 tokens&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/05-local-embeddings-pipeline/"&gt;05&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Truncating a 13,985-character draft to 6,000&lt;/td&gt;
&lt;td&gt;57% never embedded&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/05-local-embeddings-pipeline/"&gt;05&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;On-topic vs off-topic, 3-document store&lt;/td&gt;
&lt;td&gt;437.72, 499.63 vs 542.33, 585.48&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/06-querying-embeddings-store/"&gt;06&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Chunking&lt;/td&gt;
&lt;td&gt;1,000 characters, 200 overlap&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/07-chunking-retrieval-bias/"&gt;07&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Raw-text query fallback&lt;/td&gt;
&lt;td&gt;384 dimensions vs 768, query rejected&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/07-chunking-retrieval-bias/"&gt;07&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Garbled vs clean query, same target&lt;/td&gt;
&lt;td&gt;324.3 vs 430.1&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/13-hand-rolled-agent-loop/"&gt;13&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rewording one query&lt;/td&gt;
&lt;td&gt;430.1 → 375.8 (54 points); within-query spread ~18&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/15-sse-reconnect-distance-instability/"&gt;15&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Same text, three clients and three months&lt;/td&gt;
&lt;td&gt;437.7 every time&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://dev.to/posts/06-querying-embeddings-store/"&gt;06&lt;/a&gt;, &lt;a href="https://dev.to/posts/14-n8n-ollama-mcp-wiring/"&gt;14&lt;/a&gt;, &lt;a href="https://dev.to/posts/15-sse-reconnect-distance-instability/"&gt;15&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Real catalog&lt;/td&gt;
&lt;td&gt;45 files → 741 chunks&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/16-bulk-embed-real-catalog/"&gt;16&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Retrieval evaluation (12 labeled questions unless noted)
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setup&lt;/th&gt;
&lt;th&gt;Top 1&lt;/th&gt;
&lt;th&gt;Top 5&lt;/th&gt;
&lt;th&gt;Right-article chunks in top 5&lt;/th&gt;
&lt;th&gt;Entry&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Embedding only&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;3.17&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/18-eval-set-retrieval-scores/"&gt;18&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cap 1 / 2 / 3 per article&lt;/td&gt;
&lt;td&gt;0.83 / 0.83 / 0.83&lt;/td&gt;
&lt;td&gt;1.00 / 0.92 / 0.83&lt;/td&gt;
&lt;td&gt;1.00 / 1.75 / 2.42&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/19-cap-sweep-gains-run-out/"&gt;19&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;gemma3:12b&lt;/code&gt; re-rank, 0-10, embedding tie-break&lt;/td&gt;
&lt;td&gt;0.75&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;td&gt;3.58&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/posts/20-reranking-top-20-local-models/"&gt;20&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Same, 0-100 scale&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;td&gt;3.75&lt;/td&gt;
&lt;td&gt;21&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Same, 0-10, probability tie-break&lt;/td&gt;
&lt;td&gt;0.92&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;td&gt;3.50&lt;/td&gt;
&lt;td&gt;21&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10 new questions: embedding only vs 12B&lt;/td&gt;
&lt;td&gt;0.90 vs 0.80&lt;/td&gt;
&lt;td&gt;0.90 vs 0.90&lt;/td&gt;
&lt;td&gt;2.70 vs 3.40&lt;/td&gt;
&lt;td&gt;22&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Other retrieval numbers&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Entry&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Distinct scores &lt;code&gt;gemma3:12b&lt;/code&gt; used on a 0-100 scale&lt;/td&gt;
&lt;td&gt;10 of 101, all multiples of 5&lt;/td&gt;
&lt;td&gt;21&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scoring cost per question (20 chunks): 1B / 3B / 12B&lt;/td&gt;
&lt;td&gt;4.4 s / 13.6 s / 94.8 s&lt;/td&gt;
&lt;td&gt;21&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12B top score, 3 no-answer controls vs 22 real questions&lt;/td&gt;
&lt;td&gt;3 or less vs 7 or more&lt;/td&gt;
&lt;td&gt;22&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Security and the &lt;code&gt;oc&lt;/code&gt; baseline
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Measurement&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Entry&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;MCP server (SSE, &lt;code&gt;0.0.0.0:8090&lt;/code&gt;) on the Mac's LAN address&lt;/td&gt;
&lt;td&gt;unauthenticated tool calls answered&lt;/td&gt;
&lt;td&gt;23&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ollama bound to &lt;code&gt;127.0.0.1&lt;/code&gt;, from a Podman container&lt;/td&gt;
&lt;td&gt;reachable (model list returned)&lt;/td&gt;
&lt;td&gt;23&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenShift tasks answered with &lt;code&gt;oc&lt;/code&gt; when OpenShift is named&lt;/td&gt;
&lt;td&gt;143 of 144&lt;/td&gt;
&lt;td&gt;24&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;oc&lt;/code&gt;-specific tasks correct, best model (hand-checked)&lt;/td&gt;
&lt;td&gt;6 of 20 (&lt;code&gt;gemma3:12b&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;24&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Generic Kubernetes tasks, OpenShift not named&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;kubectl&lt;/code&gt; 3 of 4, all three models&lt;/td&gt;
&lt;td&gt;24&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What a Mac mini can't tell you
&lt;/h2&gt;

&lt;p&gt;The original plan for this series ended with distributed inference, and that's the one piece I deliberately never did. Everything above ran on one machine, one request at a time. This section is reasoning, not measurement. These are the questions none of these entries can answer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Models bigger than one machine.&lt;/strong&gt; Every model here fit in 16 GB. Splitting one across GPUs or nodes means tensor or pipeline parallelism, where the network between nodes becomes part of the latency. Nothing here measured that.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPUs inside Kubernetes.&lt;/strong&gt; Entry 09 ran CPU-only in a container because there's no Metal passthrough. A real cluster schedules GPUs through device plugins and node pools, and the memory numbers in Entries 11 and 12 wouldn't carry over to GPU memory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Concurrency.&lt;/strong&gt; Every timing in this series is a single request. Serving many users is about batching and queueing, and Entry 21's 95 seconds per question says nothing about throughput under load.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Failure and scaling.&lt;/strong&gt; A pod restarting on a laptop cluster (Entry 11) isn't the same as a model server failing over, or autoscaling on real traffic.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;The open threads, roughly in order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A real OpenShift target&lt;/strong&gt;, re-running the sizing tests from Entries 10 to 12 on a real cluster, booked together with the Pipelines in the Wild cluster time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;oc&lt;/code&gt; correctness, not tool choice.&lt;/strong&gt; Entry 24 shows naming the platform fixes the tool. Whether a small fine-tune or retrieving the &lt;code&gt;oc&lt;/code&gt; docs fixes the commands is the real question.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A near-miss control&lt;/strong&gt; for Entry 22's no-answer signal: a question that sounds like something in the collection but isn't.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Authentication&lt;/strong&gt; for the MCP server, and a decision on Ollama's exposure to containers (Entry 23).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The habit this table taught is the one worth keeping: write the unit next to every number at the moment you record it. Four of the corrections above would never have been needed.&lt;/p&gt;

</description>
      <category>ollama</category>
      <category>kubernetes</category>
      <category>rag</category>
      <category>retrospective</category>
    </item>
    <item>
      <title>Measured the oc-vs-kubectl Bias: Naming OpenShift Fixed the Tool, but Most oc Commands Were Wrong or Invented</title>
      <dc:creator>Nerav Doshi</dc:creator>
      <pubDate>Mon, 30 Nov 2026 13:23:22 +0000</pubDate>
      <link>https://dev.to/agenticdevops/measured-the-oc-vs-kubectl-bias-naming-openshift-fixed-the-tool-but-most-oc-commands-were-wrong-5bge</link>
      <guid>https://dev.to/agenticdevops/measured-the-oc-vs-kubectl-bias-naming-openshift-fixed-the-tool-but-most-oc-commands-were-wrong-5bge</guid>
      <description>&lt;p&gt;Four entries in this series hit the same thing. Entry 03's plain 3b answered a pod question with &lt;code&gt;kubectl&lt;/code&gt;. Entry 10's 1B invented OpenShift networking details. In Entry 14 a model answered an &lt;code&gt;oc&lt;/code&gt; question with "you can use the &lt;code&gt;kubectl&lt;/code&gt; command-line tool" in the same sentence. Entry 02's constrained model used &lt;code&gt;oc&lt;/code&gt; but gave a wrong command. The plan for this quarter includes trying a small fine-tune to fix the &lt;code&gt;oc&lt;/code&gt;-versus-&lt;code&gt;kubectl&lt;/code&gt; bias. Before that, I wanted a number for how big the bias actually is, or there'd be nothing to compare a fine-tune against.&lt;/p&gt;

&lt;p&gt;I wrote 24 tasks before running anything. Twenty need an &lt;code&gt;oc&lt;/code&gt; subcommand that &lt;code&gt;kubectl&lt;/code&gt; doesn't have: creating and switching projects, routes, source-to-image builds, image streams, &lt;code&gt;oc adm&lt;/code&gt; work like SCCs, upgrades and must-gather, logging in, the internal registry. Four are generic Kubernetes jobs where &lt;code&gt;kubectl&lt;/code&gt; is just as good: scaling, pod logs, a shell in a pod, and granting edit access. Those were counted separately. Each task went to &lt;code&gt;llama3.2:1b&lt;/code&gt;, &lt;code&gt;llama3.2:3b&lt;/code&gt; and &lt;code&gt;gemma3:12b&lt;/code&gt;, once plain and once with Entry 02's &lt;code&gt;oc-mentor&lt;/code&gt; system prompt, at temperature 0. The prompt was "On an OpenShift 4 cluster:  Give the command."&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;~/mcp-env/bin/python3 eval_oc_bias.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The bias barely showed up. Of 144 answers, 143 led with &lt;code&gt;oc&lt;/code&gt;. The one &lt;code&gt;kubectl&lt;/code&gt; was the 1B, plain, on saving a secret's keys to files.&lt;/p&gt;

&lt;p&gt;Whether the command was right was a different story. The script had an automatic check for the expected subcommand, and it turned out to be a poor judge. It scored the 3b at 10 of 20 because the right word appeared, in commands like &lt;code&gt;oc adm upgrade --show-version-upgrades&lt;/code&gt; and &lt;code&gt;oc new-app --source-codeurl=...&lt;/code&gt;, flags that don't exist. It also marked &lt;code&gt;oc new-app mytemplate -p NAME=demo&lt;/code&gt; wrong, and that's valid. So I checked all 144 by hand against one rule: does the first command do what was asked, exactly as written? Where I wasn't sure a flag existed, I checked offline with the local &lt;code&gt;oc&lt;/code&gt; client's &lt;code&gt;--help&lt;/code&gt; (4.22), without touching a cluster.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Config&lt;/th&gt;
&lt;th&gt;First command used &lt;code&gt;oc&lt;/code&gt; (of 20)&lt;/th&gt;
&lt;th&gt;Correct, hand-checked (of 20)&lt;/th&gt;
&lt;th&gt;Generic tasks correct (of 4)&lt;/th&gt;
&lt;th&gt;Seconds for all 24&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1B, plain&lt;/td&gt;
&lt;td&gt;19&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;32&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1B, &lt;code&gt;oc-mentor&lt;/code&gt; prompt&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3B, plain&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;72&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3B, &lt;code&gt;oc-mentor&lt;/code&gt; prompt&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;19&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12B, plain&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;374&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12B, &lt;code&gt;oc-mentor&lt;/code&gt; prompt&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;93&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The best result was the 12B at 6 of 20 on the &lt;code&gt;oc&lt;/code&gt;-specific tasks. Twelve of the twenty tasks were never answered correctly by any model in either mode. Nobody produced &lt;code&gt;oc adm must-gather&lt;/code&gt;, &lt;code&gt;oc extract secret/db-creds&lt;/code&gt;, &lt;code&gt;oc registry login&lt;/code&gt;, &lt;code&gt;oc set triggers&lt;/code&gt;, a working &lt;code&gt;oc import-image&lt;/code&gt; (the 1B tried, with the wrong arguments), or an edge route with &lt;code&gt;--service&lt;/code&gt;. In place of the real commands, the models invented plausible ones: &lt;code&gt;oc s2i build&lt;/code&gt;, &lt;code&gt;oc create build&lt;/code&gt;, &lt;code&gt;oc image-stream create&lt;/code&gt;, &lt;code&gt;oc adm collect diagnostics&lt;/code&gt;, &lt;code&gt;oc adm policy add-sca-scope&lt;/code&gt;, &lt;code&gt;oc adm upgrade-status&lt;/code&gt;, &lt;code&gt;oc project list&lt;/code&gt;. Some answers were one flag away. The 12B's &lt;code&gt;oc logs -f bc/app --watch&lt;/code&gt; is right except that &lt;code&gt;oc logs&lt;/code&gt; has no &lt;code&gt;--watch&lt;/code&gt;, and the 3b's &lt;code&gt;oc adm policy add-scc-to-user anyuid builder&lt;/code&gt; grants the SCC to a user named builder instead of the service account, because it's missing &lt;code&gt;-z&lt;/code&gt;. By the rule, neither counts.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;oc-mentor&lt;/code&gt; system prompt didn't make anything more correct. It took the 1B from 4 to 2, the 3b from 4 to 5, and the 12B from 6 to 5. What it did was shorten the answers, which is why those runs were three to five times faster.&lt;/p&gt;

&lt;p&gt;That raised a question about the earlier entries. Entries 02 and 03 asked "how do I check the status of pods in my namespace?" without naming OpenShift, and this test always did. So I re-ran the 24 tasks plain, without "On an OpenShift 4 cluster", deciding beforehand to count only which tool each answer reached for. On the four generic tasks, all three models answered with &lt;code&gt;kubectl&lt;/code&gt; three times out of four and &lt;code&gt;oc&lt;/code&gt; never. On the twenty &lt;code&gt;oc&lt;/code&gt;-specific tasks the wording became ambiguous and the models just guessed: &lt;code&gt;oc&lt;/code&gt; at most twice, &lt;code&gt;kubectl&lt;/code&gt; one to five times, and the rest went to &lt;code&gt;git&lt;/code&gt;, &lt;code&gt;docker&lt;/code&gt;, &lt;code&gt;gcloud&lt;/code&gt;, &lt;code&gt;aws&lt;/code&gt; and others. "Create a new project called payments" became &lt;code&gt;git init payments&lt;/code&gt; from the 1B.&lt;/p&gt;

&lt;p&gt;Some limits. The correctness check is my judgment, under a strict first-command rule, and nothing was run against a cluster. The offline &lt;code&gt;--help&lt;/code&gt; check confirms a flag exists, not that the command works end to end. Each task has one wording and one run at temperature 0, so a different phrasing could change individual answers. Twenty tasks means each one is five points. And my task list leans toward &lt;code&gt;oc&lt;/code&gt;-only features on purpose, so this measures the hard part of &lt;code&gt;oc&lt;/code&gt;, not everyday use.&lt;/p&gt;

&lt;p&gt;So the bias from earlier entries is mostly a missing-context problem. Name the platform, and every model reaches for &lt;code&gt;oc&lt;/code&gt;. Leave it out, and generic Kubernetes questions get &lt;code&gt;kubectl&lt;/code&gt;. The problem that's left is correctness. Even the 12B got the &lt;code&gt;oc&lt;/code&gt;-specific command right less than a third of the time, and a system prompt didn't change that. A fine-tune aimed at "say &lt;code&gt;oc&lt;/code&gt;, not &lt;code&gt;kubectl&lt;/code&gt;" would be fixing the part a single phrase already fixes. The open question for the next step is whether a small fine-tune can teach real &lt;code&gt;oc&lt;/code&gt; subcommands, or whether retrieving the &lt;code&gt;oc&lt;/code&gt; docs at question time would do more for less.&lt;/p&gt;

</description>
      <category>ollama</category>
      <category>openshift</category>
      <category>oc</category>
      <category>evaluation</category>
    </item>
    <item>
      <title>Checked Who Can Reach My Local AI Stack: No-Auth MCP on the LAN Address, and 'Localhost-Only' Ollama Open to Containers</title>
      <dc:creator>Nerav Doshi</dc:creator>
      <pubDate>Mon, 23 Nov 2026 13:57:13 +0000</pubDate>
      <link>https://dev.to/agenticdevops/checked-who-can-reach-my-local-ai-stack-no-auth-mcp-on-the-lan-address-and-localhost-only-4834</link>
      <guid>https://dev.to/agenticdevops/checked-who-can-reach-my-local-ai-stack-no-auth-mcp-on-the-lan-address-and-localhost-only-4834</guid>
      <description>&lt;p&gt;Since Entry 14 the MCP search server has run over SSE, bound to &lt;code&gt;0.0.0.0&lt;/code&gt; on port 8090 with no authentication. I made that choice so the n8n container could reach it, and never went back to check what else could. This entry checks: what's listening, who can reach it, and what it takes to narrow that down without breaking n8n.&lt;/p&gt;

&lt;p&gt;The server wasn't running when I started, and the saved &lt;code&gt;mcp_search_server.py&lt;/code&gt; still had the &lt;code&gt;mcp.run(host=...)&lt;/code&gt; line that Entry 14 found doesn't work with this SDK. So I made a copy, &lt;code&gt;mcp_search_server_sse.py&lt;/code&gt;, with Entry 14's fix: host and port on the &lt;code&gt;FastMCP()&lt;/code&gt; constructor, set from environment variables so I could start several versions side by side. Started it the way Entry 14 runs it, on &lt;code&gt;0.0.0.0:8090&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;What's listening:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;$ lsof -nP -iTCP -sTCP:LISTEN &lt;span class="o"&gt;|&lt;/span&gt; grep -E &lt;span class="s2"&gt;"8090|11434|5678"&lt;/span&gt;
ollama   2350 flyers  4u  IPv4 ...  TCP 127.0.0.1:11434 &lt;span class="o"&gt;(&lt;/span&gt;LISTEN&lt;span class="o"&gt;)&lt;/span&gt;
Python  17604 flyers 14u  IPv4 ...  TCP *:8090 &lt;span class="o"&gt;(&lt;/span&gt;LISTEN&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ollama only listens on loopback. The MCP server listens on every interface (&lt;code&gt;*&lt;/code&gt;). n8n wasn't running, but &lt;code&gt;podman inspect n8n&lt;/code&gt; shows its port published as &lt;code&gt;"HostIp":"0.0.0.0","HostPort":"5678"&lt;/code&gt;, so whenever it runs, it's on every interface too.&lt;/p&gt;

&lt;p&gt;Then, from the Mac, using its own Wi-Fi address instead of localhost (&lt;code&gt;&amp;lt;mac-ip&amp;gt;&lt;/code&gt; below):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;$ curl -sN --max-time 3 -o /dev/null -w &lt;span class="s2"&gt;"%{http_code}\n"&lt;/span&gt; http://&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;mac-ip&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;:8090/sse
200
$ curl -s --max-time 3 -o /dev/null -w &lt;span class="s2"&gt;"%{http_code}\n"&lt;/span&gt; http://&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;mac-ip&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;:11434/api/tags
000        &lt;span class="c"&gt;# connection refused, curl exit 7&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The MCP server answered on the LAN address and Ollama didn't. A 200 on an SSE endpoint only means a stream opened, so I went one step further and used the MCP Python client against the LAN address to list the tools and call one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tools: ['search_notes']
[secrets-management-multi-cloud-pipelines_chunk8] (distance: 277.3)
above proves one thing: secret management is a routing problem ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No credentials, no handshake beyond the protocol itself. Anything that can reach that address and port can search the index.&lt;/p&gt;

&lt;p&gt;I couldn't test from a second device, so the honest claim is narrower than "the whole Wi-Fi can reach it." But nothing I found would stop it. The macOS firewall is on, and it has an explicit "Allow incoming connections" rule for the Homebrew &lt;code&gt;Python.app&lt;/code&gt; that runs the server, plus "automatically allow signed software" enabled for both built-in and downloaded apps:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ /usr/libexec/ApplicationFirewall/socketfilterfw --listapps
 1 : /opt/homebrew/Cellar/python@3.14/.../Python.app   (Allow incoming connections)
 8 : /Applications/Ollama.app/Contents/Resources/ollama   (Allow incoming connections)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Containers were the more surprising part. From a throwaway Podman container:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;$ podman run --rm docker.io/curlimages/curl -s --max-time 3 http://host.containers.internal:11434/api/tags
&lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"models"&lt;/span&gt;:&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"name"&lt;/span&gt;:&lt;span class="s2"&gt;"llama3.2-vision:latest"&lt;/span&gt;, ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ollama, bound to &lt;code&gt;127.0.0.1&lt;/code&gt; only, answered a container with the full model list. Podman's VM forwards &lt;code&gt;host.containers.internal&lt;/code&gt; traffic onto the Mac's loopback, so "localhost only" here means "this machine and every container on it." The same unauthenticated API has endpoints to pull and delete models. I didn't try those. The MCP server answered the container too, as it does for n8n.&lt;/p&gt;

&lt;p&gt;So the first fix to try was binding the MCP server to &lt;code&gt;127.0.0.1&lt;/code&gt;. That closed the LAN address and broke the container:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;$ curl -sN --max-time 3 -o /dev/null -w &lt;span class="s2"&gt;"%{http_code}\n"&lt;/span&gt; http://&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;mac-ip&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;:8091/sse
000        &lt;span class="c"&gt;# refused&lt;/span&gt;
$ podman run --rm docker.io/curlimages/curl -s --max-time 3 http://host.containers.internal:8091/sse
Invalid Host header
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The connection got through, and the server log recorded it as coming from &lt;code&gt;127.0.0.1&lt;/code&gt;, for the same forwarding reason as Ollama. It was rejected with &lt;code&gt;421 Misdirected Request&lt;/code&gt;. The MCP SDK turns on DNS-rebinding protection automatically when you bind to loopback, and it only accepts requests addressed to &lt;code&gt;localhost&lt;/code&gt;, &lt;code&gt;127.0.0.1&lt;/code&gt; or &lt;code&gt;[::1]&lt;/code&gt;. A container asks for &lt;code&gt;host.containers.internal&lt;/code&gt;, so it's refused. The flip side, which I hadn't known: with &lt;code&gt;host="0.0.0.0"&lt;/code&gt; the SDK sets that protection to &lt;code&gt;None&lt;/code&gt;. Entry 14's setup had no host checking at all.&lt;/p&gt;

&lt;p&gt;The version that did what I wanted binds to loopback and adds the two container hostnames to the allow-list:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;mcp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;server&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;transport_security&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;TransportSecuritySettings&lt;/span&gt;

&lt;span class="n"&gt;security&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;TransportSecuritySettings&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;enable_dns_rebinding_protection&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;allowed_hosts&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"127.0.0.1:*"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"localhost:*"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"[::1]:*"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                   &lt;span class="s2"&gt;"host.containers.internal:*"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"host.docker.internal:*"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;allowed_origins&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"http://127.0.0.1:*"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"http://localhost:*"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"http://[::1]:*"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;mcp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;FastMCP&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"today-i-ran-notes"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"127.0.0.1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;8092&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;transport_security&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;security&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Request to port 8092&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Mac's LAN address&lt;/td&gt;
&lt;td&gt;refused&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Container, &lt;code&gt;host.containers.internal&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Container, &lt;code&gt;host.docker.internal&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mac, loopback, with &lt;code&gt;Host: evil.example&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;421&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One loose end from the history closed along the way. Running bare &lt;code&gt;ollama&lt;/code&gt; once printed a launcher menu naming third-party agents, and I never looked into it. &lt;code&gt;ollama --help&lt;/code&gt; on 0.40.16 lists it: &lt;code&gt;launch — Launch the Ollama menu or an integration&lt;/code&gt;, and &lt;code&gt;ollama launch --help&lt;/code&gt; lists the integrations (Claude Code, Codex, OpenCode and others). &lt;code&gt;/usr/local/bin/ollama&lt;/code&gt; is a symlink into the signed &lt;code&gt;/Applications/Ollama.app&lt;/code&gt;. It's a built-in feature, not something that got onto the machine.&lt;/p&gt;

&lt;p&gt;Some limits. I tested from the Mac and from containers, not from another device, so LAN reachability is inferred from the bind address and the firewall rule. The fix narrows who can connect. It doesn't add authentication: any process on this Mac and any container can still call &lt;code&gt;search_notes&lt;/code&gt;. What it exposes is a search over articles that are already public, so the real-world risk was low. The Ollama exposure to containers is the bigger one, and binding to loopback doesn't fix it under Podman. I haven't switched n8n or Claude Code over to the fixed server yet. Claude Code's registration from Entry 15 points at port 8090 and needs updating once it moves.&lt;/p&gt;

&lt;p&gt;The pattern from this pass is that "bound to localhost" means less on a Mac running a container VM than it sounds. Loopback-only Ollama was reachable from every container, and the MCP server I'd opened up for one container was reachable on the LAN address without credentials. Closing it properly took a bind address plus a host allow-list, and the next step is deciding whether this stack needs real authentication or just fewer listeners.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ollama</category>
      <category>podman</category>
      <category>security</category>
    </item>
    <item>
      <title>Ten New Questions: The 12B Re-Ranker's Gain Didn't Hold, but Its Scores Flagged Every Question With No Answer</title>
      <dc:creator>Nerav Doshi</dc:creator>
      <pubDate>Mon, 23 Nov 2026 13:57:11 +0000</pubDate>
      <link>https://dev.to/agenticdevops/ten-new-questions-the-12b-re-rankers-gain-didnt-hold-but-its-scores-flagged-every-question-with-h99</link>
      <guid>https://dev.to/agenticdevops/ten-new-questions-the-12b-re-rankers-gain-didnt-hold-but-its-scores-flagged-every-question-with-h99</guid>
      <description>&lt;p&gt;Entry 21's best setup put the right article first on 11 of 12 questions, but those were the same twelve questions every re-ranking change since Entry 18 had been tuned and judged against. This entry asks two things that entry left open. Does the gain hold on questions it has never seen? And what changes once one of the original questions gets the second acceptable article that's been pending since Entry 18?&lt;/p&gt;

&lt;p&gt;The labels came first, before any run. I reread the articles competing for the four questions that keep moving, and added one second label:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Question 7&lt;/strong&gt; (an AI agent safely reading the cluster) now also accepts AI in the Stack 07. That article explains why our MCP-based agent shipped read-only and why RBAC alone wasn't enough, which answers the question as directly as the MCP architecture piece.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Question 6&lt;/strong&gt; (switching LLM providers): no. The prompt-versioning article that keeps tying with the answer explicitly hands provider switching off to the swapping article.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Question 10&lt;/strong&gt; (incident triage with a workflow tool): no. The generative-AI explainer's n8n section is about email and document workflows, not incidents.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Question 12&lt;/strong&gt; (managed or self-hosted): no. The Kubernetes explainer lists managed platforms without weighing the choice, and the hybrid-cloud piece gives it one paragraph.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then I wrote ten new questions from the content of articles the original twelve don't use, worded away from their titles, since Entry 18's real miss came from a wording match. One question got a second acceptable article in advance: the pod memory limit question accepts Entry 11 as well as Entry 12. I added one control the collection can't answer: how to write a declarative Jenkinsfile with parallel stages. No article mentions Jenkinsfiles.&lt;/p&gt;

&lt;p&gt;Both sets ran through the setup Entry 21 settled on: &lt;code&gt;gemma3:12b&lt;/code&gt; re-scoring the top 20 chunks from 0 to 10, ties broken by its digit probabilities.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/Downloads/Projects/rag-notes-search
~/mcp-env/bin/python3 eval_holdout.py C
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That &lt;code&gt;cd&lt;/code&gt; is new. Partway through the run, a clean-up of my Downloads folder moved every loose file, &lt;code&gt;chroma_db&lt;/code&gt; included, into a project folder. The first half had already loaded the collection and finished fine. The hold-out half failed on a missing questions file, and I re-ran it from the new location after checking the collection was still 741 chunks.&lt;/p&gt;

&lt;p&gt;The second label on question 7 changed nothing. AI in the Stack 07 didn't come near the top under either setting, so strict and lenient scores came out identical. The original twelve reproduced Entry 21 exactly: right article first on 11 of 12, all 12 in the top three.&lt;/p&gt;

&lt;p&gt;The new questions went differently. Eight of the ten had the right article first under both settings. The two that didn't:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;Expected&lt;/th&gt;
&lt;th&gt;Embedding only&lt;/th&gt;
&lt;th&gt;12B re-ranked&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;5, guardrails before an AI tool changes production&lt;/td&gt;
&lt;td&gt;AI in the Stack 08 (governance)&lt;/td&gt;
&lt;td&gt;27&lt;/td&gt;
&lt;td&gt;27&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8, memory limit so a model-serving pod isn't killed&lt;/td&gt;
&lt;td&gt;Entry 12 (or Entry 11)&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setting&lt;/th&gt;
&lt;th&gt;Top 1&lt;/th&gt;
&lt;th&gt;Top 3&lt;/th&gt;
&lt;th&gt;Top 5&lt;/th&gt;
&lt;th&gt;MRR&lt;/th&gt;
&lt;th&gt;Chunks from right article in top 5&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;embedding only&lt;/td&gt;
&lt;td&gt;0.90&lt;/td&gt;
&lt;td&gt;0.90&lt;/td&gt;
&lt;td&gt;0.90&lt;/td&gt;
&lt;td&gt;0.90&lt;/td&gt;
&lt;td&gt;2.70&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12B re-ranked&lt;/td&gt;
&lt;td&gt;0.80&lt;/td&gt;
&lt;td&gt;0.90&lt;/td&gt;
&lt;td&gt;0.90&lt;/td&gt;
&lt;td&gt;0.85&lt;/td&gt;
&lt;td&gt;3.40&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On new questions the re-ranker cost one right answer at the top. For question 8 it gave a chunk of Entry 09, about container memory overhead, a 10, ahead of Entry 12's chunks at 8. Entry 09 is related, but it measures overhead and doesn't set a limit, and I hadn't listed it as acceptable. Question 5 was out of the re-ranker's reach: the governance article's best chunk sat 27th, outside the twenty it re-scores. The AI tooling evaluation framework won it instead, with a chunk the 12B rated 9. That article has a section called "Governance before production," so it's a defensible answer, the same way it was for question 7 in Entry 18. I'm keeping the label strict, for the same reason as then. As in every entry since 20, the re-ranker added depth, 3.40 chunks from the right article against 2.70.&lt;/p&gt;

&lt;p&gt;The unexpected result is in the controls. Each question's highest 12B score:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Questions&lt;/th&gt;
&lt;th&gt;Highest 12B score&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;22 answerable questions (12 original, 10 new)&lt;/td&gt;
&lt;td&gt;7 to 10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"How do I check pod status with oc?" (control)&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"What's the best pizza topping?" (control)&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"How do I write a declarative Jenkinsfile...?" (control)&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Every question with an answer had at least one chunk scored 7 or higher. Every question without one topped out at 3. Embedding distance can't make that split. Entry 18 found the oc control's best match at 225.6, closer than the best match for several real questions (235.5, 240.6, 246.5 in these runs), because the series' own entries quote that question. On these 25 questions, a cutoff anywhere between 3 and 7 on the 12B's top score would have flagged every "not in here" question without losing a real one.&lt;/p&gt;

&lt;p&gt;Some limits. I wrote the new questions knowing the collection and the earlier results, and they may be easier than the originals: plain embedding search got 0.90 on them, against 0.83 on the originals. Ten questions makes each one ten points, so 0.80 against 0.90 is question 8. There are three controls, two of them carried over from Entry 18, and all three are clearly off-topic. A control that sounds close to something the collection covers is the harder test, and it hasn't been run. The labels are still mine and strict. And all of this costs about 95 seconds a question on this Mac mini, from Entry 21.&lt;/p&gt;

&lt;p&gt;So on questions it hadn't seen, the 12B re-ranker didn't improve the first result. It moved one right answer down, couldn't reach the one real miss, and added depth, which is what it did on the original set too. What held up was something I wasn't testing: its top score is a clean "is the answer in here at all?" signal on this sample, which distance never gave. The open question is whether that holds for a near-miss question, not just obvious ones.&lt;/p&gt;

</description>
      <category>ollama</category>
      <category>rag</category>
      <category>reranking</category>
      <category>evaluation</category>
    </item>
    <item>
      <title>Multi-AZ Isn't a DR Plan: Zone Outage on OpenShift and AWS</title>
      <dc:creator>Nerav Doshi</dc:creator>
      <pubDate>Fri, 20 Nov 2026 17:32:47 +0000</pubDate>
      <link>https://dev.to/agenticdevops/multi-az-isnt-a-dr-plan-zone-outage-on-openshift-and-aws-224o</link>
      <guid>https://dev.to/agenticdevops/multi-az-isnt-a-dr-plan-zone-outage-on-openshift-and-aws-224o</guid>
      <description>&lt;p&gt;&lt;em&gt;Pipeline &amp;amp; Prompts | Byte size guides on DevOps, Cloud and AI&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;☁️ Cloud Without the Chaos #6&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;⚡ Byte Size Summary&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What a single-zone outage does to a multi-AZ ROSA HCP cluster, and why stateless and stateful workloads fail differently&lt;/li&gt;
&lt;li&gt;Why zonal storage and load balancer defaults, not the cluster, set your real recovery time&lt;/li&gt;
&lt;li&gt;A short checklist for testing recovery assumptions before an outage tests them for you&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  The Story
&lt;/h2&gt;

&lt;p&gt;A customer of mine lived through several AWS zone-level outages in a short stretch. The clusters were multi-AZ, and the working assumption was that this meant they were already resilient. After a few hours of a real zone outage, a platform engineer and the head of IT both started asking whether that assumption held.&lt;/p&gt;

&lt;p&gt;It didn't, at least not for everything. The cluster lost 33% of its compute nodes. Stateless services kept running because autoscaling placed replacements in the surviving zones, and they were back in about 25 minutes. Stateful services did not come back on their own. Total downtime for that tier was 3 hours 15 minutes, and most of it was manual work.&lt;/p&gt;

&lt;p&gt;The customer runs sensitive applications on-prem and cloud-native applications on a managed platform. That mix made the next conversation harder, because "what is our DR strategy?" had no single answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Multi-AZ protects you from losing a node or a zone's compute. It does not protect you from the things that are tied to the zone: the volumes your pods are mounted to, the paths your traffic takes in, and the backups you've never restored.&lt;/p&gt;

&lt;p&gt;This is blast radius, the fifth dimension of the framework from &lt;a href="https://dev.to/posts/hybrid-cloud-architecture-on-prem-vs-cloud-tradeoffs/"&gt;Cloud Without the Chaos #1&lt;/a&gt;. On paper, three zones cap the damage at a third of the cluster. In practice, what was pinned to the failed zone set the blast radius: zonal volumes, cached load balancer addresses, and a backup nobody had restored.&lt;/p&gt;

&lt;p&gt;The people who feel this are the platform team on call and the business owner deciding whether to restore from backup. Both are making decisions in the middle of an incident with information nobody verified beforehand.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Existing Approaches Fall Short
&lt;/h2&gt;

&lt;p&gt;Most teams treat multi-AZ as the DR plan and stop there. It is high availability, and it covers a different failure class. A regional event can take every zone with it, so a plan that stops at the zone boundary has no answer for that case. Surviving that means either rebuilding the cluster in another region from backups or running active-active across regions, and both choices have to be made before the outage.&lt;/p&gt;

&lt;p&gt;A real DR strategy is made at the workload level, not per cluster. Before an incident, a team should be able to answer these:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which workloads need to recover, and in what order?&lt;/li&gt;
&lt;li&gt;What recovery time and recovery point does each one need?&lt;/li&gt;
&lt;li&gt;Where does the data live, and how does it get to another zone or region?&lt;/li&gt;
&lt;li&gt;What are the dependencies outside the cluster, such as DNS, registry and identity?&lt;/li&gt;
&lt;li&gt;Has any of it been tested end to end, including a restore?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most teams I see have answers to the first and third questions and guesses at the rest.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Architecture
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxed1aego5mexg9ysrl6q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxed1aego5mexg9ysrl6q.png" alt="Zone outage traffic and storage paths on a multi-AZ ROSA HCP cluster" width="800" height="664"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The diagram follows two paths through the same zone outage: the traffic path and the storage path. In the traffic path, requests keep flowing to the failed zone because of how the load balancer and DNS behave. In the storage path, stateful pods are pinned to a zonal volume that cannot move.&lt;/p&gt;

&lt;p&gt;The design decision it makes visible is that the cluster spans three zones and the storage underneath it does not. This was a hosted control plane (HCP) cluster on ROSA. The control plane sits in Red Hat's AWS account, while the worker nodes and volumes sit in the customer's account. The blast radius of the zone outage was therefore the customer's data plane. The control plane stayed healthy throughout, because it runs in Red Hat's account, spread across multiple zones and managed separately from the customer's workers and volumes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Implementation
&lt;/h2&gt;

&lt;p&gt;This is an incident write-up, so there are no install steps. These are the points where recovery was decided.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Traffic kept going to the dead zone.&lt;/strong&gt; Cross-zone load balancing was disabled on the network load balancer, upstream DNS had cached the load balancer's IP addresses, and target group health checks took time to mark the dead targets unhealthy. Users saw errors until all three caught up. Rollback consideration: enabling cross-zone balancing changes cost and traffic distribution, so test it in a non-production environment first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Stateful pods stayed stuck.&lt;/strong&gt; The volumes were ReadWriteOnce block storage that is zonal. A pod can't attach a volume in a zone that isn't there. Recovery meant force-deleting the stuck pods by hand and restoring the data from older snapshots into new volumes in a surviving zone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The restore decision was made blind.&lt;/strong&gt; The head of IT chose to restore from older snapshots. The team knew snapshots ran nightly. It had not verified that the previous night's snapshot completed, and nobody checked its timestamp before recovery started. The recovery point had never been pressure-tested.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The cleanup took two days.&lt;/strong&gt; Afterwards the team spent two days running custom scripts to reconstruct missing information. How much data was affected was not shared with me, so I won't characterise it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Security Considerations
&lt;/h2&gt;

&lt;p&gt;During recovery, people get broad access fast. Force-deleting pods and restoring snapshots into new volumes needs elevated rights, and the emergency path is when those rights get granted loosely and never revoked. Use time-bound privilege elevation, grant only the permissions required for recovery, and review and revoke elevated access once the incident is resolved.&lt;/p&gt;

&lt;p&gt;Snapshots are also a data store. Restoring from an older snapshot means putting older data, with its older access assumptions, back into production. Know who can create, copy and delete them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tradeoffs
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you gain&lt;/strong&gt; by planning DR at the workload level is a recovery order and a number the business has agreed to. &lt;strong&gt;What you give up&lt;/strong&gt; is time. Someone has to classify every workload, and teams without a DR owner tend to stall at this step.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What you gain&lt;/strong&gt; from rehearsing a restore is a verified recovery point. &lt;strong&gt;What you give up&lt;/strong&gt; is engineering time and some risk on the day of the test, so the test needs its own rollback plan.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd Do Differently
&lt;/h2&gt;

&lt;p&gt;Looking back, I would want backup completion and backup age verified as part of routine operational checks, rather than having to ask for that information during a 2 a.m. incident. I would also define and document the recovery time objective (RTO) and recovery point objective (RPO) for each workload before an outage occurs. Finally, I would include load balancer and DNS failover in regular zone-failure drills, since these behaviours can be tested ahead of time without waiting for a real outage.&lt;/p&gt;




&lt;h2&gt;
  
  
  GitHub Repo
&lt;/h2&gt;

&lt;p&gt;There is no companion repository for this article. It documents an incident and a decision, not a shareable implementation.&lt;/p&gt;




&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Cloud Without the Chaos #7: Applying the Framework: OpenShift on ARO vs. Self-Managed vs. AWS/GCP&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>openshift</category>
      <category>aws</category>
      <category>disasterrecovery</category>
      <category>cloudwithoutthechaos</category>
    </item>
    <item>
      <title>Broke the Re-Ranker's Ties With Its Own Probabilities: 11 of 12 First, at 95 Seconds a Question</title>
      <dc:creator>Nerav Doshi</dc:creator>
      <pubDate>Fri, 20 Nov 2026 00:46:29 +0000</pubDate>
      <link>https://dev.to/agenticdevops/broke-the-re-rankers-ties-with-its-own-probabilities-11-of-12-first-at-95-seconds-a-question-3l5d</link>
      <guid>https://dev.to/agenticdevops/broke-the-re-rankers-ties-with-its-own-probabilities-11-of-12-first-at-95-seconds-a-question-3l5d</guid>
      <description>&lt;p&gt;Entry 20 ended with two right answers demoted by ties. &lt;code&gt;gemma3:12b&lt;/code&gt; gave the labeled article and a rival the same score out of 10, and my tie-break fell back to embedding order, which put the rival first. It also left a cost question open, because the script didn't time anything. This entry tests two ways to break the ties and times every scoring call.&lt;/p&gt;

&lt;p&gt;I decided the three variants before running anything:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A&lt;/strong&gt;: Entry 20's setup unchanged, 0 to 10 with ties kept in embedding order. If it didn't reproduce Entry 20's numbers, that would be the story instead.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;B&lt;/strong&gt;: the same prompt, asking for 0 to 100.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;C&lt;/strong&gt;: the same integer scores as A, but ties broken by the model's own uncertainty. Ollama can return the probability of each possible next token, so for every reply I took the probabilities the model gave the digits 0 to 9 at the score position and computed an expected score. A chunk scored 9 with most of the remaining probability on 8 ranks below one scored 9 with the rest on 10. C can only reorder chunks that already share a score.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Same twelve questions and strict labels as Entries 18 to 20, top 20 chunks per question, temperature 0, two runs each.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;~/mcp-env/bin/python3 eval_rerank_v2.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A reproduced Entry 20 exactly: the same four questions moved, to the same positions, and the summary row matched to two decimals. The collection was still 741 chunks. So the new rows are comparable to the old ones.&lt;/p&gt;

&lt;p&gt;The same eight questions had the right article first in every column, so here are the four that moved:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;Embedding only&lt;/th&gt;
&lt;th&gt;A, 0-10&lt;/th&gt;
&lt;th&gt;B, 0-100&lt;/th&gt;
&lt;th&gt;C, 0-10 + tie-break&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;6, switch LLM providers&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7, AI agent reading the cluster&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10, incident triage with a workflow tool&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12, managed or self-hosted&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setting&lt;/th&gt;
&lt;th&gt;Top 1&lt;/th&gt;
&lt;th&gt;Top 3&lt;/th&gt;
&lt;th&gt;Top 5&lt;/th&gt;
&lt;th&gt;MRR&lt;/th&gt;
&lt;th&gt;Chunks from right article in top 5&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;embedding only&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.86&lt;/td&gt;
&lt;td&gt;3.17&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A, 0-10&lt;/td&gt;
&lt;td&gt;0.75&lt;/td&gt;
&lt;td&gt;0.92&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;td&gt;0.85&lt;/td&gt;
&lt;td&gt;3.58&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;B, 0-100&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;td&gt;0.92&lt;/td&gt;
&lt;td&gt;3.75&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C, 0-10 + tie-break&lt;/td&gt;
&lt;td&gt;0.92&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;td&gt;0.94&lt;/td&gt;
&lt;td&gt;3.50&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That table is with no cap. With a cap of one chunk per article, every setting's top-5 hit rate stays the same or rises to 1.00 and the chunk count drops to 1.00, as in Entries 19 and 20, so the cap still adds nothing once the re-ranker is in place.&lt;/p&gt;

&lt;p&gt;The finer scale didn't remove the ties, because the model doesn't use it. Across 240 replies on the 0 to 100 scale, &lt;code&gt;gemma3:12b&lt;/code&gt; used only ten values: 0, 10, 20, 30, 40, 60, 70, 75, 85 and 90. It never used 50, 80 or 100, or anything that wasn't a multiple of five. On the 0 to 10 scale it used nine values and never 5 or 10. A 101-point scale with ten values in use is no finer than the 11-point one. Question 6 shows it: three chunks scored 90, the rival first, exactly as they'd tied at 9 before. B still won back question 10 and moved question 7 to second, so the wider scale changed some judgments, but not by spreading them out. On average 1.92 chunks shared the top score under B, against 2.75 under A, and in four questions the tied chunks came from more than one article (five under A).&lt;/p&gt;

&lt;p&gt;C used information the integer threw away. For question 6, the four chunks tied at 9 had expected scores of 8.96, 8.82, 8.73 and 7.10, and the highest belonged to the labeled article. That fixed question 6 and question 10 without changing a single score, and C ended with the right article first on 11 of 12 questions. The one miss is question 7, the agent question that has never come first in any setup in this series. The 12B scored an n8n workflow chunk 8 there, ahead of everything else, with no tie involved.&lt;/p&gt;

&lt;p&gt;Then the cost. To time it cleanly I ran a separate single pass per model: the plain 0-10 prompt, no probabilities requested, twenty chunks per question.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scorer&lt;/th&gt;
&lt;th&gt;Seconds per question (20 calls)&lt;/th&gt;
&lt;th&gt;Range&lt;/th&gt;
&lt;th&gt;All 12 questions&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;llama3.2:1b&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;4.4&lt;/td&gt;
&lt;td&gt;4.2 to 4.6&lt;/td&gt;
&lt;td&gt;52 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;llama3.2:3b&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;13.6&lt;/td&gt;
&lt;td&gt;12.4 to 15.6&lt;/td&gt;
&lt;td&gt;163 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;gemma3:12b&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;94.8&lt;/td&gt;
&lt;td&gt;69.8 to 136.9&lt;/td&gt;
&lt;td&gt;19 minutes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The only scorer that helped in Entry 20, and the one that makes the tie-break work here, costs about a minute and a half per question on this Mac mini (Apple M4, 16 GB). The 1B is twenty times faster, and Entry 20 showed it barely changes anything. That's not a price for an interactive search box. It might be fine for a batch job or a nightly report.&lt;/p&gt;

&lt;p&gt;Some limits on all of this. Twelve questions means one question is eight points: C's 0.92 against B's 0.83 is question 6 and nothing else. C's tie-break comes from the same model's judgment, so it can't fix a confident wrong score like question 7's, only ties. The timings come from one pass, and the variant runs were slightly faster per call because the second run of each question repeated identical prompts, which Ollama partly caches. Other light work ran on the machine at the same time, including a few container commands near the end, which may explain some of the 12B's spread. The embedding lookup itself wasn't timed; it's small next to twenty model calls. And the labels are still strict and mine.&lt;/p&gt;

&lt;p&gt;So the ties were mostly a tie-break problem, not a scale problem. Asking for a finer scale got round numbers back. Reading the model's own uncertainty, already available in the same call, closed both of Entry 20's demotions and left one miss. The open questions are whether this holds on questions written after seeing these results, and what the agent question's label should be. That's the next entry.&lt;/p&gt;

</description>
      <category>ollama</category>
      <category>rag</category>
      <category>reranking</category>
      <category>evaluation</category>
    </item>
    <item>
      <title>Swept the Per-Article Cap From 1 to 3: The Gains Run Out Before the Costs Do</title>
      <dc:creator>Nerav Doshi</dc:creator>
      <pubDate>Wed, 18 Nov 2026 12:36:38 +0000</pubDate>
      <link>https://dev.to/agenticdevops/swept-the-per-article-cap-from-1-to-3-the-gains-run-out-before-the-costs-do-3f0k</link>
      <guid>https://dev.to/agenticdevops/swept-the-per-article-cap-from-1-to-3-the-gains-run-out-before-the-costs-do-3f0k</guid>
      <description>&lt;p&gt;Entry 18 compared no cap with a cap of one chunk per article, and ended by saying the middle was untested. Same twelve questions this time, at caps of none, 1, 2 and 3. The labels are unchanged from Entry 18, so this run doesn't settle whether a question can have more than one acceptable article. That still needs someone to read the articles.&lt;/p&gt;

&lt;p&gt;The first run failed before it started:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ModuleNotFoundError: No module named 'chromadb'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;python3&lt;/code&gt; on the PATH no longer had the package, and I didn't dig into why. Pointing the script at the venv from Entry 08, which already had it, got past that:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;~/mcp-env/bin/python3 eval_cap_sweep.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first thing worth checking was whether the setup still matched Entry 18. It did. The no-cap row and the cap-1 row reproduce Entry 18's numbers exactly, and the collection is still 741 chunks, so the new rows are comparable to the old ones.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#     none      1      2      3   |    none      1      2      3
1        1      1      1      1   |       5      1      2      3
2        1      1      1      1   |       4      1      2      3
3        1      1      1      1   |       4      1      2      3
4        1      1      1      1   |       5      1      2      3
5        1      1      1      1   |       2      1      2      2
6        1      1      1      1   |       3      1      2      3
7        8      5      6      7   |       0      1      0      0
8        1      1      1      1   |       4      1      2      3
9        1      1      1      1   |       5      1      2      3
10       1      1      1      1   |       3      1      2      3
11       1      1      1      1   |       3      1      2      3
12       7      3      5      6   |       0      1      1      0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The left half is where the labeled article lands in the list at each cap. The right half is how many of the top five chunks come from it. Ten questions put the right article first at every setting. Everything that moves comes from question 7, the AI agent one, and question 12, the managed versus self-hosted one.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Cap&lt;/th&gt;
&lt;th&gt;Right article in top 1&lt;/th&gt;
&lt;th&gt;Top 3&lt;/th&gt;
&lt;th&gt;Top 5&lt;/th&gt;
&lt;th&gt;Chunks from it in top 5 (avg)&lt;/th&gt;
&lt;th&gt;Different articles in top 5 (avg)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;3.17&lt;/td&gt;
&lt;td&gt;2.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.92&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;td&gt;5.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.92&lt;/td&gt;
&lt;td&gt;1.75&lt;/td&gt;
&lt;td&gt;3.42&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;2.42&lt;/td&gt;
&lt;td&gt;2.75&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Cap 1 pulls both misses into the top five, and the managed question into the top three. Cap 2 gets the managed question to fifth place and leaves the agent question sixth, so it rescues one of the two. At cap 3 neither makes the top five, and the hit rates match having no cap at all. Meanwhile the depth cost keeps coming. Cap 3 hands back 2.42 chunks from the right article instead of 3.17, which is about three quarters of the depth, in exchange for no change in hit rates on these questions. By that point the cap is only trading depth for variety.&lt;/p&gt;

&lt;p&gt;Variety is the other thing the table shows. With no cap, the top five chunks come from only two different articles on average. A cap of one forces five. The settings in between land where you'd expect.&lt;/p&gt;

&lt;p&gt;No setting fixed the misses. Neither question reached first place at any cap. The cap only decides which articles share the list, and it does nothing about why the managed question lost in the first place, which Entry 18 traced to a winning chunk that matched the question's wording rather than its intent.&lt;/p&gt;

&lt;p&gt;Entry 18 also left a worry open: that the series' own entries about MCP, n8n and RAG were crowding slots two through five. They weren't. Across the twelve questions that have real answers, no top five contained a chunk from one of them without a cap. One appeared under cap 1, in one question, and I haven't checked which. The entries that won the controls in Entry 18 didn't show up for questions with real answers.&lt;/p&gt;

&lt;p&gt;This is a small set. Twelve questions means one question moves a score by eight points, two of them drive every difference above, and one of those two, the agent question, may not be a miss at all. Cap 2's single gain is one question moving from seventh place to fifth, which isn't enough to call it better than no cap.&lt;/p&gt;

&lt;p&gt;So the cap works as a dial between depth and variety, and in this data it pays off only at the tight end and only for questions that were already missing. If a person is reading five sources, cap 1 was the only setting that did much. If a model is reading five chunks to write an answer, cap 1 hands it a single chunk from the right article. The thing none of these settings changes is the ranking itself, and the next test is probably there: re-scoring the top twenty before filtering. A 1B model as a re-ranker is a risky bet after Entry 13, so I'd treat it as an experiment, not an expectation.&lt;/p&gt;

</description>
      <category>ollama</category>
      <category>rag</category>
      <category>embeddings</category>
      <category>chromadb</category>
    </item>
    <item>
      <title>Re-Ranking the Top 20 With Local Models: Only the 12B Fixed the Miss, and It Demoted Two Right Answers</title>
      <dc:creator>Nerav Doshi</dc:creator>
      <pubDate>Wed, 18 Nov 2026 12:34:53 +0000</pubDate>
      <link>https://dev.to/agenticdevops/re-ranking-the-top-20-with-local-models-only-the-12b-fixed-the-miss-and-it-demoted-two-right-32ko</link>
      <guid>https://dev.to/agenticdevops/re-ranking-the-top-20-with-local-models-only-the-12b-fixed-the-miss-and-it-demoted-two-right-32ko</guid>
      <description>&lt;p&gt;Entries 17 and 19 filtered the ranking the embedding search produced. The cap decides which chunks to hide, and it can't change why the managed-versus-self-hosted question lost in the first place. This entry changes the ranking itself: take the top 20 chunks for each question, ask a local model to rate each one from 0 to 10 for how well it answers the question, re-sort by that rating, then run the same cap sweep on the new order. Ties keep their original embedding order, and chunks 21 and beyond stay below.&lt;/p&gt;

&lt;p&gt;I ran three scorers: &lt;code&gt;llama3.2:1b&lt;/code&gt;, &lt;code&gt;llama3.2:3b&lt;/code&gt; and &lt;code&gt;gemma3:12b&lt;/code&gt;, each twice per question at temperature 0. That's 12 questions × 20 chunks × 2 runs, or 480 scoring calls per model. The labels are the same strict ones from Entry 18. A question can now list a second acceptable article, but I haven't decided which ones, so none were added. That matters for what follows.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;~/mcp-env/bin/python3 eval_rerank.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Eight of the twelve questions had the right article first in every column, so only the four that moved are worth showing:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;Embedding only&lt;/th&gt;
&lt;th&gt;1B&lt;/th&gt;
&lt;th&gt;3B&lt;/th&gt;
&lt;th&gt;12B&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;6, switch LLM providers&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7, AI agent reading the cluster&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10, incident triage with a workflow tool&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12, managed or self-hosted&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setting&lt;/th&gt;
&lt;th&gt;Cap&lt;/th&gt;
&lt;th&gt;Top 1&lt;/th&gt;
&lt;th&gt;Top 3&lt;/th&gt;
&lt;th&gt;Top 5&lt;/th&gt;
&lt;th&gt;Chunks from right article in top 5&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;embedding only&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;3.17&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;embedding only&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.92&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1B&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.92&lt;/td&gt;
&lt;td&gt;3.33&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1B&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.92&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3B&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;0.75&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;3.50&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3B&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;0.75&lt;/td&gt;
&lt;td&gt;0.92&lt;/td&gt;
&lt;td&gt;0.92&lt;/td&gt;
&lt;td&gt;0.92&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12B&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;0.75&lt;/td&gt;
&lt;td&gt;0.92&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;td&gt;3.58&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12B&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;0.75&lt;/td&gt;
&lt;td&gt;0.92&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The 12B repaired the clear miss. For the managed-or-self-hosted question it rated a chunk of the managed-vs-self-hosted article an 8, ahead of the Kubernetes-at-scale explainer at 7, and moved the article from seventh to first. That's a one-point margin on a ten-point scale, so I wouldn't lean on it. With no cap it also put all twelve right articles in the top five while handing back 3.58 chunks from the right article on average. None of Entry 19's cap settings reached 1.00 in the top five and kept more than one chunk of depth, so on these twelve questions this is the first setup that did both.&lt;/p&gt;

&lt;p&gt;It also lost ground at the top. Two questions the embedding search got right fell to second place, which is why top-1 drops from 0.83 to 0.75. The printed top three for question 6 shows why: the winner, a prompt-versioning chunk, scored 9, and two chunks of the labeled article scored 9 as well. Ordering among tied scores comes from my tie-break by embedding rank, so the scorer didn't prefer the other article. My tie-break put it first. Question 10 follows the same pattern at 7. A 0-to-10 integer scale produces ties at the top of a list like this constantly, so part of the damage is the scale and the tie-break, not the 12B's judgment. I haven't tested a finer scale or a smarter tie-break.&lt;/p&gt;

&lt;p&gt;The 3B scored below the no-re-ranking baseline on top-1 and on mean reciprocal rank (0.81 against 0.86), even though its depth went up. It lost question 6 the same way, pushed the agent question from eighth to ninth, and left the managed question at seventh, with Kubernetes-at-scale chunks rated 8 at the top of its list. That's the same article the embedding search picked, so it repeated that mistake where the 12B didn't. The 1B barely changed anything: top-1 unchanged, top-5 up by one question because the agent question moved from eighth to fifth. Its top picks for the two misses were rated 2 out of 10, four of its 480 replies weren't numbers, and on one question it gave all twenty chunks the same score, so I wouldn't read that move as skill.&lt;/p&gt;

&lt;p&gt;Entry 13 worried that a 1B model gives different answers to the same prompt. Here all three models produced identical top-five lists across both runs for all twelve questions. That doesn't clear the 1B in general, because Entry 13 used default settings and I set temperature to 0. It only shows that temperature 0 makes this setup repeatable.&lt;/p&gt;

&lt;p&gt;Re-ranking added nothing once a cap was applied. The 12B at cap 1 matches the embedding-only cap-1 row on top-3 and top-5 and is worse on top-1. Its value is in the no-cap case, where it keeps the depth.&lt;/p&gt;

&lt;p&gt;Some limits on all of this. Twelve questions means one question is eight points, so ten right versus nine right is a one-question difference. The labels are strict and mine, and "chunks from the right article" counts chunks without checking that each one is useful. And I haven't measured cost: every question now needs 20 calls to the scorer, and the 12B is an 8 GB model. The script doesn't time anything.&lt;/p&gt;

&lt;p&gt;The first thing in this series that changed the ranking, not just the list, gave a mixed answer, and the answer depended heavily on the scorer's size. The 12B fixed the one clear miss and improved depth and top-five together, at the price of top-one accuracy through ties. The 3B scored below the baseline on top-1, and the 1B barely moved anything. The next questions are whether tie handling closes the two demotions, whether the 12B's advantage holds on questions outside these twelve, and whether 20 calls to an 8 GB model per query is a price worth paying.&lt;/p&gt;

</description>
      <category>ollama</category>
      <category>rag</category>
      <category>reranking</category>
      <category>evaluation</category>
    </item>
    <item>
      <title>IAM and Identity Across Clouds: Why Permissions Take Longer Than the Install</title>
      <dc:creator>Nerav Doshi</dc:creator>
      <pubDate>Thu, 22 Oct 2026 19:57:16 +0000</pubDate>
      <link>https://dev.to/agenticdevops/iam-and-identity-across-clouds-why-permissions-take-longer-than-the-install-35oc</link>
      <guid>https://dev.to/agenticdevops/iam-and-identity-across-clouds-why-permissions-take-longer-than-the-install-35oc</guid>
      <description>&lt;p&gt;&lt;em&gt;Pipeline &amp;amp; Prompts | Byte size guides on DevOps, Cloud and AI&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DevOps from Zero #12&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;⚡ Byte Size Summary&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tell the difference between authentication (who is this?) and authorization (what can it do?) on AWS, Azure and GCP&lt;/li&gt;
&lt;li&gt;Map the same idea to each cloud's vocabulary: IAM roles, managed identities and role assignments, service accounts and IAM bindings&lt;/li&gt;
&lt;li&gt;Add an identity pre-check to your runbook so approvals stop blocking installs&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  The Story
&lt;/h2&gt;

&lt;p&gt;A ROSA install cannot start until the customer has accepted the terms and activated the ROSA listing on the AWS Marketplace. That part takes minutes. The part after it is where the time goes.&lt;/p&gt;

&lt;p&gt;ROSA installs with an STS-based installer role. That role carries an elevated trust policy, so the customer's cloud security team has to review it before anyone creates it. On the engagements I worked, that review took 3 to 5 days. One customer took almost 2 weeks. Once a customer decided to proceed, the average was about 1 week from the start of the security review.&lt;/p&gt;

&lt;p&gt;Nothing about the cluster was waiting. The team was waiting on a permission.&lt;/p&gt;

&lt;p&gt;We fixed it with a runbook change, not a technical one. Identity and permissions approval became a required pre-check item. If the pre-check was not complete, the install did not start. The pre-check is a set of provider-specific scripts and CLI commands that inspect the target account or subscription for problems before anything gets provisioned.&lt;/p&gt;

&lt;p&gt;I am telling you this in an identity article because it is the most common reason cloud projects stall, and it is rarely a technical reason.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Every cloud has to answer two questions every time something makes a request:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Authentication:&lt;/strong&gt; who is making this request?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Authorization:&lt;/strong&gt; is that identity allowed to do this specific thing?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Beginners collapse these into one. They give a workload an identity, attach a role, and assume it can now reach everything it needs. Then the request fails with an access denied error, and they cannot tell which half is broken.&lt;/p&gt;

&lt;p&gt;This happens on AWS, Azure and GCP. The names differ. The mistake does not.&lt;/p&gt;

&lt;p&gt;The second problem is time. New cluster installs and new customer onboardings need elevated permissions: AWS service control policies (SCPs) that allow the install, and the equivalent on Azure and GCP through managed identities or service accounts. Those permissions need approval, and approval has a queue.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Existing Approaches Fall Short
&lt;/h2&gt;

&lt;p&gt;The usual fix for a permissions error is to grant broader access until it works. An administrator-level role makes the error disappear. It also removes the review that the security team was about to do, and nobody can later explain why that identity needs that much.&lt;/p&gt;

&lt;p&gt;The usual fix for the delay is to ask earlier, informally. That works until the person who remembers to ask is on holiday. A request that lives in someone's head is the same tribal-knowledge problem we covered in the Infrastructure as Code article, applied to permissions.&lt;/p&gt;

&lt;p&gt;Neither approach is repeatable. Both lead to the same outcome: an install that starts, then stops.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Architecture
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fpipelineandprompts.com%2Fimages%2Fdiagrams%2Fiam-and-identity-across-clouds-architecture.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fpipelineandprompts.com%2Fimages%2Fdiagrams%2Fiam-and-identity-across-clouds-architecture.png" alt="Architecture Diagram" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The diagram shows the same three-step chain on each cloud: an identity, a grant that connects it to a role or permission set, and the resource it wants to reach. It marks the one place the chain breaks: the identity authenticates successfully, but no grant exists for the target resource.&lt;/p&gt;

&lt;p&gt;That break point is the design lesson. A successful login proves nothing about permissions.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Concept&lt;/th&gt;
&lt;th&gt;AWS&lt;/th&gt;
&lt;th&gt;Azure&lt;/th&gt;
&lt;th&gt;GCP&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;The identity&lt;/td&gt;
&lt;td&gt;IAM role or user&lt;/td&gt;
&lt;td&gt;Managed identity or service principal&lt;/td&gt;
&lt;td&gt;Service account&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The permissions&lt;/td&gt;
&lt;td&gt;IAM policy&lt;/td&gt;
&lt;td&gt;Role definition&lt;/td&gt;
&lt;td&gt;IAM role&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The grant&lt;/td&gt;
&lt;td&gt;Policy attached to the role&lt;/td&gt;
&lt;td&gt;Role assignment at a scope&lt;/td&gt;
&lt;td&gt;IAM binding on a project or resource&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  How It Works: Step by Step
&lt;/h2&gt;

&lt;p&gt;You can separate the two questions with commands. The first command on each cloud answers &lt;em&gt;who am I&lt;/em&gt;. The second answers &lt;em&gt;what can I do&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Check who you are authenticated as&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# AWS&lt;/span&gt;
aws sts get-caller-identity

&lt;span class="c"&gt;# Azure&lt;/span&gt;
az account show

&lt;span class="c"&gt;# GCP&lt;/span&gt;
gcloud auth list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Check what that identity is allowed to do&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# AWS: simulate whether a role may perform a specific action&lt;/span&gt;
aws iam simulate-principal-policy &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--policy-source-arn&lt;/span&gt; &amp;lt;role-arn&amp;gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--action-names&lt;/span&gt; s3:GetObject

&lt;span class="c"&gt;# Azure: list role assignments for an identity&lt;/span&gt;
az role assignment list &lt;span class="nt"&gt;--assignee&lt;/span&gt; &amp;lt;principal-id&amp;gt; &lt;span class="nt"&gt;--all&lt;/span&gt;

&lt;span class="c"&gt;# GCP: show which members hold which roles on a project&lt;/span&gt;
gcloud projects get-iam-policy &amp;lt;project-id&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If step 1 succeeds and step 2 shows no matching grant, you have found the authentication-versus-authorization gap.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Put the check in the runbook&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For ROSA, the pre-check also covers the account-level prerequisites before the install begins.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# [AUTHOR TO VALIDATE] — insert the pre-check script / CLI commands used in the standard runbook&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The rule that mattered more than the script: the install does not start until the identity approval line is checked.&lt;/p&gt;




&lt;h2&gt;
  
  
  Security and Operational Considerations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Scope grants narrowly.&lt;/strong&gt; On Azure, a role assignment at subscription scope reaches everything below it. Assign at the resource group or resource when you can.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prefer attached identities over stored keys.&lt;/strong&gt; Roles, managed identities and service accounts attached to a workload avoid long-lived credentials sitting in a repo or an environment variable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Do not skip the review to save the week.&lt;/strong&gt; The elevated trust policy on an installer role is the reason the review exists. Shorten the wait by asking earlier, not by granting more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rollback.&lt;/strong&gt; Identity changes are easy to add and easy to forget. Record every role and policy you create for an install so you can remove them when the cluster goes away.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  What Breaks at Scale
&lt;/h2&gt;

&lt;p&gt;One account is manageable. Twenty accounts, subscriptions and projects are not, because the approval queue repeats per environment and manual grants drift apart. Three clouds also means three vocabularies for the same ideas, so a team fluent in IAM roles still has to relearn managed identities and service accounts.&lt;/p&gt;

&lt;p&gt;The pre-check scales better than memory does. Each new environment runs the same list.&lt;/p&gt;




&lt;h2&gt;
  
  
  Quick Recap
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Authentication and authorization are separate&lt;/strong&gt; — a working identity does not mean a permitted action&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The same chain exists on every cloud&lt;/strong&gt; — identity, grant, resource; only the names change&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Approval time is the real blocker&lt;/strong&gt; — 3 to 5 days typical, almost 2 weeks at worst for the ROSA installer role&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make approval a pre-check&lt;/strong&gt; — if it is not complete, the install does not start&lt;/li&gt;
&lt;/ul&gt;




</description>
      <category>iam</category>
      <category>aws</category>
      <category>azure</category>
      <category>devops</category>
    </item>
    <item>
      <title>Scored the Index Against Known Answers: 10 of 12, and What the Cap Really Costs</title>
      <dc:creator>Nerav Doshi</dc:creator>
      <pubDate>Wed, 21 Oct 2026 15:34:47 +0000</pubDate>
      <link>https://dev.to/agenticdevops/scored-the-index-against-known-answers-10-of-12-and-what-the-cap-really-costs-138m</link>
      <guid>https://dev.to/agenticdevops/scored-the-index-against-known-answers-10-of-12-and-what-the-cap-really-costs-138m</guid>
      <description>&lt;p&gt;Entry 17 ended on a problem I'd made for myself: I'd been judging rankings with nothing to check them against. This entry fixes that, at least a little. Twelve questions, each with one article that should answer it, plus two controls where the collection has no answer. I labeled each right article from the filenames and the descriptions in the repo index, not by rereading the articles, so the labels are my best read, not verified ground truth.&lt;/p&gt;

&lt;p&gt;The script asks each question against all 741 chunks, finds the right article's best-scoring chunk, and ranks it two ways: among all chunks (what an uncapped query returns) and among distinct articles (what Entry 17's cap of one per document returns). It also counts how many of the top five chunks come from the right article. That last column matters more than it sounds. A cap can only move the right article up, because it removes chunks that sat above it, so document-level hit rates will always flatter the cap. What the cap costs is extra chunks from the right article, and only the chunk count shows that.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 eval_retrieval.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#   doc_rank  chunk_rank  exp_in_top5  top1
1   1         1           5            retry-logic-and-tiered-alerting-github-actions.md
2   1         1           4            secrets-management-multi-cloud-pipelines.md
3   1         1           4            terraform-managed-openshift-state.md
4   1         1           5            database-migrations-zero-downtime-deploys.md
5   1         1           2            prompt-versioning-ci-openshift.md
6   1         1           3            swapping-llm-providers-without-rewriting-stack.md
7   5         8           0            ai-tooling-openshift-evaluation-framework.md
8   1         1           4            pitw-01-zero-downtime-deployments.md
9   1         1           5            ai-in-the-stack-02-rag-runbooks.md
10  1         1           3            ai-in-the-stack-06-n8n-workflows.md
11  1         1           3            what-are-containers.md
12  3         7           0            kubernetes-at-scale.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ten of twelve questions put the right article first, both ways. After four entries of staring at rankings I couldn't judge, that was the first real evidence the index mostly works.&lt;/p&gt;

&lt;p&gt;The two misses both lost to broader articles. "How can an AI agent safely read from my Kubernetes cluster?" went to the AI tooling evaluation framework, with the MCP architecture article fifth among articles and eighth among chunks. "Should I run managed or self-hosted Kubernetes?" went to the Kubernetes-at-scale piece, with the managed-vs-self-hosted article third and seventh. So I printed the chunk that won each one. For the agent question, the winner (distance 246.5) comes from the framework's prerequisites section and says that any AI tool touching a cluster operates within or around OpenShift's security constraints and RBAC. That's on topic. It reads more like a second defensible answer than a retrieval error, and my label may simply have been too narrow. For the managed question, the winner (235.4) is a section of the Kubernetes explainer on the managed platforms you'll encounter, which says nobody runs Kubernetes completely from scratch in production. It matches the words "managed Kubernetes" but describes platforms rather than weighing managed against self-hosted, so that one looks like a real miss. In both cases I've read only the winning chunk, not the articles.&lt;/p&gt;

&lt;p&gt;I'm keeping the original labels and the 10-of-12 figure. Relabeling the agent question now would raise the score based on what I saw, not on what I measured.&lt;/p&gt;

&lt;p&gt;One worry going in was that the series' own entries about MCP, n8n and RAG, embedded in the same index, would outrank the real articles. At the top spot, none did, zero of twelve. The check only looks at first place, so they may still be crowding slots two through five. I haven't looked.&lt;/p&gt;

&lt;p&gt;Now the cap, with the numbers to judge it:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Uncapped (by chunk)&lt;/th&gt;
&lt;th&gt;Capped at 1 per article&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Right article at #1&lt;/td&gt;
&lt;td&gt;10 of 12&lt;/td&gt;
&lt;td&gt;10 of 12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Right article in top 3&lt;/td&gt;
&lt;td&gt;10 of 12&lt;/td&gt;
&lt;td&gt;11 of 12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Right article in top 5&lt;/td&gt;
&lt;td&gt;10 of 12&lt;/td&gt;
&lt;td&gt;12 of 12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Chunks from the right article in the top 5 (average)&lt;/td&gt;
&lt;td&gt;3.17&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The capped 1.00 follows from how the cap works: all twelve right articles land in the top five articles, and each can appear only once. Neither miss reached first place even with the cap, so it did nothing for the top result. What it did was pull the right article into a short list for the two questions that missed, which is where the top-3 and top-5 gains come from.&lt;/p&gt;

&lt;p&gt;The cost shows in the last row. For the ten questions that worked, the uncapped top five held 3.8 chunks from the right article on average. Under the cap that drops to one. If what you want is a list of sources, the cap pulled the labeled article into view for both misses, though only one of them looks like a clear miss. If what you want is passages to hand a model, it would have discarded roughly three of every four chunks from the right article on the questions that were already working.&lt;/p&gt;

&lt;p&gt;The controls behaved the way Entries 15 and 17 would predict. "How do I check pod status with oc?" returned Entry 08 at 225.6, and "What's the best pizza topping?" returned Entry 06, the entry that contains that exact question, at 448.4. Both nearest matches are write-ups that quote the query. And 225.6 looks like a very strong match for a question the collection doesn't answer, so a distance cutoff alone wouldn't have flagged it as "not in here."&lt;/p&gt;

&lt;p&gt;Twelve questions is a small set. Each one moves a percentage by eight points, this was a single run, and the question wording and the labels are mine. Treat the 83% as a rough reading, not a benchmark.&lt;/p&gt;

&lt;p&gt;This answers the question Entry 17 left open, narrowly: the cap is a trade, not a fix. It earns its place when the right article only needs to show up in a short list, and it costs a lot when the consumer needs depth. I haven't tested the middle, a cap of two or three per article, and with this eval set I now can. Before I do, I need to settle whether a question can have more than one acceptable article, and I want that decided by reading the articles, not by checking which labels would raise the score.&lt;/p&gt;

</description>
      <category>ollama</category>
      <category>rag</category>
      <category>embeddings</category>
      <category>chromadb</category>
    </item>
    <item>
      <title>Tested a Per-Document Cap at Real Scale — and Found I Had No Ground Truth</title>
      <dc:creator>Nerav Doshi</dc:creator>
      <pubDate>Thu, 15 Oct 2026 22:40:55 +0000</pubDate>
      <link>https://dev.to/agenticdevops/tested-a-per-document-cap-at-real-scale-and-found-i-had-no-ground-truth-bf2</link>
      <guid>https://dev.to/agenticdevops/tested-a-per-document-cap-at-real-scale-and-found-i-had-no-ground-truth-bf2</guid>
      <description>&lt;p&gt;Entry 07 ended on a loose thread: a document split into 17 chunks crowds out equally relevant single-entry documents, just by having more shots at ranking. The usual fix is a per-document cap, so I flagged it and moved on. Now that the collection holds 741 real chunks instead of 20, it was time to find out whether the problem was real at this size, and whether the fix worked.&lt;/p&gt;

&lt;p&gt;Measured first, before touching anything. Same question as Entries 06 and 15, ten results, no cap:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;q&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ollama&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;embeddings&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"nomic-embed-text"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;prompt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"how do I check pod status with oc"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;collection&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;query_embeddings&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;q&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"embedding"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n_results&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;231.1  08-mcp-server-claude-code_chunk2
320.0  15-sse-reconnect-distance-instability_chunk1
325.4  mcp-server-architecture-platform-engineering-kubernetes_chunk12
328.6  13-hand-rolled-agent-loop_chunk2
334.6  mcp-server-architecture-platform-engineering-kubernetes_chunk19
344.5  13-hand-rolled-agent-loop_chunk4
347.5  13-hand-rolled-agent-loop_chunk3
350.6  mcp-server-architecture-platform-engineering-kubernetes_chunk16
353.3  mcp-server-architecture-platform-engineering-kubernetes_chunk13
357.4  08-mcp-server-claude-code_chunk1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Four documents fill all ten slots: four chunks from the MCP architecture article, three from Entry 13, two from Entry 08, one from Entry 15. That looks like the bias I expected, until you check which documents are missing. The three longest articles in the collection (the retry-logic piece and the Terraform state piece at 38 chunks each, the zero-downtime deploy piece at 37) don't appear at all. The winners are the topically closest documents, not the longest. Several chunks of one on-topic article can all be legitimately relevant, so some of this clustering isn't bias.&lt;/p&gt;

&lt;p&gt;The top hit also looked too good. 231.1 is 89 points ahead of the runner-up, and when I printed the chunk, it was Entry 08's own quote of Claude Code's answer, including the phrase "checking pod status with oc". The index was retrieving the write-up of this exact question. That's a side effect of embedding the series' own entries into the store, and it fits the lexical-overlap suspicion from Entry 13: near-verbatim wording scores far better than anything merely related.&lt;/p&gt;

&lt;p&gt;Then the cap. Fetch forty results, keep only the best chunk per source document, take the top ten:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;raw&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;collection&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;query_embeddings&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;q&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"embedding"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n_results&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;seen&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;kept&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;doc_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dist&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;meta&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;zip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;raw&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"ids"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"distances"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"metadatas"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;meta&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;seen&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;seen&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;meta&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;kept&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dist&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;doc_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;kept&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;break&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The top four were unchanged, since they were already four different documents. Slots five through ten changed completely:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Uncapped, slots 5-10&lt;/th&gt;
&lt;th&gt;Capped, slots 5-10&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What fills them&lt;/td&gt;
&lt;td&gt;More chunks of the MCP architecture article, Entry 13 and Entry 08&lt;/td&gt;
&lt;td&gt;One chunk each from the chunking entry, secrets management, RAG runbooks, provider swapping, zero-downtime deploys, prompt versioning&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Distance range&lt;/td&gt;
&lt;td&gt;334.6 to 357.4&lt;/td&gt;
&lt;td&gt;360.8 to 381.5&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The cap removed extra chunks from articles that really are about Kubernetes diagnostics over MCP and replaced them with chunks from documents that look unrelated, judging by title and by distance. At this scale it traded relevant results for variety.&lt;/p&gt;

&lt;p&gt;I had also been treating one result as the real test. Entry 02 was the top hit in Entries 06, 07, 13 and 15, and it vanished from the top ten here, capped or not, so I assumed the cap should bring it back. It didn't. Querying the whole collection instead of the top ten, and printing the rank of every Entry 02 chunk, shows where it went:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;everything&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;collection&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;query_embeddings&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;q&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"embedding"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n_results&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;collection&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;rank&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;doc_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dist&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;enumerate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;zip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;everything&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"ids"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;everything&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"distances"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;doc_id&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startswith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"02-"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rank&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dist&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;doc_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;52   415.9  02-oc-cli-mentor-system-prompt_chunk1
73   423.6  02-oc-cli-mentor-system-prompt_chunk2
77   424.1  02-oc-cli-mentor-system-prompt_chunk0
137  441.4  02-oc-cli-mentor-system-prompt_chunk3
683  555.5  02-oc-cli-mentor-system-prompt_chunk4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Its best chunk scores 415.9, lower (better) than the 437.7 it scored when it ranked first among 45 entries. The document didn't get worse. Fifty other chunks now sit ahead of it, in a crowded middle where roughly forty chunks fall inside a band about 58 points wide. Entry 15 found that rewording one query moved a distance by 54 points, so that whole band could reshuffle under a different phrasing. I haven't tested that, but the numbers point that way.&lt;/p&gt;

&lt;p&gt;The more important realization is that Entry 02 was never a correct answer. It's about system prompts, not pod-status commands, and Claude Code said so back in Entry 08. This query probably has no right answer anywhere in the collection, which means I was judging a ranking with nothing to check it against. Whether the cap "worked" isn't a question I can answer from this data.&lt;/p&gt;

&lt;p&gt;So the finding isn't about the cap. The cap changes results, and at this size it costs relevant ones, but I can't call that good or bad without a question where I already know which document should win. The next entry builds that: a small set of questions, each with a known right document, checked by hand. Until then, treat every ranking in this series as a description of what the index returns, not evidence of what it should return.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Correction (Nov 18, 2026): Entry 02's 437.7 came from Entries 06 and 07, when the store held 3 and then 20 entries, not 45. Re-running the full-collection ranking above on Nov 18, 2026 gave the same ranks within one place (137 became 138) and distances within 0.1.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ollama</category>
      <category>rag</category>
      <category>embeddings</category>
      <category>chromadb</category>
    </item>
    <item>
      <title>Grew the Collection from 5 Entries to 741 Real Chunks</title>
      <dc:creator>Nerav Doshi</dc:creator>
      <pubDate>Thu, 08 Oct 2026 15:10:28 +0000</pubDate>
      <link>https://dev.to/agenticdevops/grew-the-collection-from-5-entries-to-741-real-chunks-115m</link>
      <guid>https://dev.to/agenticdevops/grew-the-collection-from-5-entries-to-741-real-chunks-115m</guid>
      <description>&lt;p&gt;Every retrieval test since Entry 05 has run against the same handful of entries — three documents in Entries 05-06, twenty after Entry 07's chunking. Realistic enough to prove the mechanics work, not realistic enough to trust the actual rankings. Growing this into something closer to the real published catalog was overdue, and getting there cleanly took two wrong turns first.&lt;/p&gt;

&lt;p&gt;First attempt pointed the bulk-embed script at what looked like the right content folder and got back three files that were in Repo scaffolding, not articles — the real posts weren't there at all. Hugo commonly organizes content as page bundles, each article living in its own subfolder as &lt;code&gt;&amp;lt;slug&amp;gt;/index.md&lt;/code&gt;, and the script's flat &lt;code&gt;glob("*.md")&lt;/code&gt; only looked one level deep. Fixed by pointing at the actual posts directory directly rather than guessing at folder depth.&lt;/p&gt;

&lt;p&gt;Second run picked up all 45 real files — the 15 "Today I Ran" entries plus 30 other published articles — and embedded 741 chunks. Looked like a clean win. It wasn't, quite: the first run's three junk files were still sitting in the collection, uncleaned, and worse, the 15 "Today I Ran" entries that were already in the store from Entries 05-06 got re-embedded under a &lt;em&gt;different&lt;/em&gt; ID scheme than before. The original pipeline stored single-chunk files under their plain filename (&lt;code&gt;02-oc-cli-mentor-system-prompt.md&lt;/code&gt;); this script's chunking always appends &lt;code&gt;_chunk0&lt;/code&gt;, &lt;code&gt;_chunk1&lt;/code&gt;, even for short files. Same content, two ID formats, both present at once — a self-inflicted version of the exact cross-document ranking bias Entry 07 found by accident with a real multi-chunk document.&lt;/p&gt;

&lt;p&gt;Rather than hand-picking which of ~766 entries to delete, wiped the whole collection and rebuilt from nothing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;chromadb&lt;/span&gt;
&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;chromadb&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PersistentClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"./chroma_db"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;delete_collection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"today_i_ran_notes"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then re-ran the bulk script fresh, from &lt;code&gt;~/Downloads&lt;/code&gt; so it finds &lt;code&gt;./chroma_db&lt;/code&gt;. The script is &lt;code&gt;bulk_embed_catalog.py&lt;/code&gt;, and a later copy is in the site repo under &lt;code&gt;scripts/labs/&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 bulk_embed_catalog.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Clean this time:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Files found:      45
Files processed:  45
Files failed:     0
Chunks embedded:  741
Collection size:  0 -&amp;gt; 741
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No duplicates, no scaffolding files, consistent chunking and ID scheme across every document. From 5 test entries to 741 real chunks drawn from the actual catalog, in one clean pass.&lt;/p&gt;

&lt;p&gt;One thing to flag before the next test: this collection now includes the "Today I Ran" series' own back catalog — Entries 01 through 15 — alongside everything else. The index can now retrieve passages from its own past entries about building the index. Querying this store about chunking bias will likely surface Entry 07, which is the entry that discovered chunking bias, embedded into the very store that bias affects. Recursive in a way that's more interesting than useful, but worth noting before the next retrieval test runs against this and something from the series' own history shows up as the top result.&lt;/p&gt;

&lt;p&gt;The real payoff of this entry isn't the number 741 — it's that every retrieval test from here forward is running against something that resembles the actual size and shape of a real knowledge base, instead of a handful of hand-picked documents chosen to make a specific point work. Entry 07's chunking-bias fix (the per-document result cap flagged back then, still not built) matters a lot more now than it did against 20 entries.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Correction (Nov 18, 2026): the store didn't hold the 15 Today I Ran entries before this run. What Entries 05–07 had put there was Entry 02's file (stored as &lt;code&gt;02-oc-cli-mentor-system-prompt.md&lt;/code&gt;), a copy of Entry 03 fetched from its URL (&lt;code&gt;posts_03-1b-vs-3b-memory-comparison&lt;/code&gt;), the truncated draft (&lt;code&gt;cloud-without-chaos-01.md&lt;/code&gt;), and the 17 chunks of the managed-vs-self-hosted article. The bulk script names chunks &lt;code&gt;&amp;lt;file&amp;gt;_chunkN&lt;/code&gt;, so Entries 02 and 03 ended up in the collection twice under two ID formats. The draft, which isn't in the posts folder, sat there as a leftover. Wiping and rebuilding was still the right fix, and the 741-chunk result is unchanged.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ollama</category>
      <category>rag</category>
      <category>embeddings</category>
      <category>chromadb</category>
    </item>
  </channel>
</rss>
