What Happened
Elasticsearch is adding two capabilities that change where RAG teams can prepare and retrieve data. In Elasticsearch 9.6, technical-preview document extraction converts PDFs, scanned pages, images, and web pages into Markdown for indexing. Text-layer PDFs use text extraction by default; OCR and layout processing handle scans and more complex documents. A request covers at most 35 PDF pages, or a selected page range [1].
Technical-preview ES|QL Data Federation queries Parquet, NDJSON, CSV, and TSV files in Amazon S3 without first copying them into an Elasticsearch index. Teams register an S3 data source and dataset, then can query external files alongside indexed data. The preview is available in Elastic Cloud Serverless, with Elasticsearch 9.6 availability for Cloud Hosted and self-managed deployments expected in early December 2026 [2][3].
Why It Matters to Businesses
These capabilities support two different retrieval needs. Index documents when low-latency, relevance-ranked retrieval is essential; extract their text, preserve document metadata, and use semantic or hybrid search to find evidence for an answer. Query data in place when copying it is unnecessary or too costly; federation can help an application consult archived or structured S3 data alongside an index [1][2]. Federation is not a substitute for a tuned document-retrieval index: query latency, ranking behavior, and source freshness still need testing against the application’s workload.
For teams using LlamaIndex, LangChain, or Haystack with Weaviate, Pinecone, Qdrant, Milvus, Elasticsearch, or Vespa, the broader practice is to separate ingestion, retrieval, and answer generation. Choose storage and search components against measured relevance, access-control, latency, and operating-cost requirements—not the assumption that every source needs an embedding.
Kimbodo Engineering Perspective
The most consequential choice is what becomes searchable evidence. Markdown extraction can retain useful structure, including tables rendered as HTML and formulas as LaTeX, but OCR and layout interpretation can still distort facts [1]. We would retain the original file, page references, extraction method, and version so a retrieved passage can be checked against its source.
Federation reduces ingestion work but moves some cost and uncertainty to query time. Elasticsearch reports substantial speedups for selected federated query patterns, including filtering and SORT + LIMIT; those figures are optimization results, not a latency guarantee for a specific RAG application [3]. We would benchmark representative S3 files, joins, and concurrent requests before putting federation on an interactive answer path.
How We Would Implement It
- Classify sources: identify documents that need ranked passage retrieval, structured files suited to in-place queries, and data that must remain outside the answer workflow.
- Build a traceable document pipeline: extract text or OCR as needed, validate sampled pages and tables, split content into source-linked passages, and index with metadata for permissions, version, and page location. Evaluate keyword, vector, and hybrid retrieval on real user questions [1].
- Add federation selectively: register an S3 data source and datasets for supported file layouts; use scoped queries or views to combine external data with indexed records where that improves an answer [2]. Keep frequently used, latency-sensitive evidence indexed.
- Constrain generation: pass only authorized retrieved passages or query results to the model, require citations to underlying records, and measure answer correctness, retrieval recall, latency, and refusal behavior before release.
Risks, Costs and Security
Both new capabilities are in technical preview, and federation is off by default and requires an Enterprise subscription; APIs, performance, packaging, and availability may change [2][3]. Document extraction also has an Enterprise subscription requirement. Its stated base price is $0.075 per million tokens in Elastic Consumption Units, but OCR can consume tokens at much higher rates and OCR or layout processing is also billed per page. Model representative scanned documents before estimating production cost [1].
Use least-privilege S3 access, enforce document- and tenant-level permissions before retrieval, and audit what enters prompts. Treat extracted pages and external files as untrusted input: they can contain prompt-injection instructions as well as sensitive data. Set query and answer budgets, verify source freshness, and retain a fallback path if a preview service or external dataset is unavailable.
Where Kimbodo Comes In
Kimbodo builds and operates this in production for businesses — see our RAG Development Services practice, or Estimate My RAG System.