View a markdown version of this page

What triggers grounding - AWS Context

What triggers grounding

Grounding doesn’t run on a schedule over your whole catalog. It runs when an ontology is loaded into the Agent Context, and when tables in your catalog change. Each run checks the tables that the event affects, and proposes only the link changes that those tables need.

Events that start a grounding run

The following events start a grounding run:

  • An ontology is loaded into the Agent Context – Grounding checks every table in the Agent Context against that ontology. An ontology is loaded in the following cases:

    • You associate an ontology that isn’t already loaded in the Agent Context. For more information, see Start grounding by associating an ontology.

    • You add a custom ontology to a connection mapping. AWS Context then extracts the connection’s documents again, and loads the ontology into the Agent Context. Curation policies apply to that load.

  • Tables in your catalog change – After changes to your catalog are synced into the Agent Context, AWS Context periodically checks the tables that changed. It checks them against every ontology that the Agent Context uses. If a table was deleted, grounding proposes removing that table’s links.

Grounding runs only while entity resolution is ENABLED for the Agent Context. For more information, see Turn grounding off and on.

What grounding proposes for each table that it checks

When grounding checks a table, it compares the links that it finds with the links that the table already has:

  • The table’s links already match – Grounding proposes nothing for the table.

  • Grounding finds a different class or property – Grounding proposes adding the new links and removing the links that no longer match.

  • Grounding finds no matching class – Grounding proposes removing all of the table’s links.

  • Grounding can’t choose a class – Grounding proposes nothing, and the table keeps the links that it already has.

  • The table has links to an ontology that the Agent Context no longer uses – Grounding proposes removing those links. An ontology is no longer used only when no connection mapping includes it and its schema isn’t loaded in the Agent Context. A custom ontology that a connection mapping includes is loaded, and nothing unloads it, so this case is rare for a custom ontology. Its links stay unless the ontology is neither mapped nor loaded. For more information, see Remove an ontology from Agent Contexts.

Each proposal arrives in the curation queue, and you review it the same way as the first proposals. For more information, see Review and edit grounding proposals.

Note

Grounding doesn’t propose again links that you rejected, while the table, its stored links, and the ontology stay the same. Grounding also doesn’t check again a table that hasn’t changed, unless an ontology is loaded.

You can’t remove an associated ontology from an Agent Context. Its schema stays loaded, and grounding keeps proposing links to it. To stop grounding proposals, reject them, or turn grounding off. For more information, see Turn grounding off and on.