AWS Context quickstart
One script builds an Agent Context over a small AWS Glue table, asks a business question, and deletes everything.
AWS Cloud
Region us-east-1
AWS Context
quickstart.py
boto3 1.44.17
AWS Glue Data Catalog
table orders, with column descriptions
auto-discovery turned on
Amazon S3 bucket
orders.csv, 10 rows
Ingestion role
assumed by AWS Glue
Connection
GLUE_DATA_CATALOG
Agent Context
graph: table, columns
Retrieval agent
AgenticRetrieveStream
table location
read-only SQL, caller's credentials
1
2
3
4
5
6
1
2
3
4
5
6
LINES
Create, then delete at the end
Metadata only
Question and cited answer
Lookups at question time
Reference
FLOW
The script creates a 10 row orders table: a CSV file in Amazon S3, described in AWS Glue.
AWS Glue assumes the ingestion role and sends table and column metadata to AWS Context.
The connection is mapped into an Agent Context, which builds a graph with the Data ontology.
The script asks a business question with AgenticRetrieveStream.
The retrieval agent searches the graph and reads the column descriptions.
It runs one read-only SQL query on the data and returns an answer with citations.