Skill 1.1.3
Choose an appropriate method for retrieval and indexing
Key Concepts
Keyword search (BM25 full-text ranking) finds exact terms such as product codes, error numbers and names. Vector search finds passages with similar meaning even when the words differ. Hybrid search runs both and merges the results with Reciprocal Rank Fusion (RRF), and the semantic ranker reranks the merged top results with a language model and can return captions and answers. For most retrieval-augmented generation (RAG) workloads, hybrid search with semantic ranking gives the best relevance. Agentic retrieval adds LLM query planning: it splits complex, multi-part or conversational questions into focused subqueries, runs them in parallel and merges the results with references.
Indexing choices follow the content. Text documents are split into chunks (for example 500 to 1,000 tokens with overlap) and embedded; scanned documents need optical character recognition (OCR) or layout analysis first; tables and headings are preserved best by layout analysis with Markdown output; images are either described in text (image verbalization) or embedded with a multimodal embedding model. Metadata such as department, product, date and permitted groups is stored in filterable fields so that queries can be restricted. Pull-based indexers keep supported sources such as Azure Blob Storage synchronized; the push API suits sources that indexers do not support.