2026-11-26 15:39 UTC

Open-source Chopper selects verbatim RAG context; developer reports large token cuts

state: seedheat: mediumuncertainty: mediumrelevance: highretrieval-augmented-generation context-compression edge-modelswiiiktor

What is this?

Developer wiiiktor has released Chopper, an open-source tool for reducing RAG context. Its universal option uses a 0.14B- or 0.31B-parameter mmBERT encoder to select exact, unrewritten text fragments from retrieved passages; an integrated option uses part of MiniCPM3-4B’s weights. The project offers code, model weights, and a Python package. Its GitHub documentation reports results from self-run benchmarks, but the supplied evidence contains no independent evaluation. A search result describes the project as a locally runnable 0.3B model; other search results point to its model and dataset pages, but add no independent performance evidence.

Why it matters

Chopper explores a practical way to make RAG systems use less context without asking a generative model to summarize or rewrite evidence: a small encoder selects verbatim fragments. If its reported results generalize, this could lower inference cost and help preserve multi-hop facts in compact contexts, while making a lightweight preprocessing step usable with different answering models. The benchmarks are promising but developer-produced, and one comparison explicitly notes that Chopper had task-specific training while the compared compressors were trained for general single-passage use.

Current assessment

New: wiiiktor’s Chopper code and weights are publicly available, with a pip-installable RAG integration. The universal mmBERT variants are intended to work with any answering model; the separate integrated variant is for MiniCPM3-4B. The developer says the model selects exact quotes, can return an ANSWER or SEARCH decision, and in one-pass tests runs in 50 ms on an RTX 3090; the project’s broader summary reports 155 ms for the separate model and 277 ms for its integrated version, so timing depends on the described setup. In the developer’s 400-question MuSiQue test, using one retrieval and Qwen3-14B, the 0.31B variant reportedly used 228 prompt tokens versus 2,620 for full snippets and achieved 83/48/45/29 correct answers across 1–4 hops, versus 84/28/22/12 with full snippets. The author reports stronger four-hop results than LLMLingua-2 and Provence in this setup, while acknowledging Chopper’s task-specific multi-hop training makes the comparison uneven. These are project-reported results, not independent validation; the supplied sources do not establish real-world adoption, generalization across datasets or answering models, or end-to-end cost savings. If validated, verbatim compression could reduce context load and make constrained or long-running RAG workflows more practical. Track independent replications and deployment evidence.

Measured heat

now 0 pts/hpeak 4 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 290h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-14 13:00⭐ origin echo-reconstructedThe repository README is the original project announcement/artifact. It describes Chopper as “a small model that reads the retrieved passage
wiiiktor (Viktor; the repository author) on github (echo) · attributed from hn.story.50499236
—
11-14 18:05first on hacker news · published · +5.1hShow HN: Chopper, a tiny edge model that keeps only useful text in 50 ms
wiiiktor
—
11-14 18:05amplified on hacker news 👑hn.story.50499236
wiiiktor
peak 1 · 0 comments · 103% of case engagement
11-14 18:20our radar first saw it · +5.3hdiscovery anchor: hn.story.50499236—
pace: p13 vs 2096 stories at the 168h mark (now 290h old) — behind adobe-max-ai-agents-creative-tools-mcp (0.5x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Chopper, a tiny edge model that keeps only useful text in 50 ms
Retrieved article excerpt

Open article · Retrieved 2026-11-14T18:21:57.327639+00:00

[LLMs need a Chopper: watch the video](https://youtu.be/KMvmdXCEOJU)  
[Option 1, universal chopper: a small separate model (mmBERT-base 0.31B or mmBERT-small 0.14B), text in and text out, works with any answering model. Links to the quick start.](https://github.com/wiiiktor/chopper_demo#quick-start)
[Option 2, integrated chopper: a 20% slice of MiniCPM3-4B itself, no second model, reads the model's own cache of the whole session. Links to how it works.](https://github.com/wiiiktor/chopper_demo/blob/main/docs/DETAILS.md#a-host-with-latent-attention-minicpm3-4b)

*70-second video: [youtu.be/KMvmdXCEOJU](https://youtu.be/KMvmdXCEOJU)*

## Chopper 0.3B close to Opus 5.5 in cutting out the best pieces

**Chops** are pieces cut out of the original text snippets retrieved from a database or a long conversation: exact quotes,
never rewritten. The chopper (mmBERT, 0.31B) makes them; for comparison, Claude Opus 5.5 makes them too, also forced to
quote directly.

> **What is new:** a new method, invented in November 2026 in Poland (EU). The chopper is not an LLM summarising the snippets:
> a small encoder reads the question and all 20 snippets together in **one pass** and marks every word keep or drop. There is no
> text generation, so it is fast: **50 ms per question** (20 snippets, ~2,400 tokens) on a consumer-grade GPU (RTX 3090), 36 ms with mmBERT-small.

> **One database retrieval per question, even at 4 hops.** Every result below uses a single retrieval: each question gets its
> 20 snippets once, the chopper cuts them once, and Qwen3-14B answers once. There are no follow-up searches and no second
> rounds, so a 4-hop question has to be chained from one cut.

### mmBERT is 32,000 times smaller

[One corner of a cube of dots. Each dot is 0.31B, the size of the mmBERT chopper; the chopper is the single red dot on the corner; a 32 by 32 by 32 cube of such dots, about 32,000, stands for Claude Opus 5.5 at a rough 10,000B estimate (its size is not published).](https://github.com/wiiiktor/chopper_demo/blob/main/figures/size_cube.svg)

### Qwen3-14B answering from full snippets or just short chops

400 MuSiQue questions, 100 each at 1, 2, 3 and 4 hops, each with its own 20 retrieved snippets. Qwen3-14B (4-bit, no fine-tuning,
no thinking mode) answers from the given text only; gpt-5.6-luna judges. Length = prompt tokens. Each score counts every correct
answer, including those from incomplete chops; the number in brackets counts only questions whose chops kept every hop and the answer.

[Qwen3-14B correct answers at 1/2/3/4 hops (complete chops only in brackets) and length. All snippets retrieved from the database: 2,620 tokens, 84/28/22/12. Chops from the chopper: 228 tokens, 83 (82) / 48 (44) / 45 (35) / 29 (21). Chops from Opus 5.5: 144 tokens, 90 (90) / 64 (60) / 55 (40) / 43 (30). Gold chops: 217 tokens, 86/63/52/37.](https://github.com/wiiiktor/chopper_demo/blob/main/figures/qwen_notes_table.svg)

### Qwen3-14B: all snippets vs chops from the chopper vs chops from Opus 5.5

Read each diagram like website traffic: questions flow left to right, and at every hop the ones whose fact the chops missed drop
out; the last stage is Qwen3-14B answering correctly. Top: all 20 retrieved snippets. Middle: the chopper's chops. Bottom: Opus 5.5's chops.

[1-hop questions: Qwen3-14B correct 84% with all snippets, 83% with the chopper's chops, 90% with Opus's chops](https://github.com/wiiiktor/chopper_demo/blob/main/figures/qwen_sankey_1hop.svg)

[2-hop questions: Qwen3-14B correct 28% with all snippets, 48% with the chopper's chops, 64% with Opus's chops](https://github.com/wiiiktor/chopper_demo/blob/main/figures/qwen_sankey_2hop.svg)

[3-hop questions: Qwen3-14B correct 22% with all snippets, 45% with the chopper's chops, 55% with Opus's chops](https://github.com/wiiiktor/chopper_demo/blob/main/figures/qwen_sankey_3hop.svg)

[4-hop questions: Qwen3-14B correct 12% with all snippets, 29% with the chopper's chops, 43% with Opus's chops](https://github.com/wiiiktor/chopper_demo/blob/main/figures/qwen_sankey_4hop.svg)

The last stage is the table's score; the lighter block under it counts answers Qwen got right from incomplete chops, and the
number in brackets leaves them out. More: [docs/DETAILS.md §7](https://github.com/wiiiktor/chopper_demo/blob/main/docs/DETAILS.md#7-multi-hop-where-answers-get-lost).

### Against other context compressors

Same 400 questions, same 20 snippets, same Qwen3-14B prompt; each compressor cuts the snippets once:

| Qwen3-14B answering from | tokens | 1-hop | 2-hop | 3-hop | 4-hop |
| --- | --- | --- | --- | --- | --- |
| all 20 snippets (no compression) | 2,620 | 84 | 28 | 22 | 12 |
| [LLMLingua-2](https://huggingface.co/microsoft/llmlingua-2-xlm-roberta-large-meetingbank) (Microsoft), rate 0.1 | 374 | 28 | 6 | 2 | 4 |
| [Provence](https://huggingface.co/naver/provence-reranker-debertav3-v1) (Naver), its default threshold 0.1 | 263 | 77 | 27 | 26 | 16 |
| Provence, threshold 0.5 | 152 | 71 | 24 | 21 | 11 |
| **chops from the chopper, mmBERT-small (0.14B)** | 217 | 72 | **49** | 32 | 23 |
| **chops from the chopper, mmBERT-base (0.31B)** | 228 | **83** | 48 | **45** | **29** |

LLMLingua-2 drops tokens without looking at the question, so the facts a chain needs rarely survive. Provence reads the question
but prunes each snippet on its own. **To be fair to them:** the chopper was trained on MuSiQue's train split (this test uses
its dev split) and on other multi-hop data, while both were trained for general single-passage use.

---

# Chopper 🔪 keep only the part of RAG that answers the question

Standard RAG (retrieval-augmented generation) pastes whole passages into your model's context, and they stay there.
**About 95% of those tokens don't help.** After a few lookups, a long session is mostly retrieval spam.

**Chopper** is a small model that reads the retrieved passages first and keeps only the fragments that matter. Your
model then sees ~100 tokens instead of ~3,000 per lookup, and a session can carry dozens of lookups.

```
question ─► retrieve 16 passages ─► 🔪 chop to ~3 fragments ─► model answers, or asks one follow-up search
```

- 🎯 **Clean context:** only useful fragments enter the session; the raw passages never stay.
- ⚡ **Less compute:** the main model reads 2–5% of the retrieved text.
- 🔗 **Multi-hop works:** the model writes a follow-up question when a fact is missing, and searches again.
- 🏠 **Built on one home GPU:** every dataset and model here was made on a single RTX 3090 (some labels came from APIs).

## Results at a glance

|  |  |
| --- | --- |
| retrieved text the main model reads | **2–5%** (about 20–40× less); the answer is still in the kept text for 85% of HotpotQA and 69% of TriviaQA questions |
| "nothing here": pools whose answer was deleted (8 languages, business documents) | asks to search again **67%** of the time, keeps 1.4% of the text |
| chopping time per lookup (RTX 3090) | **155 ms** (separate mmBERT) · **277 ms** (built into MiniCPM3-4B) |
| 4-hop MuSiQue questions answered correctly by Qwen3-14B, one retrieval | **12% → 29%** with the chopper's chops instead of all 20 snippets (11× fewer tokens); with Opus 5.5's chops: 43% |
| Polish questions (PoQuAD, PolQA) answered correctly by Qwen3-14B | **85.6%** from the Polish chopper's chops (255 tokens) vs 85.2% from all 16 snippets (3,856 tokens) |

Long-conversation memory results (LoCoMo, LongMemEval) are in
[the details](https://github.com/wiiiktor/chopper_demo/blob/main/docs/DETAILS.md#6-long-conversation-memory-locomo-and-longmemeval): there the 4B answering model is the limit.

## Pick your chopper

|  | 🟧 **universal** | 🟪 **integrated** |
| --- | --- | --- |
| what it is | a separate small encoder (mmBERT-base, 0.31B, recommended; or mmBERT-small, 0.14B; both also in Polish versions) | a 20% slice of MiniCPM3-4B's own weights + a small LoRA |
| works with | **any** answering model: text in, text out | MiniCPM3-4B |
| extra memory | 0.31B / 0.14B weights | 45M parameters; reads the model's own cache |
| weights | 🤗 [`wiiiktor/chopper_mmbert`](https://huggingface.co/wiiiktor/chopper_mmbert) | 🤗 [`wiiiktor/chopper_minicpm3`](https://huggingface.co/wiiiktor/chopper_minicpm3) |

Start with the universal one. The integrated one is the long-term bet: trained together with a model from the start, it
should become almost free. **If you pretrain models and want to build that, contact
[wiiiktor](https://github.com/wiiiktor).**

## Quick start

In your own RAG pipeline (LangChain, LlamaIndex, Haystack or plain Python):

```
pip install chopper-rag                  # or "chopper-rag[langchain]", [llama-index], [haystack], [all]
```

```
from chopper_rag import Chopper
chopper = Chopper.from_pretrained(variant="base")          # or "small"; for Polish "base-pl", "small-pl"
result = chopper.run("When was the Eiffel Tower completed?", passages)   # passages: list of retrieved texts
print([c.text for c in result.chops], result.decision)    # exact quotes + ANSWER / SEARCH
```

Framework examples: [integrations/chopper-rag](https://github.com/wiiiktor/chopper_demo/blob/main/integrations/chopper-rag/README.md). Listed in the
[LangChain integrations](https://docs.langchain.com/oss/python/integrations/providers/all_providers) (ChopperCompressor). Or try the demo in this repo:

```
pip install -r requirements.txt

# your documents (a folder of .txt / .md, or a .jsonl with "title" and "text") + any Hugging Face causal LM
python operator-for-llm-with-mmbert.py --docs my_docs/ --model <hf model id> \
       --ask "Who founded the company that distributed the film UHF?"

# leave out --ask for an interactive session; it shows how many tokens plain RAG would have added
```

Weights download from Hugging Face on first use. Training data: 🤗 [`wiiiktor/chopper_demo`](https://huggingface.co/datasets/wiiiktor/chopper_demo).

## Want the details?

Everything else is on one page, **[docs/DETAILS.md](https://github.com/wiiiktor/chopper_demo/blob/main/docs/DETAILS.md)**:

- [how it works](https://github.com/wiiiktor/chopper_demo/blob/main/docs/DETAILS.md#how-it-works): double prefill, rollback, the answer-or-search decision;
- [datasets](https://github.com/wiiiktor/chopper_demo/blob/main/docs/DETAILS.md#datasets) and [training](https://github.com/wiiiktor/chopper_demo/blob/main/docs/DETAILS.md#training-hardware-time-memory) on one GPU;
- [all results](https://github.com/wiiiktor/chopper_demo/blob/main/docs/DETAILS.md#results), including the [search loop](https://github.com/wiiiktor/chopper_demo/blob/main/docs/DETAILS.md#3-second-retrieval-with-a-written-follow-up-question)
  and the [8-language rerank pilot](https://github.com/wiiiktor/chopper_demo/blob/main/docs/DETAILS.md#5-rerank-pilot-8-languages-business-documents-no-answer-here);
- [rewiring a model into its own chopper](https://github.com/wiiiktor/chopper_demo/blob/main/docs/DETAILS.md#rewiring) and [what comes next](https://github.com/wiiiktor/chopper_demo/blob/main/docs/DETAILS.md#further-development);
- [credits, licenses and related work](https://github.com/wiiiktor/chopper_demo/blob/main/docs/DETAILS.md#credits-and-licenses).

## Credits

Built on mmBERT (JHU CLSP), MiniCPM3-4B (OpenBMB), Qwen3, Qwen3-Embedding and Qwen3-Reranker (Qwen team), bge-reranker (BAAI);
labels and judgements also came from Claude Opus 5.5 (Anthropic) and gpt-5.6-luna / GPT-6 Luna (OpenAI). Compared with
LLMLingua-2 (Microsoft) and Provence (Naver). Data: the MuSiQue, HotpotQA, 2WikiMultiHopQA, TriviaQA, QASPER, Multi-Session Chat, WildChat, FineWeb, Wikipedia, LoCoMo and
LongMemEval datasets; for Polish, PoQuAD and PolQA (IPI PAN). Our memory evaluation follows
[Memory Tax](https://arxiv.org/abs/2610.34073) (He et al., 2026) and compares with
[MemT-1.0](https://arxiv.org/abs/2610.26825) (MemTensor, 2026). Full table with licenses:
[docs/DETAILS.md](https://github.com/wiiiktor/chopper_demo/blob/main/docs/DETAILS.md#credits-and-licenses).

## Licenses

| what | license |
|
wiiiktor10
🟧 echo.github ⭐The repository README is the original project announcement/artifact. It describes Chopper as “a small model that reads the retrieved passagewiiiktor (Viktor; the repository author)——

Interpretation history

Decision trace