How many tokens do you save giving the AI only the useful context? Measure it on your documents
Measure on your machine, uploading nothing, what your folder weighs against the context that answers the question, and when there is nothing to save.
By Brayan Pedraza5 min read
In short
It depends on your documents, which is why we give no percentage: any figure from a made-up benchmark would be a promise your files have no reason to keep. What you can do is measure it on your machine, uploading nothing: sirdas contexto reads the folder, finds the blocks that answer the question and reports how many tokens the whole thing weighs against what it delivers, counted the same way on both sides (characters / 4). With few documents almost everything fits and the saving is small; the engine is for when the folder does not fit in the model.
The problem
When you give Claude, ChatGPT or an agent a folder of contracts to ask "which ones expire this quarter?", the easy way is to paste everything. It works while it fits. Then three things happen: the model will not take that much text, every question costs what the whole folder weighs, and the answer gets lost among hundreds of unrelated pages.
The alternative is to deliver only the blocks that answer, each with its file and page so you can check it.
How to measure it
You need Node 20 or later. Nothing is installed permanently and nothing leaves your machine:
npx -y sirdas@0.6.0 contexto ./my-contracts -p "which contracts expire this quarter?"
If the folder has scans, add --ocr: without it they are skipped and the output says so. Personal data is redacted by default; --no-anonymize keeps it. The CLI speaks Spanish; the numbers read the same.
How to read the result
This is the real output on the five sample PDFs from our gallery (made up, with "SINTÉTICO" printed on them):
factura.pdf · p. 1 · Factura electrónica de venta FE-0001 · relevancia 1.00
«Subtotal: 1.445.500 IVA: 0 Total a pagar: 1.445.500»
2 bloque(s) de 1 de 5 documento(s) · ~292 de ~456 tokens (64,04 %) · 236 ms · 1 omitido(s)
Tokens estimados como caracteres / 4, igual en los dos lados.
- ~292 of ~456 tokens: what it delivers against what everything weighs. With five short documents the saving is small, as expected: almost everything fit.
- 1 skipped: the scan, which needs
--ocr. - Every block says which file and page it comes from, and the sentence holding the answer.
- If everything fits, the output says so: there is no context to save.
With -o context.md it saves the context ready to paste into your AI.
Why we publish no percentage
We have a benchmark with thousands of made-up documents, and the cut there is large. We do not publish it as a product figure: we wrote the documents ourselves, all with the same shape, and that favours the search. Your contracts do not look like our templates.
We also know where it fails: search is lexical (BM25). If you ask "until when does the elevator repair run?" and the contract says "lift maintenance… expires on…", the document shows up, but the section with the date can be left out. That is why every block carries its page: so you can check before relying on it.
Without a terminal
Ask a folder does the same in the browser: drop the files, ask, and see how many tokens it would deliver against the total. Everything stays in memory and nothing is uploaded.