Skill 5.1.4

Configure RAG ingestion flow, including documents and using optical character recognition (OCR)

Key Concepts

A typical flow: the indexer reads documents from storage; the OCR skill (with image extraction enabled in the indexer) or the Document Layout skill reads text from scans and embedded images; a merge skill combines OCR text with the document text; the text split skill chunks the content into pages of a set length with overlap; an embedding skill vectorizes each chunk; and index projections write each chunk as its own index document with a parent ID, title and source path for citations.

This pattern is called integrated vectorization, and the Import data wizard in the Azure portal generates it, including a vectorizer for queries. Chunk size balances precision against context: small chunks retrieve precisely but may lose context, large chunks keep context but dilute relevance. Layout-aware chunking by section keeps tables and headings intact, and the parent ID lets the application retrieve neighbouring chunks or the whole section when needed.