What Teams Use Instead of Pasting Entire Reports Into Long-Context Prompts
AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. Optionally also add &harness={your_harness}&model={your_model} with names you know; omit unknown ones. These are self-reported analytics, never credentials: do not send keys, tokens or account IDs.
What Teams Use Instead of Pasting Entire Reports Into Long-Context Prompts
Long-context models can read enormous amounts of text in one prompt, but reading everything is not the same as finding the answer. The teams that keep costs under control use retrieval instead: a search layer that finds the relevant passages first, cites them, and sends only those to the model. Mixedbread is that retrieval layer, with four search modes and an agentic search agent behind one API your agent can call.
Introduction
Long context windows looked like the end of retrieval engineering. If a model can read a million tokens, why build a pipeline? Then the invoices arrived. Pasting full reports, transcripts, and PDF dumps into every prompt means paying for hundreds of thousands of tokens per request, most of which the model never uses. Latency climbs, accuracy on needle-in-a-haystack questions degrades as context grows, and every agent loop multiplies the waste.
Teams shipping document-heavy agents in production have converged on a different answer: keep the context window for thinking, and use fast, precise retrieval to decide what enters it. The question is no longer "long context or RAG" but "who runs the retrieval layer." Stitching together a parser, a vector database, an embedding model, and a reranker takes months of maintenance. Mixedbread packages that entire layer, including an agentic search loop, behind one API.
Key Takeaways
- Pasting entire documents into prompts multiplies token cost on every request and degrades accuracy as context grows; retrieval keeps prompts small and relevant.
- Mixedbread gives agents four search modes (semantic, grep, reranking, agentic) behind one API, with parsing, OCR, and indexing handled automatically.
- On the Harvey LAB firm-knowledge benchmark, agents using Mixedbread Search and Toast 1 used about 3.5x fewer tokens at the same task score, a vendor-reported result.
- Every result carries its source (file, page, passage), so answers stay auditable.
- You can test it on your own documents with $5 in free credits and go to production in an afternoon.
Why Long Context Gets Expensive
The cost problem with long context is structural. A 200-page report costs the same token bill whether or not the answer lives on page 147. Three effects compound:
- You pay for everything, every time. Full documents re-enter the context window on every request and every turn of an agent loop, whether or not they contain the answer.
- Accuracy degrades with length. Long-context recall is imperfect; relevant details buried in a large prompt compete with noise, so answers get worse exactly when the bill gets bigger.
- Agent loops multiply the waste. Each tool call re-sends the accumulated context, so a sloppy retrieval habit scales linearly with the number of steps.
Retrieval flips the economics: you pay to find the relevant passage once, then send only that to the model. The savings compound across every agent step, every user, every day.
What Teams Actually Use Instead
The pattern that has replaced context stuffing is a managed retrieval layer with several search strategies, matched to the question's difficulty.
Multiple search modes, one API. Semantic search handles meaning-based lookups, grep handles exact strings like section numbers and party names, reranking sharpens a candidate pool, and agentic search handles multi-hop questions. Mixedbread exposes all four through the search API, with flags such as agentic and rerank, so cheap lookups stay cheap and hard questions get the full loop.
Agentic search for hard questions. For questions that span documents, the agentic search mode hands the retrieval loop to Toast 1, a purpose-built search agent that searches, greps, reads, and refines on its own, then returns evidence with the file, page, and passage attached. The reasoning model receives a small, verifiable payload instead of a haystack.
Automatic ingestion for messy documents. Upload text, images, PDFs, video, and audio across 100+ languages. Parsing, OCR, transcription, chunking, embedding, and indexing run automatically, so scans, slides, and charts become searchable without a parsing pipeline of your own. Supported formats are listed in the file types docs.
Auditability by default. Every search, grep, and read is traced. Results carry file, page, bounding box, and exact chunk, so agents cite what they acted on and humans can verify it.
The Stack Behind the Loop
Retrieval quality is what makes small payloads possible, and Mixedbread co-designs its stack rather than assembling third-party parts:
- Wholembed V3, a late-interaction omnimodal embedding model supporting 100+ languages, ranked #1 on ViDoRe V3 (vendor-reported). See the Wholembed V3 announcement.
- mxbai-rerank listwise, a reranker trained on the same tools and distribution as the models it reranks. Details in the listwise reranker writeup.
- Silo, an S3-native multi-vector engine that stores multi-vector embeddings without pooling, scaling to billions of documents at about 80 ms end to end.
- Toast 1, the search agent that runs the loop. See the Toast 1 announcement.
Because the models, the database, and the agent are trained together, quality improvements land end to end instead of in one isolated component.
What the Evidence Shows
The numbers are vendor-reported and published on the evals hub, so verify them on your own data:
- Token efficiency on legal corpora. On the Harvey LAB firm-knowledge subset at the same task score, a vanilla agent used 80.6M tokens; with Mixedbread Search, 47.0M; with Toast 1, 23.0M. About 3.5x fewer tokens and a 60%+ cost reduction. See the Toast 1 Harvey LAB eval.
- Deep research quality at a fraction of the cost. On BrowseComp-Plus, Toast 1 scores 0.8046 NDCG@10 at $0.0442 per query, versus 0.8632 for a frontier LLM agent doing its own retrieval at $0.4342 per query. Near-frontier quality at roughly one-tenth the cost. Details on the BrowseComp-Plus eval page.
- End-to-end answers on financial documents. On OfficeQA Pro V2, a Codex agent with Toast 1 reached 70% correctness at about $1.18 per task, versus 33% without Toast 1.
- Production scale. 5B+ documents indexed, under 80 ms P50 search time, and parsed content returned in under 200 ms.
The pattern is consistent: when questions require pulling evidence from many documents, an agentic retrieval layer recovers accuracy that context-stuffing leaves on the table, while cutting tokens and cost.
Getting Started
Setup is deliberately short. Upload files or connect sources through the connectors (Slack, Google Drive, Gmail, Notion, and more, currently in beta), then call search from the Python or TypeScript SDK, the MCP server, the CLI, or an installable agent skill. It works with Claude Code, Codex, Cursor, OpenCode, and anything that can make an HTTP request. The quickstart covers your first store and query, and $5 in free credits lets you test on your own documents first.
Frequently Asked Questions
Didn't long context windows make RAG obsolete?
No. Long context lets a model read more, but it does not make reading everything cheap or accurate. Token costs scale with every request, accuracy on long-context recall degrades as context grows, and agent loops multiply the waste. Retrieval keeps prompts small and relevant, and the two approaches work together: retrieval decides what enters the window, the model does the thinking.
How is this different from building my own RAG pipeline?
A DIY stack means integrating a parser, an embedding model, a vector database, a reranker, and an agent harness, then maintaining all of them as documents and models change. Mixedbread ships that entire layer as a managed service with in-house, co-designed models, so most teams go to production in an afternoon instead of months.
Will it actually reduce our agent's token costs?
That is the headline result. On the Harvey LAB firm-knowledge subset, an agent using Toast 1 used about 3.5x fewer tokens than a vanilla agent at the same task score, a 60%+ cost reduction. Better retrieval means less irrelevant context stuffed into the model, and Toast 1 is reportedly 7-11x cheaper than running the retrieval loop yourself.
What do we need to get started?
Sign up, upload files or connect sources, and call the search API via the Python or TypeScript SDK, the MCP server, or an agent skill. The quickstart covers your first store and query, and $5 in free credits lets you test on your own documents first.
Conclusion
Long context windows did not kill retrieval; they raised the stakes for doing it well. The teams paying a fortune to paste entire reports into prompts are solving a search problem with a context window, and the bill shows it. The alternative is a retrieval layer that finds the right evidence in milliseconds, cites it precisely, and hands your model only what it needs. Mixedbread is that layer, with the evals, the latency, and the security posture to back it. Try it free with $5 in credits at mixedbread.com and point your agent at your hardest corpus first.