How structured data grounding works
Grounding runs on its own after you associate an ontology with an Agent Context that maps an AWS Glue Data Catalog connection, and keeps links current as your catalog changes. For the events that start a grounding run, see What triggers grounding.
This guide uses the following terms for grounding:
-
Link – A
MAPPED_TOrelationship from a table to a class, or from a column to a property. -
Associate – To load an ontology into an Agent Context with a task of type
IMPORT_ONTOLOGY. On the console, this task is an Ontology association customization task.
For the steps to associate an ontology, see Start grounding by associating an ontology.
Grounding covers only the tables in the AWS Glue Data Catalog databases that your connection mapping includes. When grounding runs, AWS Context does the following:
-
Reads the tables in those databases.
-
Finds the classes and properties in the ontology that best match each table’s name, description, and columns.
-
Chooses at most one class for each table, and a property for each column that fits one.
-
Creates at most one curation proposal for each table and ontology that has links to add or remove. The proposal contains the table’s link to a class and the table’s column links.
-
Adds each proposal to the curation queue. Under the default curation policy, the proposal waits there with status
PENDING_REVIEWuntil you approve or reject it. You can edit it before you approve it. The curation queue shows that Ontology grounding generated these proposals.
Grounding uses the ontology that you associate with the Agent Context. When grounding checks changed tables, it also uses the custom ontologies that the Agent Context maps on Amazon Bedrock Managed Knowledge Base connections. For more information about these connections, see Unstructured sources.
Grounding links tables and columns to classes and properties. It doesn’t convert data types, and it doesn’t turn individual column values into entities.
Grounding proposes links in batches, so that the curation queue doesn’t fill up at once. After you associate an ontology, grounding checks the first batch of tables, and then continues with the next batch until it has checked every table.
When many proposals wait for review in the Agent Context, grounding stops proposing new links, but it can still propose removing links. The following rules apply while the queue is full:
-
Checking every table after an association – Grounding waits, and then checks the queue again. When you approve or reject enough proposals, it continues with the next batch.
-
Queue full for 24 hours – Grounding stops checking the remaining tables. It checks each of those tables the next time it changes. You can’t associate the same ontology again to resume. To make grounding check every table again, associate a different published ontology. For more information, see Start grounding by associating an ontology.
-
Checking tables that changed – Grounding doesn’t propose links for those tables. It checks them again the next time they change.
Under the default curation policy, AWS Context rejects a grounding proposal automatically if you don’t review it within 14 days.