Architecture layers and end-to-end flow
The following sections describe the layers that make up the AWS Context architecture and the end-to-end flow that brings a source into an Agent Context and serves it to your agents.
The following diagram shows how AWS Context brings data from your sources into an Agent Context and serves governed context to your agents.
AWS Context information architecture
The following list describes each part of the diagram:
-
Data source connections and ontologies – AWS Context connects to several kinds of source. These include AWS data sources through AWS Glue Data Catalog, third-party catalogs and databases, Amazon Bedrock Managed Knowledge Bases, third-party applications, and unstructured sources such as documents and files. Ontologies sit with these sources. You import an ontology or have AWS Context induce one from your data, and you reuse it across sources.
-
Connection configuration and ingestion – A connection configuration is a persistent setup that stays in sync automatically. It selects sources, chooses an ontology for extraction, and sets filters and scope. Through the connection configuration, you configure ingestion, the entry point to the graph. Ingestion turns a structured schema into table and column nodes without extraction. It turns unstructured text into entities and relationships through ontology-guided extraction.
-
Context customization – You run some tasks once, then they are done. You import an ontology into the graph, analyze data dictionaries, and load gold queries.
-
Agent Context – The Agent Context holds the graph. It combines structured data nodes, such as databases, tables, and columns, with domain types from your ontology and unstructured extracted entities. It also includes AWS Glue Data Catalog (GDC) business context, such as business glossaries, data lineage, and reference links. Linking edges connect all node types.
-
Continuous enrichment – Background jobs run continuously. They perform entity and ontology linking, recency and frequency, entity resolution, staleness detection, and feedback analysis. They watch the Agent Context and send updates back to it.
-
Curation policy and validation – A curation policy governs every update. It applies changes automatically or holds them for human review. You validate the graph with the chat agent and quality evaluation.
-
Interfaces and agents – Agents and applications reach the graph through interfaces. These include Kiro, AWS Quick, Amazon Bedrock AgentCore, Strands, SDK and agent frameworks, and any MCP client. The interfaces are the Agentic Search APIs, MCP tools, and a Amazon Bedrock AgentCore Gateway target. Agents search and traverse the graph to get the right context for each task.
-
Feedback sources – Agent session traces come from agents that use AWS Context. External agents also send traces through the
PutTraceAPI. These traces flow back as feedback that improves the context over time. -
Identity-scoped access – Every request returns only the data that its caller is authorized to see.
Architecture layers
The AWS Context architecture has four horizontal layers. Requests flow down from the top layer, and governed context flows back up to the agents that request it. From top to bottom:
-
Consumption – The top layer holds the agents and tools that consume context. These include AWS agents, models, and frameworks such as Kiro, AWS Quick, Amazon Bedrock AgentCore, and Strands Agents. They also include Model Context Protocol (MCP)-compatible frameworks and other agent tools.
-
Interfaces – The band where consumers reach AWS Context for search, retrieval, and feedback. Consumers connect through the Agentic Search APIs, MCP tools, and an Amazon Bedrock AgentCore Gateway target.
-
AWS Context – The service itself. It runs ingestion and extraction to bring your sources in, links sub-graphs into one consolidated Agent Context through shared ontology types, applies your curation policies as the gate for every change, and scopes every request by identity.
-
Data sources – At the bottom, AWS Context connects to your sources where they live. It ingests cataloged metadata from AWS Glue Data Catalog, such as metadata for Amazon S3. Databases such as Amazon Aurora, Amazon RDS, Amazon Redshift, and Amazon DynamoDB reach the Agent Context through {GLU} connections. It also connects to third-party catalogs such as Snowflake Horizon and Databricks Unity Catalog. It reaches unstructured content through Amazon Bedrock Managed Knowledge Bases, which draw from repositories such as SharePoint, OneDrive, Google Drive, and Confluence.
End-to-end flow
An Agent Context moves through a repeatable lifecycle, from the sources where your data lives to the agents that consume governed context. You control the boundaries at each stage: which sources to connect, which ontologies to apply, which curation policies to enforce, and which changes held for review to accept.
-
Connect to your sources – A connection is an independent resource that links to one source where your data lives. Your data stays in the source. When you create an Agent Context, you choose which connections to include. You can configure each connection to scope it to specific assets, such as particular database tables or document types. For more information, see Connecting data sources.
-
Ingestion and connection configuration – Ingestion is the entry point to an Agent Context. It brings source data into the graph according to a connection mapping, producing a sub-graph of new or updated nodes and edges. How a source is ingested depends on its kind:
-
Structured sources (such as AWS Glue Data Catalog and Databricks catalogs) are ingested from their schema and metadata as database, table, and column nodes, using the built-in data ontology. You don’t need extraction, because the schema already provides the structure.
-
Unstructured sources (such as Amazon Bedrock Managed Knowledge Bases and SharePoint documents) are ingested with extraction, which analyzes the document text and produces graph-ready entities from the raw content.
Ingestion usually runs automatically, such as when a AWS Glue Data Catalog asset changes, or on a schedule, such as a daily SharePoint reindex. A connection mapping drives each ingestion, and one Agent Context can hold several mappings that use the same connection. For example, you can map one subfolder of a knowledge base with a contract ontology and another with an organizational-hierarchy ontology. For a structured source, you can scope a mapping down to specific tables. For unstructured extraction, you can apply one or more ontologies, built-in or custom, and AWS Context considers all of them. For more information, see Connecting data sources.
-
-
Build and curate iteratively – AWS Context continuously improves the Agent Context. It sends every proposed change through your curation policies, which decide whether to apply the change automatically or hold it for human review. AWS Context draws on signals that include instruction files you provide once, query logs, and data dictionaries. AWS Context links sub-graphs into one consolidated Agent Context through shared ontology types. In the background, it discovers join paths, resolves entities that appear in more than one source, detects contradictions, and mines completed agent sessions for gaps. It weights answers toward your most trusted data through authority ranking. For more information, see Building and curating context.
-
Validate quality – You can validate the Agent Context with the in-product chat agent and Agent Context Evaluation before your agents rely on it. For more information, see Evaluating context.
-
Consume from agents – When the Agent Context is ready, agents consume it. Agents connect through MCP tools, the Agentic Search APIs, or an Amazon Bedrock AgentCore Gateway target. AWS Context scopes every request at query time to the end user’s or agent’s identity and credentials, so an agent sees only what that identity is authorized to access. AWS Context also provides SDK plug-ins for mainstream agent tools, such as Claude Code and Cursor. For more information, see Retrieving context.