Search Results for:

Context compaction silently reordered my retrieved chunks — an ordering checklist for RAG builders

Context compaction silently reordered my retrieved chunks — an ordering checklist for RAG builders
I had a RAG pipeline on top of a 90-page contract. Converted with the doc-to-markdown endpoint, chunked by section, retrieved top-5 by cosine, concatenated into the context window. Answers looked fine for a week, then a reviewer caught that my agent was citing terms in an order that contradicted the document. Not hallucination — the model was being honest about what it received. The bug: my context compaction step was sorting chunks by relevance score before sending them to the model. The retriever returned them in document order, compaction reshuffled them to maximize signal near the start, and any clause that referenced "as defined in Section 4" suddenly had its referent land after the dependent clause. Models handle that fine when it's obvious; in dense legal text it was not obvious. Three things I now check before compaction: 1. Is the original document order semantically load-bearing? For most long docs the answer is yes — cross-references, numbered steps, versio...

Warren Buffett Leaves a Tech Investing Legacy

Warren Buffett Leaves a Tech Investing Legacy
The man who famously avoided tech for decades ended up making one of the greatest tech investments in history. Warren Buffett, who died Tuesday at 96, spent most of his career proudly telling people he didn't understand technology companies. Then he bought Apple, and it became the defining position of his portfolio. I never fully bought the "old man doesn't get tech" framing. It was always more complicated than that. Buffett did invest in IBM. He just couldn't make it work the way he wanted, and he said so publicly. When he finally found a tech company he could wrap his head around, he didn't dabble. He went all in. His death closes a chapter that a lot of us in tech have complicated feelings about. Buffett represented a kind of investing that treated software companies as black boxes you couldn't value. He wasn't wrong about most of them. The question is whether the Apple bet was genius or just the one time the black box had a logo he recogni...

Granite Docling V2: the 95.8 vs 96.5 discrepancy on one IBM page, on video

Granite Docling V2: the 95.8 vs 96.5 discrepancy on one IBM page, on video
Granite Docling V2 showed up with two different numbers on IBM's own materials — 95.8 in one evaluation block and 96.5 in another — and both trace back to the same underlying test set. People were quoting whichever figure fit their narrative, so I stopped arguing in threads and filmed the page walk-through instead. The part worth explaining is the table reconstruction step. V2 doesn't just OCR cell text; it re-derives the merged-cell grid from span hints in the extraction layer, then re-attaches vertical and horizontal boundaries that earlier versions dropped. That single change is where most of the score difference comes from, and I frame-by-frame it against a four-column financial table that breaks v1.4. The cost to the operator is honest: the full 400-page eval regenerates from scratch, and on a 2x A100 box it runs roughly twelve hours end to end, with about 30 GB of intermediate extraction artifacts written to disk before the final Markdown is produced. If you skip the a...

Amazon Ergo Builds a Projectile Simulator From a Lab Handout

Amazon Ergo Builds a Projectile Simulator From a Lab Handout
I keep seeing 55B models pitched as desktop-friendly, but "by 2028" is doing a lot of work. A held-out code loss of 0.156 is a real number, not a vibe, and it's the part I'd actually track. The same week, I ran across a teacher's lab handout and email that Ergo turned into a single-file projectile simulation. Sliders for launch speed, angle, drag coefficient, ball mass; trajectories with and without drag on one plot; range, max height, flight time for both. That's not flashy frontier model work, but it's the kind of messy, useful build that shows where tools actually get used. Then there's the chart: bars from 0 to 80, with "#" marking Ergo's rank among the models shown. I don't love rankings without context, but I do like knowing whether a "fast, cost-effective frontier open-weights model for software engineering and agentic workflows" is actually fast or just cheap. The question is whether Ergo's spot on that ...

Advent of Code 2026: 25 Puzzles, One Author

Advent of Code 2026: 25 Puzzles, One Author
One person writes 25 puzzles a year. Somehow, that's become the most anticipated event in the developer calendar. I've seen people set alarms for it, organize office Slack channels around it, and treat a midnight problem release like a midnight game drop. And then there's the sponsor list, which includes Jane Street, a global trading firm that uses machine learning, statistics, distributed systems, and programmable hardware to trade markets worldwide. That juxtaposition is part of the fun. The strange part is that Advent of Code isn't really a platform. It's a calendar, a puzzle feed, and a very large group of people agreeing to be confused together. I keep wondering what happens when the thing that made it special starts to scale. What Advent of Code Actually Is Advent of Code is a series of 25 programming puzzles released daily from December 1 through December 25, with each day split into two parts. Eric Wastl created it and still runs it solo, and it...

Juicy Grilled Steak Kebabs (Overnight Marinade)

Juicy Grilled Steak Kebabs (Overnight Marinade)
Grilled Steak Kebabs Prep: 480 mins | Cook: 10 mins | Total: 490 mins | Serves: ['8', '8 skewers'] | Cuisine: American, Russian, Ukrainian Grilled Steak Kebabs bring together beef tri tip or petite sirloin, thick zucchini rings, and purple onion pieces on one skewer, with a soy, white vinegar, honey BBQ sauce, Worcestershire, and sesame oil marinade doing the heavy lifting overnight. That long soak is what turns the steak tender and seasons it all the way through, while a quick ten minutes on the grill keeps the vegetables crisp and the meat juicy. You can thread everything evenly, adjust the sweetness, and serve them hot off the grill without waiting for a table. These Grilled Steak Kebabs also make a simple dinner feel special because the marinade does most of the work while you handle the skewers. The real payoff is control: you choose the cut, balance the marinade, and ...

When IBM's own pages disagree: 95.8 vs 96.5, and the screenshot I almost didn't take

When IBM's own pages disagree: 95.8 vs 96.5, and the screenshot I almost didn't take
I was halfway through a routine sweep of IBM's published benchmarks when a number didn't reconcile: one page said 95.8, another said 96.5, for what looked like the same model run. Both pages were on IBM's own domain, both cited the same eval. That gap of 0.7 points is small enough to dismiss, and large enough that someone filing a bug report would get bounced between teams. I filmed a Short instead of writing a thread, because the disagreement is visual. The thing that made it work was a fixed-width capture pipeline: I locked the viewport to 1080x1920, disabled smoothing, and rendered both pages side by side in the same session with the cache busted so neither could serve a stale figure. Any drift in the cropped region showed up as a pixel-level mismatch before I even hit record. What it cost me was time, not tooling. Auto-captions couldn't keep up with the two-number narration, so I re-encoded the clip three times to resync subtitles. I also had to re-shoot once aft...

PuttLab: Mini Golf Puzzle — Free Browser Puzzle Game

PuttLab: Mini Golf Puzzle — Free Browser Puzzle Game
Endless 3D mini golf: aim, load, putt. Offline, free, no account. PuttLab is a one-player 3D mini golf puzzle: get the ball into the cup in as few strokes as you can, then do it again on the next hole. Play PuttLab: Mini Golf Puzzle How to Play Endless course — holes keep coming, and every hole you clear is worth more than the last 3D greens: a striped fairway under your ball, a rotating camera you can walk around the hole with two fingers One finger to play: drag left or right to aim, pull down to load the putter, release to strike The cup will not take a ball that is moving too fast — a hard putt lips out, so control matters Obstacles change every hole: sand patches slow the ball down, bumper posts throw it back harder, and water or a ball off the edge costs a penalty stroke Every hole is checked before you play it: the game solves the route from the tee to the cup and refuses to hand you a hole that cannot be reached Each hole's par is worked out from that route, so...

BrickBurst: Arcade Puzzle — Free Browser Arcade Game

BrickBurst: Arcade Puzzle — Free Browser Arcade Game
Break every brick. One shared run a day, a 12-level ladder, endless play. BrickBurst is a one-player brick-breaking arcade game for your phone. Line the ball up with your paddle, break every brick on the wall, and clear the wave — the ball keeps getting faster and the wall keeps getting thicker. Play BrickBurst: Arcade Puzzle How to Play Three ways to play, all offline Daily run — every player gets the same waves on the same day, generated on your device from the date, so nobody plays a different board Level ladder — 12 hand-built waves, from "First Break" to "Final Brick", unlocked one at a time as you clear them Endless arcade — the waves keep coming and only your best score stops you Four brick types to plan around: normal (one hit), armoured (two hits, and it cracks before it goes), explosive (takes the bricks around it with it) and steel (never breaks — the ball just bounces off it) Power-ups fall from broken bricks: wide paddle, multi-ball, slow ba...

A 200 that came too early taught me retry is a two-party contract

A 200 that came too early taught me retry is a two-party contract
I set up an ephemeral webhook receiver to integration-test a Stripe-like flow: sender POSTs, receiver stores the event, downstream pipeline processes it. First run looked green — 200 OK returned in 12ms, event logged. Then I noticed the downstream job had never picked up half the payloads. The bug was ordering inside my handler. I stored the event, returned 200 immediately, then enqueued the downstream job. When the enqueue threw (transient queue blip), the sender saw success and never retried. The 200 said "done" but done hadn't happened yet. The lesson that stuck: the response code is a promise about state, not about my code path. If a downstream step is part of the contract, the 2xx must not leave until that step commits, or the failure must be reported as a failure so the sender's retry policy has something to work with. Two concrete changes: 1. Reorder so the side effect the sender cares about completes before the response. Enqueue first, return 200 after. ...