View a markdown version of this page

Building and curating context - AWS Context

Building and curating context

This chapter describes how you build an Agent Context from your connected sources and how you curate it so that it stays accurate as your agents run. The first sections cover building the context graph: how you pair sources with ontologies, how AWS Context ingests and links the data, and how you monitor the build. The sections that follow cover curating and improving an Agent Context over time.

After you connect a data source, you build an Agent Context by creating data mappings. A data mapping pairs one connection with one or more ontologies, and AWS Context uses that pairing to produce one sub-graph. As you add more mappings, AWS Context links their sub-graphs through the ontology types they share, so the separate sub-graphs become one consolidated graph that your agents retrieve from.

An ontology gives the data in a sub-graph a shared, explicit model to speak in. An ontology defines two things:

  • Classes – the kinds of things that can exist, such as a customer or an order.

  • Relationship types – how those things connect, such as a customer who places an order.

Every node in a sub-graph is an instance of a class, and every edge is an instance of a relationship type. By mapping data from many sources onto ontologies that share types, AWS Context lets different sources speak one consistent language. For example, an ontology might define a customer who places an order, and an order that is for a product (Customer — places -→ Order — forProduct -→ Product).

This chapter describes how to create and manage data mappings, how AWS Context ingests and links the data they select, and how to monitor the build. For how to create the connections that a mapping draws from, see the connecting-data-sources chapter.

AWS Context builds and maintains an Agent Context, the knowledge your agents rely on, and keeps it accurate as your agents run. This chapter describes curation as the context development lifecycle (CDLC): the repeating loop through which changes are authored, built, reviewed, published, and maintained. Curation lets you review inferred changes before agents can act on them and fold in corrections and feedback, so an Agent Context improves without introducing errors.

Every change reaches the governed Agent Context the same way, no matter where it came from. A change is expressed as a changeset and evaluated against a curation policy, which either applies the change automatically or holds it for human review as a curation proposal. Inferred changes from ingestion and background analysis, manual edits that a curator makes, and feedback from completed agent sessions all converge on this one gate.

Note

A curation policy controls what reaches an Agent Context. It is not an access control and does not decide who can query an Agent Context. Access control is governed separately through AWS Identity and Access Management (IAM) and resource-based policies. For access control, see Governing access.