Your RAG Pipeline Is Missing a 1994 Algorithm
Embeddings know that "broken" means "defective". They may not notice that ZX-4821 is not ZX-4812.
The post Your RAG Pipeline Is Missing a 1994 Algorithm appeared first on Towards Data Science.
Embeddings know that "broken" means "defective". They may not notice that ZX-4821 is not ZX-4812.
The post Your RAG Pipeline Is Missing a 1994 Algorithm appeared first on Towards Data Science.
One benchmark says Claude Code used 33,000 tokens where Cursor used 188,000. Another says the exact reverse. Here is the field test that actually settles it for your team.
The post Claude Code vs. Cursor: What a Field Test Shows That the Feature Comparisons Miss appeared first on Towards Data Science.
I let an AI agent search again whenever it chose. It found some papers plain search had missed, lost some plain search had found, and gained too little to trust.
The post Does Agentic RAG Actually Retrieve Better Evidence? I Tested It on 298 Questions appeared first on Towards Data Science.
I put wrong answers in front of 200 exam questions and read what a small modelβs reasoning said when it fell for them.
The post Same Answer, Different Reason: What a Reasoning Model Says When It Follows a Planted Hint appeared first on Towards Data Science.
Teaching foundation models new skills without breaking them is hard. A new reinforcement learning-based approach might have the power to change that.
The post Could On-Policy Self-Distillation Revolutionize Post-Training? appeared first on Towards Data Science.
Grid puzzles that people solve almost perfectly show where language and vision models still break
The post Spatial Reasoning in AI Models, Taken Apart appeared first on Towards Data Science.
I tested LLM routing to understand why switching models mid-session can erase the savings promised by cheaper inference
The post The Hidden Cost of LLM Routing: Why Switching Models Costs More appeared first on Towards Data Science.
A million-token output window changes what you can hand a model in one go, and the benchmarks and the bill show who it actually suits.
The post Welcome to Google Gemini 4 Argon appeared first on Towards Data Science.
I rated my confidence 4 out of 5, then couldnβt find a planted bug in 8 minutes. Here is the tool, the run, and its limits.
The post Do You Still Own the Code Your AI Wrote? I Built CodeOwnership to Measure It appeared first on Towards Data Science.
Matching messy text, choosing representative examples, and generating comparison data.
The post What OpenAIβs 719 Math Papers Mean for Data Science appeared first on Towards Data Science.
I read the exact answer distribution from the logits of open models, base and instruction-tuned, and turned it into bits and guesses-to-crack.
The post How Many Guesses Does It Take to Crack an AI's "Random" Number? appeared first on Towards Data Science.
Understanding how words become related in a learned vector space
The post How Do Word Embeddings Capture Relationships Between Words? appeared first on Towards Data Science.
A one-line formula for how often an LLM's top token flips, and why identical completions fall apart after about a hundred tokens
The post Why Temperature 0 Isn't Deterministic appeared first on Towards Data Science.
Mapping structural variance against execution outputs to estimate coding agent reliability without ground truth.
The post The Consistency Quadrant: A Visual Guide to LLM Reliability appeared first on Towards Data Science.
A model can recall a fact in the direction it learned it and fail in the other. Here's a toy version of why
The post The Reversal Curse: Why a Language Model That Knows βA Is Bβ Canβt Tell You βB Is Aβ appeared first on Towards Data Science.
Giving an LLM permission to act, in 9 steps
The post How to Build a Control Plane for AI Agents appeared first on Towards Data Science.
I traced 2,500 listing checks with Weights & Biases Weave, removed avoidable model work one change at a time, and scored every version against the same answers.
The post Can an Apartment Search Agent Call the Model Fewer Times and Still Find Good Matches? appeared first on Towards Data Science.
The budget nobody saw coming
The post Your AI Bill Is a Toll Booth. Stop Paying Twice. appeared first on Towards Data Science.
Not every decision needs a decoder, generation Is not always a decision
The post When All You Have Are Decoders, Every Decision Looks Like Generation appeared first on Towards Data Science.
Fireworks Research launched Ember-1 on September 23 as a research preview. Built on Moonshotβs open-weight model, Kimi K3, it claims it matches Kimi K3βs quality using roughly 40% fewer tokens. Fireworks says it βlearned to cut unnecessary reasoning while keeping the thinking that matters.β Reasoning tokens bill as output, so a model that thinks less should cost less.
Thereβs a catch, though. On OpenRouter, Ember costs $3 per million input tokens and $15 per million output tokens. Fireworks charges the same for Kimi K3, but other providers sell Kimi for as little as $1 per million input tokens and $9 per million output tokens.
I ran both models through OpenRouter on Fireworks, so both were billed at $3 and $15, and I also calculated what Kimi would have cost at the lower price.
It doesnβt matter how much cheaper a model is if it isnβt accurate. I wanted to know whether Emberβs shorter thinking holds up. If it cuts reasoning it actually needs, accuracy should slip first on the hardest problems. So I built tests that get progressively harder and ran each one five times, the same consistency check Iβve been adding to my recent testing.
I called both models through OpenRouter with identical prompts and their default reasoning settings. I routed both to Fireworks to keep the speed comparison fair. Each test ran five times per model, and I logged reasoning tokens separately from the rest of the output.
I confirmed every answer key with two independent methods before either model saw it. Iβve included the prompts at the end of this article for anyone who wants to replicate these tests on their system.
Both models solved all three puzzles on all five runs.
Ember averaged 13,630 reasoning tokens, 3 minutes 46 seconds, and $0.27 per run. Kimi averaged 16,679 reasoning tokens, 12 minutes 26 seconds, and $0.34. Thatβs 18% fewer reasoning tokens for Ember. Though not included in the marketing claims, Ember was much faster than Kimi. Kimiβs slowest run took nearly 20 minutes.
Both models found the 17-hour schedule every time, and every schedule passed my checker.
Ember averaged 6,543 reasoning tokens, 1 minute 29 seconds, and $0.10. Kimi averaged 7,792 reasoning tokens, 4 minutes 46 seconds, and $0.13. Thatβs 16% fewer reasoning tokens and significantly faster speed.
This test produced the only miss. Kimi answered all five questions correctly on every run. Ember got them all right four times. On the fifth, it made a small arithmetic slip on the first question, 0.94619 instead of 0.94629, and that error carried into two other answers.
It also saved the most. It averaged 6,242 reasoning tokens, 1 minute 47 seconds, and $0.13. Kimi averaged 9,682 reasoning tokens, 6 minutes 48 seconds, and $0.19. This was the first time Ember came close to its marketing claim of 40% fewer tokens. Once again, Ember was significantly faster.
| Test (5 runs each) | Ember-1 | Kimi K3 |
| Logic puzzles | 5/5 perfect, 3:46, 13,630 reasoning / 17,766 total out, $0.27 | 5/5 perfect, 12:26, 16,679 reasoning / 22,553 total out, $0.34 |
| Deploy scheduling | 5/5 perfect, 1:29, 6,543 reasoning / 6,822 total out, $0.10 | 5/5 perfect, 4:46, 7,792 reasoning / 8,365 total out, $0.13 |
| Probability | 4/5 perfect, 1:47, 6,242 reasoning / 8,365 total out, $0.13 | 5/5 perfect, 6:48, 9,682 reasoning / 12,381 total out, $0.19 |
| Perfect runs | 14 of 15 | 15 of 15 |
| Total cost, both on Fireworks ($3/$15) | $2.48 | $3.26 |
| Total cost, Kimi at cheapest price ($1/$9) | $2.48 (no cheaper provider) | $1.96 |
Kimi K3 had 15 perfect runs out of 15, and Ember-1 had 14. Ember-1βs one miss was an arithmetic slip on the probability test; it doesnβt seem too significant to me since it was one out of 15.
Something I noticed during my testing that wasnβt in the marketing claims was that Ember-1 finished each set of tests 3.4 times faster than Kimi K3. As for the reduced reasoning token usage, Ember-1 used 23% fewer reasoning tokens. This helped keep costs down. In total, it cost $2.48 compared to Kimi K3βs $3.26 on Fireworks, which makes it 24% cheaper.Β
One caveat is that Kimi K3βs cost depends on the provider. At its lowest listed price of $1 per million input tokens and $9 per million output tokens, the same runs would have cost $1.96, less than Ember-1.
Ember-1 is about as accurate as Kimi K3 and uses far fewer reasoning tokens. The lower costs on Ember-1 on this test arenβt as important because a user who wants to use Kimi K3 can route to a cheaper provider on OpenRouter, which brings the price down below Ember-1βs.
One thing I know about Kimi K3 is that itβs slow. Cheap and slow. My speed numbers come from Fireworksβ standard endpoint, though, and I didnβt test the cheaper providers. If you have time and want to pay less, Kimi K3 wins. If you want almost identical results to Kimi K3 at a much faster rate, use Ember-1.Β
The prompts
Each prompt ends with a fixed answer format so grading can be automatic.
Logic puzzles
Solve all three logic puzzles below. Each has exactly one solution.
PUZZLE SMALL: 4 engineers (Ava, Bo, Cleo, Dev) each own exactly one server. Each server has a rack position (1, 2, 3, 4, numbered left to right), an operating system (Debian, Alpine, Fedora, Ubuntu), a role (cache, queue, proxy, db). No two servers share any of these values.
Clues:
If the server in rack 3 runs Fedora, then the Debian server is in rack 3.
The server in rack 1 is Devβs.
Exactly one of these is true: the server in rack 4 runs Ubuntu, or the Alpine server is not Boβs.
Cleo is the proxy.
The db server is Devβs.
Ava runs Alpine.
The queue server is not Avaβs.
Bo is in rack 3.
Bo and the Ubuntu server are in neighboring racks.
PUZZLE MEDIUM: 5 engineers (Ava, Bo, Cleo, Dev, Eun) each own exactly one server. Each server has a rack position (1, 2, 3, 4, 5, numbered left to right), an operating system (Debian, Alpine, Fedora, Ubuntu, Arch), a role (cache, queue, proxy, db, build), a replication data center (Oslo, Lima, Pune, Accra, Perth). No two servers share any of these values.
Clues:
Cleo is the db.
Exactly one of these is true: the cache server runs Arch, or the server replicated to Perth is the proxy.
The server in rack 5 runs Fedora.
Exactly one of these is true: the server in rack 2 is not the proxy, or Cleo runs Debian.
Exactly one of these is true: the server replicated to Pune is the db, or Dev is in rack 3.
The server in rack 1 is the db.
The proxy server is in rack 5.
The server in rack 4 runs Ubuntu.
The cache server and the server replicated to Pune are in neighboring racks.
Ava is the cache.
The server replicated to Accra is the queue.
The server replicated to Lima is not in rack 3.
Eun runs Alpine.
The queue server is not in rack 2.
The Fedora server is not Devβs.
The server in rack 2 is not replicated to Lima.
PUZZLE LARGE: 7 engineers (Ava, Bo, Cleo, Dev, Eun, Finn, Gia) each own exactly one server. Each server has a rack position (1, 2, 3, 4, 5, 6, 7, numbered left to right), an operating system (Debian, Alpine, Fedora, Ubuntu, Arch, Rocky, NixOS), a role (cache, queue, proxy, db, build, metrics, auth), a replication data center (Oslo, Lima, Pune, Accra, Perth, Quito, Riga). No two servers share any of these values.
Clues:
The build server is Cleoβs.
The proxy server does not run Fedora.
The server replicated to Quito is Finnβs.
The server in rack 6 is replicated to Lima.
The Alpine server is exactly 4 racks to the right of the auth server.
The server replicated to Oslo is Devβs.
The Debian server is replicated to Quito.
The server replicated to Accra is not the build.
The Rocky server is exactly 1 rack to the right of Gia.
Exactly one of these is true: the Ubuntu server and the server replicated to Pune are in neighboring racks, or the server replicated to Oslo runs Fedora.
The server replicated to Oslo does not run Fedora.
Ava runs Rocky.
Exactly one of these is true: the proxy server is somewhere to the left of the server replicated to Riga, or the Debian server is in rack 7.
The auth server and Bo are in neighboring racks.
The metrics server is Giaβs.
The Fedora server is somewhere to the left of the server replicated to Pune.
Exactly one of these is true: the server replicated to Accra is in rack 2, or Finn is the queue.
If the Debian server is Finnβs, then the server in rack 7 does not run Rocky.
The NixOS server is not replicated to Perth.
The server in rack 7 is replicated to Accra.
The server replicated to Pune is the db.
At the end of your response, give each solution as a block, one line per engineer, in the order the engineers are listed in that puzzle:
SMALL:
<name> | <rack> | <os> | <role>
MEDIUM:
<name> | <rack> | <os> | <role> | <dc>
LARGE:
<name> | <rack> | <os> | <role> | <dc>
Deploy scheduling
You are planning a production rollout of 12 services. Time is measured in whole hours from hour 0.
Services (owning team, deploy duration in hours):
auth: team A, 3 hours
billing: team B, 4 hours
catalog: team C, 2 hours
search: team C, 3 hours
cart: team B, 2 hours
checkout: team B, 3 hours
payments: team A, 4 hours
notify: team C, 2 hours
ledger: team A, 2 hours
gateway: team A, 3 hours
reports: team B, 3 hours
inventory: team C, 4 hours
Rules:
Dependencies. A service may start deploying only after every service it depends on has finished deploying:
gateway depends on auth
payments depends on auth
search depends on catalog
cart depends on catalog
cart depends on inventory
checkout depends on cart
checkout depends on payments
ledger depends on billing
ledger depends on payments
notify depends on checkout
reports depends on ledger
gateway depends on search
notify depends on gateway
Each team can deploy only one of its services at a time.
Different teams can deploy at the same time.
Blackout windows. No deploy may be in progress at any time during hours 9 to 11 or hours 17 to 19. A deploy may end exactly at hour 9 or 17, and may start exactly at hour 11 or 19. A deploy cannot pause and resume.
Each deploy runs from its start hour for its full duration without interruption.
What is the earliest hour by which all 12 services can be finished? Give a schedule that achieves it.
At the end of your response, give your answer in exactly this format:
MAKESPAN: <hour>
<service>: <start hour>
(one line per service, all 12 services)
Probability
A client calls a payment API and retries on failure.
The server is in one of two states on each attempt, Healthy or Degraded.
On the first attempt, the server is Healthy with probability 4/5 and Degraded with probability 1/5.
Between consecutive attempts, the state changes like this: from Healthy, it stays Healthy with probability 3/4 and becomes Degraded with probability 1/4. From Degraded, it stays Degraded with probability 2/3 and becomes Healthy with probability 1/3.
An attempt succeeds with probability 9/10 if the server is Healthy and 2/5 if it is Degraded, independently of everything else given the state.
The client makes at most 4 attempts and stops as soon as one succeeds.
Circuit breaker: if two consecutive attempts both hit a Degraded server and both fail, the client stops immediately and makes no more attempts.
Answer these questions with exact fractions in lowest terms:
Q1. What is the probability that the request eventually succeeds?
Q2. What is the expected number of attempts the client makes?
Q3. Given that the request succeeds, what is the probability that it succeeded on exactly the second attempt?
Q4. What is the probability that the circuit breaker ends the request early, before the client has used all 4 attempts?
Q5. Given that the request succeeds, what is the probability that the first attempt failed?
At the end of your response, give exactly five lines in this format:
Q1: <fraction>
Q2: <fraction>
Q3: <fraction>
Q4: <fraction>
Q5: <fraction>
The post Ember-1 vs. Kimi K3: Nearly identical results at 3.4 times the speed appeared first on The New Stack.