How RAG Services Ingest Excel, CSV, and PDF Files Without Flattening Them to Plain Text
AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.
How RAG Services Ingest Excel, CSV, and PDF Files Without Flattening Them to Plain Text
A RAG service that handles Excel, CSV, and PDF files natively accepts each format as it is, parses the tables, headers, and layout inside it, and indexes the result so agents can search it with natural language. The flattening step, exporting spreadsheets to text and stripping PDFs to prose before ingestion, disappears because parsing, chunking, embedding, and indexing are handled by the service itself.
Introduction
If your knowledge base looks like most, it is a mix of formats. Contracts and reports arrive as PDFs. Financial models, product inventories, and customer lists live in Excel workbooks. Database dumps and analytics exports land as CSVs.
Most RAG stacks were built for plain text. They expect clean strings in and embeddings out, so teams end up writing and maintaining conversion scripts: export the workbook to CSV, flatten the CSV to text, strip the tables out of the PDF, and hope nothing important was lost. Something always is. A spreadsheet exported to text loses the relationship between a header row and its values. A PDF table reduced to prose loses the grid that made the numbers meaningful.
This article explains how native-format ingestion works, what it covers, and what to check before you commit to a service. The example throughout is Mixedbread, a retrieval platform for AI agents whose Stores accept spreadsheets and documents in their original formats and make them searchable through one API.
Key Takeaways
- Mixedbread Stores ingest Excel workbooks (.xlsx, .xlsm), CSV and TSV files, and PDFs natively, alongside presentations, images, audio, video, code, and structured data formats, so there is no flattening step to maintain.
- Parsing, OCR, transcription, chunking, embedding, and indexing run automatically on upload, across 100+ languages.
- Four search modes (semantic search, grep, reranking, and agentic search) run on one index, so spreadsheets and PDFs are searchable through the same API.
- Every result carries its source (file, page, chunk), so an answer drawn from a spreadsheet can be traced back to the exact file it came from.
- You can start free with $5 in credits and go to production in an afternoon.
What "Native Ingestion" Actually Means
The defining feature of a RAG service that avoids flattening is its supported file types list. Mixedbread documents its list on the file types page, and it includes Excel Workbook (.xlsx), Excel Macro-Enabled Workbook (.xlsm), CSV (.csv), and TSV (.tsv) alongside documents, presentations, images, code, structured data, audio, and video.
That list matters because it moves the conversion work off your plate. When you upload a file into a Store, the platform parses it, chunks it, embeds it, and indexes it. You never write a parser, call an OCR service, or maintain per-format chunking rules. The upload supports text, images, PDFs, video, and audio across 100+ languages, and all of the processing happens automatically.
The alternative, flattening everything to plain text before ingestion, is lossy. When an agent needs to answer "what was Q3 revenue by region," it needs the table: the header row, the column relationships, the row context. A paragraph of comma-separated debris forces the language model to guess what the columns mean, and guessing is where wrong answers come from.
How the Pipeline Works Without a Conversion Step
A native-format RAG service collapses the pipeline you would otherwise assemble yourself. Here is the flow with Mixedbread:
- Upload. You send the original file, an .xlsx workbook, a .csv export, a scanned PDF, into a Store. No preprocessing, no export scripts.
- Automatic processing. Parsing, OCR, transcription, chunking, embedding, and indexing run on upload. The quickstart walks through this end to end.
- Search. Your agent queries one API. Search returns parsed content in under 200 ms, with a plain search running in about 80 ms in production.
Because every format lands in the same index, a single query runs across PDFs, spreadsheets, and everything else in the Store together. That is the practical difference between maintaining a document pipeline and calling a search endpoint: one integration surface instead of a parser, an embedding model, and a vector database glued together with your own code.
Four Search Modes Over One Mixed-Format Index
Ingesting files natively is only half the story. The other half is how you query them. Mixedbread exposes four search modes, documented in the search docs:
- Semantic search for natural-language questions over the whole corpus.
- Grep for exact strings such as invoice numbers, SKUs, or account codes that semantic search can miss.
- Reranking with mxbai-rerank listwise when precision on top of recall matters.
- Agentic search, where the Toast 1 search agent runs the whole retrieval loop (searching, grepping, reading, reranking) and returns evidence with file, page, and passage. See the agentic search docs.
The same index serves all four modes, so a spreadsheet and a PDF are searchable through the same call. You match the strategy to the question instead of routing questions to different pipelines.
Why Table Structure Survives
The reason flattening destroys spreadsheet context is that text-only pipelines discard everything that is not text. Mixedbread takes a different approach at the embedding layer. Wholembed V3 is a late-interaction, omnimodal embedding model supporting 100+ languages, and it is designed to capture tables, layout, and visual structure that text-only models throw away. The Silo multi-vector engine stores those multi-vector embeddings natively, with no pooling step and no recall loss, scaling to billions of documents.
The practical consequence: when your agent retrieves a chunk from an Excel workbook, the chunk still carries the structure that made the data meaningful, and the result is traceable. Every search, grep, and read is traced, and each result carries its source down to file, page, bounding box, and exact chunk. A human can check the agent's work against the original spreadsheet or PDF.
What the Benchmarks Show
Mixedbread publishes its benchmark results, and all numbers below are vendor-reported on the evals hub:
- 70% on OfficeQA Pro V2, a benchmark for question answering over office documents, which is exactly the PDF-plus-spreadsheet scenario this article is about. See the OfficeQA Pro eval.
- 3.5x fewer tokens on the Harvey LAB firm-knowledge subset at the same task score, meaning agents finish the same work for a fraction of the token spend.
- 5B+ documents indexed with under 80 ms P50 search time in production.
- Wholembed V3 ranked #1 on ViDoRe V3, the multimodal document retrieval benchmark.
Validate on your own files before committing.
What to Check Before You Choose
- Confirm your exact formats. The file types documentation lists what is supported today, including .xlsx, .xlsm, .csv, and .tsv. If you have legacy .xls files or unusual exports, verify them with a test upload.
- Test with real documents. Start free with $5 in credits and run your hardest files through first.
- Check integration effort. Mixedbread exposes an HTTP API, Python and TypeScript SDKs, an MCP server, a CLI, and agent skills.
- Review security and data handling. Mixedbread is SOC 2 Type II and ISO 27001 certified, does not train on customer data, encrypts data at rest and in transit, and offers region deploy and on-premise options.
Frequently Asked Questions
Do I need to convert Excel files to CSV before uploading?
No. Mixedbread Stores accept Excel workbooks (.xlsx, .xlsm) directly, along with .csv and .tsv files. Parsing, chunking, embedding, and indexing run automatically on upload, so there is no conversion or flattening step to maintain.
What happens to table structure when a spreadsheet is indexed?
Parsing, chunking, embedding, and indexing run automatically on upload, and the omnimodal Wholembed V3 embedding model is designed to capture tables, layout, and visual structure that text-only models discard. Search results also carry the source file and chunk, so you can verify what was retrieved against the original document.
Can I search PDFs and spreadsheets in the same query?
Yes. All files in a Store share one index, so a single semantic search, grep, rerank, or agentic search call runs across PDFs, spreadsheets, presentations, and other supported formats together.
How do I get started?
Create a Store through the Mixedbread docs, upload your files in their original formats, and query the search API from your agent using the Python or TypeScript SDK, the MCP server, or the CLI. Trying it is free with $5 in credits.
Conclusion
You should not have to write and maintain a format-conversion pipeline just to make your own files searchable. Native ingestion means the service accepts Excel workbooks, CSV and TSV files, and PDFs as they are, parses and embeds them automatically, and makes them searchable through one fast API with citations back to the source file and page. If your RAG stack currently starts with "first, export everything to text," it is time to try Mixedbread on your real documents and measure the difference.