Monitoring Ingestion, Index Health and Retrieval Relevance
This lesson explains how to monitor the retrieval side of a grounded solution, where the index is a dependency as critical as the model: documents can fail to ingest, indexes can fall behind their sources and relevance can degrade after changes.
Learning outcomes
After completing this lesson, you will be able to:
- Identify ingestion problems from indexer run history.
- Interpret Azure AI Search metrics for latency and throttling.
- Measure relevance with a labelled query set and metrics such as recall at k.
Ingestion quality
Ingestion is the process that brings source content into a search index: an indexer reads documents from a data source, extracts their text, runs any enrichment skills, such as chunking and embedding, and writes the results to the index. Ingestion quality is the degree to which the index contains all of the source content, complete and correctly processed. A document that fails to ingest cannot be retrieved, so the model answers as if the document did not exist, and nothing in the chat application reports the gap. Monitoring ingestion therefore starts with the indexer's own records.
Each indexer run records its status, start and end time, the number of items processed and failed, and detailed errors and warnings. Typical problems include unsupported or encrypted files, documents that exceed size limits, content truncated during cracking, skills that time out or receive throttling errors from the embedding model, and field mapping errors. The indexer status API, the Azure portal and diagnostic logs expose these results; alerts on failed items keep gaps from going unnoticed.
Ingestion quality also concerns content: empty chunks, duplicated documents, OCR text full of errors or chunks that split tables in half. Periodic sampling of indexed chunks, and debug sessions that show the enrichment tree for a single document, reveal these problems.
Index and service health
Azure AI Search metrics show search latency, search queries per second and the throttled search queries percentage; sustained throttling or rising latency indicates that more replicas are needed for query load, while storage limits indicate more partitions. Document counts per index, compared with the source, confirm completeness, and index statistics show vector index size against the tier's limits.
Replicas and partitions solve different problems, which is why the symptom decides the fix. A replica is a complete copy of the service's indexes; queries are spread across replicas, so adding replicas raises query throughput and keeps the service available while one copy is being updated or fails. Azure AI Search requires at least two replicas for its service level agreement on queries and three for queries and indexing. A partition holds a share of the index storage; adding partitions raises the amount of content, including vector data, that the service can hold and can speed up indexing, but it does not add copies for availability. The billable unit is replicas multiplied by partitions, so adding the wrong one raises cost without fixing the problem.
Replicas or partitions?
Relevance performance
Relevance is measured with a labelled query set: representative questions, each with the documents or chunks that should be returned. Metrics such as recall at k, precision at k and normalized discounted cumulative gain (NDCG) are computed before and after each change to chunking, embedding model, query type, scoring profile or semantic configuration. In production, search traffic analytics and traces show queries that return no results or low reranker scores, which are candidates for new content, synonyms or tuning.
Measure relevance
A growing gap
A knowledge base built on an Azure AI Search index over Blob Storage answers correctly about older documents but never about documents added in the last month. The indexer runs hourly and shows status Success.
A successful status can still include item-level failures and warnings. The engineer should inspect the execution history for failed items, check whether new documents are in a different folder or format (for example scanned PDFs with no text layer while image extraction is disabled), and compare the index document count with the number of blobs. Increasing the model size would not help because the content never reached the index.
Queries on an Azure AI Search service are throttled and latency is rising. What should be added?
Show answer
Replicas, which add query capacity. Partitions add storage instead.
Exam Tips
Remember for the exam
- Start with indexer execution history and item-level errors when content seems missing.
- Throttled queries or rising latency: add replicas. Storage limits: add partitions.
- Measure relevance with a labelled query set before and after every retrieval change.