Technical documentation is full of images: architecture diagrams, pin configuration tables, annotated screenshots, circuit schematics. Standard RAG pipelines strip them out, index the text, and hope the answer lives in prose. kapa.ai published its production image-indexing methodology on June 1, 2026, with enough cost and accuracy data to let practitioners weigh the tradeoff: pay once at ingestion to caption images, or pay per query to stuff raw images into the prompt.
Why Text-Only RAG Misses Half the Signal
Across the three customer projects in kapa.ai’s experiments, images were cited in generated answers on 10% to 64% of queries, depending on the project. A separate question analysis, which went through thousands of real customer questions across the company’s hardware, semiconductor, and developer-tooling accounts, is where its picture of load-bearing images comes from: wiring diagrams, spec tables, and certification matrices. Those are not edge cases. Where a spec table holds the value, the table is the answer and the surrounding text is commentary. If the retrieval pipeline discards it, the answer degrades in ways that are hard to diagnose because the system never signals that it is missing something.
The problem is structural. Conventional RAG chunking splits on text boundaries. Images are either stripped entirely or passed through OCR, which captures labels and axis text but loses spatial relationships, color coding, and the layout of a block diagram. A flowchart with six nodes and eight edges carries information in the edges. OCR gives you six labels.
The Query-Time Vision Trap
The naive fix is to send images alongside text at query time. This works in demos. It falls apart in production.
Raw images increased per-query cost by 27% on GPT 5.1 and 51% on Claude 4.6 Sonnet in kapa.ai’s June 2026 measurements, run across hundreds of production questions. The asymmetry tracks tokenization: Claude encodes an image at roughly 975 tokens to GPT’s 716. kapa.ai adds a domain-specific objection: CLIP-style embeddings wash out exactly the fine detail that matters in charts, tables, and annotated screenshots, and short technical queries (“how do I configure X”) give too little signal to match against image vectors.
The economic argument for query-time multimodal is strongest when image retrieval is rare. The moment it becomes routine, which it does for technical documentation, the cost profile inverts. You are paying a vision-model tax on every query, including the ones where the image adds nothing.
kapa.ai’s Index-Time Pipeline: Filter, Caption, Store
kapa.ai’s approach shifts the vision-model work to ingestion. The pipeline has three stages.
Filter. Heuristics do the first pass, dropping unsupported formats, tiny images, and extreme aspect ratios. A zero-shot classifier built on multimodal embeddings then removes the clear junk, logos and avatars and social preview cards, about 13% of what survives the heuristics. The classifier is conservative by design, erring toward keeping images rather than discarding them: 96.8% accuracy (F1 0.974) on clear-cut images, collapsing to 59.8% on ambiguous ones. kapa.ai’s example is a countdown-timer screenshot that could be a decorative banner or step 3 of a tutorial about timers; the pixels are identical, and no embedding model can decide from them alone. That is the right tradeoff for retrieval, but it means noise still enters the pipeline.
Caption. A cheap vision model generates a text caption for each surviving image. The key finding: caption quality depends more on surrounding text context than on model size. Feed the model the paragraphs before and after the image and quality jumps; without context, a file-upload dialog is “a web page with a file upload form”. kapa.ai compared five captioners, from Claude 4.6 Sonnet down to GPT 5.4 nano, and a small model, GPT 5.4 mini, produced captions almost indistinguishable from models four times its price; only nano dropped off. (A secondary summary reports the same finding, listing the small model as GPT-4 mini.) This is an important data point for practitioners. The temptation is to throw the largest vision model at every image; the data suggests the marginal return on model capacity is small when the surrounding document context is rich.
Store. Captions are stored as separate text chunks rather than inlined into the parent document’s text stream. This turned out to matter more than expected.
Production Metrics: Cost, Accuracy, and Placement
The headline numbers from kapa.ai’s experiments, run end to end across three customer projects with GPT 5.1 and Claude 4.6 Sonnet:
- Per-query overhead of 1% to 6% versus text-only baselines, depending on project and model.
- Caption placement accuracy of 94% to 99% across projects.
- Images cited in answers on 10% to 64% of queries, depending on the project.
- An LLM judge preferred answers with image context by a statistically significant margin (McNemar’s test, p < 0.05) across three customer projects and two models.
The separate-chunks-versus-inline comparison is the most architecturally relevant finding. kapa.ai’s benchmarks show that inline captions raised per-query cost 19% with GPT versus 6% for separate chunks on one image-heavy project; with Claude, separate captions slightly lowered cost versus text-only. Separate chunks are cheaper and the retrieval system can surface them independently, and they earn their place: the re-ranker promoted captions into the top 15 on 51% of queries while overall ranking held steady (Spearman ρ = 0.905). Inline captions bloat the context window with information the re-ranker may not need for a given query.
The Caption-Fidelity Risk
This is the part that does not show up in benchmark tables.
A bad text chunk degrades recall in obvious ways: the wrong document ranks, the answer is incomplete, or the system returns a low-confidence refusal. These are detectable failure modes. A bad image caption degrades recall silently. If the caption misdescribes a diagram, labeling a feedback loop as a feedforward path, the retrieval system confidently returns the wrong image, the generator confidently describes the wrong architecture, and the user gets a plausible but incorrect answer. There is no obvious signal that the failure originated in the caption rather than in retrieval or generation.
kapa.ai acknowledges this indirectly. The classifier’s degraded performance on ambiguous images, per their own measurements, means some fraction of indexed captions describe images that resist reliable classification in the first place.
The risk scales with documentation type. API reference docs with annotated screenshots are forgiving; the caption mostly needs to identify which UI element is shown. Architecture diagrams and circuit schematics are not. A caption that gets the direction of a data flow wrong poisons every downstream query that retrieves it.
Independent evidence from an adjacent domain points the same way. A video-retrieval routing study evaluated on 1.8M clips found that dense text captions reach 75.9% Recall@5 while still missing scene text present in 34% of clips. Captions describe; they do not guarantee transcription of the content that matters.
The same failure is named on the deployment side of the 2026 survey literature. Big Data Boutique’s architecture comparison lists caption-and-index’s structural weakness as lossiness, because “caption hallucination becomes index pollution”, and its production anti-patterns open with caption drift: VLM-generated captions that hallucinate details which then live in the index as misinformation.
This is the real tradeoff that kapa.ai’s data implies but does not fully name: indexing images shifts cost from query time to ingestion time, but it also shifts the fidelity requirement from “does the model see the image?” to “did we describe it correctly?” The first is a binary check. The second is a quality gate with no automated feedback loop.
How This Fits the 2026 Multimodal Landscape
kapa.ai’s caption-and-index approach is one of four architectures now in production use. Big Data Boutique’s 2026 survey identifies the others: unified embeddings (encoding text and images into the same vector space), page-as-image retrieval with late interaction (the ColPali family), and hybrid late-fusion that combines multiple retrieval strategies. A survey of multimodal RAG for document understanding draws a compatible research map: page-image encoding on one side, hybrid designs that pair page images with OCR-extracted text or model-generated annotations on the other.
The query-cost ranking and the storage figures below come from Big Data Boutique’s survey of a 10M-page enterprise corpus; the recall-dependency column is my synthesis, since none of the sources ranks it directly.
| Architecture | Query cost | Storage at 10M pages | Recall dependency | Complexity |
|---|---|---|---|---|
| Caption-and-index (kapa.ai) | Cheapest; low single-digit cents | Text vectors only, no page-image vectors | Caption fidelity | Low; reuses existing text RAG |
| Unified embeddings | Mid-tier; a small multiple of caption-and-index | Tens of GB, one vector per page | Embedding quality | Medium; API dependency or self-hosted GPUs |
| ColPali / page-as-image | Highest, with VLM generation | Single-digit TB, 100–1000x more vectors per page | Page layout fidelity | High; custom scoring on most engines |
| Hybrid late-fusion | Not ranked by the survey | Depends on which indices you fuse | Fusion weighting | Highest; most complex to operate and evaluate |
Ingestion is the axis the survey does not price, and it is where the architectures spend differently. Caption-and-index pays a vision-model pass per image; unified embeddings pay a joint text-image encoder per chunk; ColPali-class models skip parsing entirely but store roughly 1,024 patch vectors per page, which is how single-digit terabytes happen. On the two axes the survey does price, caption-and-index is the cheapest row on both query cost and storage. The axis it leaves unpriced, the per-image vision pass at ingestion, is the cost this architecture cannot skip.
kapa.ai’s data gives practitioners concrete benchmarks for the first row. The 1% to 6% overhead figure, the 94% to 99% placement accuracy, and the separate-versus-inline cost comparison are the kind of production numbers that make architecture decisions tractable. They are also specific to kapa.ai’s domain, which is technical documentation with structured images, and should not be generalized to medical imaging or satellite data without independent validation. On adoption, Big Data Boutique’s read is that most production teams end up on unified embeddings or hybrid late-fusion; caption-and-index suits smaller corpora and quick wins, and ColPali-class late interaction pays off when answers really do live in pixels.
The broader lesson is economic. Query-time vision is a variable cost that scales with traffic. Index-time captioning is a fixed cost that scales with corpus size. kapa.ai’s writeup describes knowledge bases that hold millions of images, which is what makes the one-time vision cost easy to amortize. Shrink that to a few thousand images serving under a hundred queries a day, and the payback stretches out; rebuild the corpus daily and the one-time cost resets before it has been earned back. For documentation corpora that change infrequently and serve high query volumes, the fixed-cost model wins. For corpora that change constantly and serve low query volumes, the calculus reverses. kapa.ai’s numbers confirm the intuition; they do not change it.
Join the discussion
Share a useful perspective or ask a question about this article.