News

Enterprise Agentic Retrieval in Amazon Bedrock with Observability

AWS guide and architecture for agentic retrieval with Managed Knowledge Bases, seven telemetry layers, and CloudFormation

4 min read
עב
Enterprise Agentic Retrieval in Amazon Bedrock with Observability
Based on original reporting byAWS Machine Learning ↗Translated and summarized by our AI-assisted news systemHow we work

Executive summary

5 things to know

  1. The solution is based on combining Amazon Bedrock Managed Knowledge Bases and AgentCore Gateway with the MCP protocol for routing across multiple knowledge bases.

  2. A Managed Knowledge Base includes automated ingestion, embedding, reranking, and indexing without requiring a self-managed vector database.

  3. The system implements seven observability and tracking layers in CloudWatch and X-Ray over automated OpenTelemetry instrumentation.

  4. Quality evaluation is conducted in two ways: on-demand via a driver notebook, and continuously (online) on live traffic.

  5. The entire infrastructure is deployed across four AWS CloudFormation stacks using a single deployment command.

In a post published on the AWS blog by Luis Felipe Yepez Barrios, an enterprise agentic retrieval architecture is presented, built on Amazon Bedrock Managed Knowledge Bases and Amazon Bedrock AgentCore, alongside a seven-layer observability and evaluation setup deployed entirely through AWS CloudFormation.

According to the authors, teams integrating Retrieval Augmented Generation (RAG) mechanisms into foundation language models usually start with a single retrieval step against a single knowledge base. This approach works for simple questions, but when complex queries require cross-referencing information across multiple sources or deciding which source to consult, an agentic retrieval solution is required. In this model, an agent analyzes the question, routes it to the appropriate knowledge base, executes iterative retrieval queries, and returns a grounded answer accompanied by explicit citations. However, operating within an agentic loop where decisions and repeated retrievals take place makes it difficult to observe the steps taken by the agent and evaluate the quality of the final answer.

From Classic RAG to Enterprise Agentic Retrieval

In classic RAG, only a single retrieval step and a single generation step are performed. In contrast, enterprise agentic retrieval places a reasoning-capable agent in the loop. The agent decides whether and what to retrieve, can execute multiple retrievals to refine results, selects the relevant knowledge base using semantic routing, and only then drafts a grounded answer with citations. This capability is provided as a native feature in Amazon Bedrock Managed Knowledge Base through the AgenticRetrieveStream API.

The post notes that Amazon Bedrock now offers a Managed Knowledge Base (Type: MANAGED), where the Bedrock service fully manages document ingestion, storage, indexing, and retrieval, including embedding and reranking using service-managed models by default, without requiring the provisioning, scaling, or maintenance of a dedicated vector database.

Compared to a customer-managed (DIY) knowledge base, a Managed Knowledge Base supports agentic retrieval (AgenticRetrieveStream) and integration with the AgentCore Gateway, which are not supported in the customer-managed model. In addition, the Managed Knowledge Base includes an auto-scaling data store fully managed by Bedrock, built-in managed models for embedding and reranking (with the option to select other models available in Bedrock), and requires no vector database infrastructure management.

Solution Architecture and the Four CloudFormation Stacks

The solution is deployed using four chained AWS CloudFormation stacks:

  1. Stack 01-knowledge-bases: Sets up an Amazon S3 bucket, two Managed Knowledge Bases (one for a financial corpus and one for a weather corpus), IAM settings, and data sources, as well as a custom resource to upload documents and trigger an initial sync.
  2. Stack 02-agentic-gateway: Sets up the Amazon Bedrock AgentCore Gateway (based on AWS_IAM authentication and the Model Context Protocol - MCP) with a dedicated target for each knowledge base built on the native bedrock-knowledge-bases connector, allowing each knowledge base to expose an AgenticRetrieveStream tool without requiring an AWS Lambda function or an extra container.
  3. Stack 03-agent-runtime: Provisions an Amazon ECR repository and an AWS CodeBuild project that builds an OpenTelemetry-instrumented Strands agent image, an Amazon Bedrock AgentCore runtime to host the agent, log and trace routing, and an online evaluation configuration.
  4. Stack 04-dashboards: Creates two dashboards in Amazon CloudWatch.

Data flow occurs across two routing levels: the agent's reasoning model performs cross-knowledge-base routing, where each knowledge base has a dedicated retrieval tool and the agent selects the tool matching the question's topic. Next, the AgenticRetrieveStream API performs the within-knowledge-base work: it decomposes the question into sub-queries, retrieves information iteratively, and synthesizes a grounded, cited answer streaming back to the agent through the Gateway. The agent evaluates whether the returned information is sufficient, and if not, executes another retrieval iteration before composing the final answer for the user.

Seven Observability Layers and Two Dashboards

The runtime environment produces metrics and traces that feed into Amazon CloudWatch and AWS X-Ray, organized across seven observability layers:

  • Layer 1 (L1 - KB-native metrics): Invocation, error, and throttle metrics per knowledge base, indicating service health and workload handling.
  • Layer 2 (L2 - Ingestion): Ingestion job status and document processing results at the individual file level.
  • Layer 3 (L3 - Agentic retrieval quality): Reference-free retrieval quality signals, including context utilization, grounded coverage, and duplicate rate. These metrics are defined without requiring chunk scores because the API returns a synthesized and cited answer.
  • Layer 4 (L4 - Gateway / MCP metrics): Tool-call volume and latency at the Gateway.
  • Layer 5 (L5 - OTEL span tree): A full trace tree of the agent's Reason-and-Act loop, displaying every step executed.
  • Layer 6 (L6 - Token usage): Tracking of token consumption (gen_ai.usage) per session and model.
  • Layer 7 (L7 - Evaluation scores): Evaluation scores covering Correctness, Faithfulness, Tool-Selection Accuracy, and Response Relevance.

Layers 1, 4, and 5 are emitted automatically, while Layers 3, 6, and 7 are published as custom metrics from the driver notebook. The system includes two dashboards: Dashboard A, which presents an end-to-end agentic observability view (for example, for N queries, approximately N agent invocations, 2N retrievals, 3N model calls, and 5N Gateway MCP operations are shown), and Dashboard B, which presents operational and spend-related data specific to each knowledge base (index size in bytes, retrieval volume, agentic calls, and token usage).

Quality Evaluation: On-Demand vs. Continuous

The solution provides two methods for evaluating answer quality:

  1. On-Demand Evaluation: The driver notebook invokes AgentCore Evaluate using an LLM-as-judge across each session's traces for correctness, faithfulness, and tool-selection accuracy metrics, publishing the results to CloudWatch as Layer 7. This approach fits development and pre-release testing stages, where costs are incurred only for deliberate executions.
  2. Continuous (Online) Evaluation: Stack 03 provisions an AWS::BedrockAgentCore::OnlineEvaluationConfig resource that samples live sessions and automatically computes scores within the CloudWatch console without running a notebook. In the post's example, a 100% sampling rate was set purely for demonstration purposes, but the authors emphasize that in production environments, the sampling percentage should be aligned with organizational budget and policies, as each sample invokes an LLM-as-judge and incurs additional costs.

Dataset, Prerequisites, and System Management

The dataset in the solution contains two separate corpora designed to demonstrate semantic routing: a synthetic financial corpus (Octank Financial 10-K report of approximately 198 KB) and a real weather corpus from a U.S. Congressional Research Service report on tornadoes (IF12695 of approximately 560 KB). During ingestion, Bedrock automatically performs parsing, chunking, embedding, and indexing without requiring manual parameter configuration.

Prerequisites include an AWS account with permissions for Bedrock, AgentCore runtime, AgentCore Gateway, IAM, CloudWatch, X-Ray, ECR, CodeBuild, S3, Lambda, and CloudFormation; access to the agent model (default us.anthropic.claude-haiku-4-5-20251001-v1:0); CloudWatch Transaction Search enabled; AWS CLI v2; and a Python 3.13 environment with boto3 version 1.43 or higher. Deployment is executed by running the deploy.sh script, and after use, all four stacks can be deleted in reverse dependency order using the cleanup.sh script.

Was this useful for your business?

Questions & Answers

FAQ

This article was produced by our AI-assisted system through translation, summarization, and automated quality controls based on original reporting by AWS Machine Learning. Read about our editorial process. Link to the original source.

Get useful AI updates by email

A concise digest from our news desk.

More from AWS Machine Learning

All articles from AWS Machine Learning
מחבר AI של Meta ads זמין כעת ב-AWS Quick
מוצר חדש
4 דקות
מ־AWS Machine Learning

מחבר AI של Meta ads זמין כעת ב-AWS Quick

בפוסט שפורסם ב-AWS, הודיעו כריס גייגר ומארק בוטו על הוספת מחבר בינה מלאכותית עבור Meta ads בתוך AWS Quick. המחבר מעניק גישה לפעולות שרת של Model Context Protocol (MCP) ומאפשר למפרסמים ליצור, לנהל ולנתח קמפיינים באמצעות שפה טבעית, תוך חיבור לרשת ניהול המודעות של מטא. הכלי מאפשר למשווקים למשוך תובנות ביצועים, ליצור קטלוגי מוצרים, לערוך קמפיינים ולשלב נתוני מטא עם מקורות נתונים פנימיים וחיצוניים לצורך בניית לוחות מחוונים, מצגות ותהליכי עבודה אוטומטיים. בנוסף, המערכת דורשת אישור משתמש לפני ביצוע פעולות כתיבה בחשבונות המודעות, כגון שינוי תקציב או יצירת קמפיין חדש.

קרא עוד
AWS Quick מציגה תהליכים מורחבים, ממשק רשת מעודכן ותיאום סוכנים
מוצר חדש
4 דקות
מ־AWS Machine Learning

AWS Quick מציגה תהליכים מורחבים, ממשק רשת מעודכן ותיאום סוכנים

חברת AWS הכריזה על עדכונים לסביבת העבודה AWS Quick. העדכונים מאפשרים לבנות ולשפר תהליכים עסקיים (Flows) באמצעות שיחה בצ'אט, כולל שילוב שלבים דטרמיניסטיים, תהליכים ממושכים ותמיכה בנפחי נתונים גדולים. אפליקציית הרשת המעודכנת מוסיפה תדריך יומי, מסך בית מתועדף והמשך ריצה של סוכנים ברקע גם לאחר סגירת הדפדפן. בנוסף, המערכת תומכת כעת בתזמור של מספר סוכנים במקביל דרך הנחיה בודדת, מוסיפה מחברים חדשים ל-Meta ads ו-Amplitude, וכוללת בקרות אבטחה והרשאות לפי קבוצות עבור תוכניות Professional ו-Enterprise. התכונות זמינות בכל האזורים שבהם השירות פועל.

קרא עוד
שכפול קול ב-Amazon Polly: זמינות במתכונת שחרור מבוקר
מוצר חדש
4 דקות
מ־AWS Machine Learning

שכפול קול ב-Amazon Polly: זמינות במתכונת שחרור מבוקר

שירות Amazon Polly השיק יכולת שכפול קול (voice cloning) הזמינה כעת במסגרת שחרור מבוקר (gated release). היכולת מאפשרת להפיק קול מותאם אישית מתוך מספר דקות של הקלטות של דובר שהסכים לכך, על גבי המנוע היוצר (generative engine) של השירות. השירות תומך בשבע שפות: אנגלית, ספרדית, גרמנית, צרפתית, איטלקית, פורטוגזית והינדי, כאשר כל קול פועל בשפה שבה הוקלט. ההקלטות אינן נשמרות לאחר יצירת הקול ואינן משמשות לאימון מודלים, והגישה לקול מוגבלת לחשבון שיצר אותו עם תמיכה בהצפנת AWS KMS וניהול הרשאות ב-IAM. יצירת הקול ניתנת ללא עלות, והשימוש בסינתזה מחויב לפי צריכה.

קרא עוד
תמיכה ב-Private CA ב-Amazon Bedrock AgentCore Identity
מדריך
5 דקות
מ־AWS Machine Learning

תמיכה ב-Private CA ב-Amazon Bedrock AgentCore Identity

בפוסט שפורסם בבלוג של AWS, הוכרזה תמיכה בתעודות רשות אישורים פרטית (Private CA) במסגרת AgentCore Identity, יכולת של Amazon Bedrock AgentCore. יכולת זו מאפשרת לסוכני בינה מלאכותית להתחבר לספקי זהות פרטיים כמו Keycloak המאוחסנים ברשת פנימית, תוך מתן אמון ב-CA הארגוני. התעודה בפורמט PEM נשמרת ב-Secrets Manager או ב-S3 ומאומתת מול נקודות הקצה של ה-IdP דרך Amazon VPC Lattice. הפוסט מפרט את אופן ההגדרה, שלבי הניטור ב-CloudWatch ותהליך ביצוע רוטציה ללא השבתה.

קרא עוד

More articles you might like

All articles
Pipedream סוגרת את Workflows: מדריך לייצוא והעברת תהליכים
חדשות
5 דקות
מ־Zapier

Pipedream סוגרת את Workflows: מדריך לייצוא והעברת תהליכים

בפוסט שפורסם בבלוג של Zapier נמסר כי שירות Pipedream Workflows ובונה סוכני ה-AI בשם String ייסגרו ב-31 במרץ 2027. נתוני תהליכי העבודה, לרבות פרטי ההתחברות וטוקני ה-OAuth של החשבונות המחוברים, יימחקו לצמיתות עד ל-30 באפריל 2027. לעומת זאת, שירות Pipedream Connect אינו מושפע מההחלטה וימשיך לפעול כרגיל. הפוסט מפרט כיצד לייצא את הפרויקטים הקיימים מקובצי JSON ולבנות אותם מחדש כ-Zaps ב-Zapier באמצעות כלי AI או כתיבת קוד ישירה. כמו כן, נסקרות חלופות שונות ובהן n8n ו-Make, לצד ניתוח הפשרות התפעוליות ודרישות התחזוקה בכל אחת מהן.

קרא עוד
אינפורמטיקה ומיקרוסופט מרחיבות שיתוף פעולה ב-AI ונתונים
חדשות
4 דקות
מ־Salesforce News

אינפורמטיקה ומיקרוסופט מרחיבות שיתוף פעולה ב-AI ונתונים

אינפורמטיקה הכריזה בכנס Microsoft Ignite 2026 על הרחבת שיתוף הפעולה שלה עם מיקרוסופט, במטרה לשלב מודיעין נתונים, איכות נתונים, שושלת נתונים וממשל בתוך סביבות Copilot, Microsoft Foundry ו-Microsoft Fabric. השילוב מאפשר למשתמשים עסקיים ב-Copilot וב-Teams לגשת להגדרות עסקיות ומדדי מהימנות, בעוד שמפתחים ב-Foundry מקבלים כלי ממשל וזהות מבוססי פרוטוקול Model Context Protocol (MCP) לבניית סוכני בינה מלאכותית המעוגנים בנתונים ארגוניים. במקביל, אינפורמטיקה מרחיבה את סריקת הנתונים ב-Fabric למחברות קוד וצינורות נתונים, ומוסיפה נקודת אספקה חדשה של תשתית הנתונים שלה ב-Azure בחוף המזרחי של ארה"ב.

קרא עוד
AT&T מעצבת מחדש תהליכים עסקיים באמצעות סוכני בינה מלאכותית
חדשות
3 דקות
מ־SiliconANGLE AI

AT&T מעצבת מחדש תהליכים עסקיים באמצעות סוכני בינה מלאכותית

לפי דיווח של פול גילין ב-SiliconANGLE, חברת AT&T מרחיבה את השימוש בסוכני בינה מלאכותית אוטונומיים לצורך עיצוב מחדש של תהליכים עסקיים שלמים בארגון. כיום מפעילה החברה קרוב ל-500 תהליכי עבודה מבוססי סוכנים בסביבת ייצור ומתכננת לשלש את מספרם בשנה הבאה, תוך עיבוד של כ-45 מיליארד טוקנים ביום ויותר ממיליון עסקאות בחודש. במקום להסתפק באוטומציה של משימות נקודתיות, החברה הקימה את קבוצת Business Agent Foundry הממפה תהליכים ומבטלת שלבים מיותרים ותלויות במערכות ישנות. הארכיטקטורה של AT&T מבוססת על מספר קטן של סוכנים ולוגיקה עסקית מרכזית, עם פיקוח אנושי ראשוני על כל תהליך עד להגעה לדיוק של מעל 90%.

קרא עוד
תשקיף Anthropic חושף את האסטרטגיה לשימור לקוחות ארגוניים
חדשות
3 דקות
מ־TechCrunch

תשקיף Anthropic חושף את האסטרטגיה לשימור לקוחות ארגוניים

לפי דיווח ב-TechCrunch, חברת Anthropic הגישה לרשות ניירות הערך של ארצות הברית (SEC) תשקיף הנפקה (טופס S-1), המפרט את האסטרטגיה העסקית שלה לשימור לקוחות ארגוניים באמצעות מערכת אקולוגית רב-מוצרית. המסמכים מלמדים כי יותר ממחצית מהלקוחות בעלי הוצאה שנתית של לפחות 100,000 דולר משתמשים כיום הן בפלטפורמת Claude והן באפליקציות מבית החברה כמו Claude Code או Cowork, לעומת כ-30% בסוף השנה שעברה. במקביל להתרחבות זו, אשר תרמה לשיעור שימור הכנסות נטו של כ-900% בסוף הרבעון השלישי, התשקיף מפרט גם אתגרים עתידיים, לרבות תחרות מול שותפות הענן הגדולות וסיכוני ריכוזיות לקוחות.

קרא עוד