Top-K retrieval always returns results-even when nothing relevant exists. This post introduces a confidence layer framework that gives agents the ability to say ‘I’m not confident enough to act,’ using OpenSearch primitives like normalization processors, min_score, script_score, and reranking via ML Commons. The post Beyond Top-K: Building search-confidence guardrails for agentic AI with OpenSearch appeared first on OpenSearch .