

# Change a filter later

You can change data filtering while the Agent Context is active. On the Agent Context’s **Connections** tab, select the connection, choose **Actions**, and then choose **Edit**. Change the filters, and then choose **Save configuration**.

Whether you can change a connection’s data scope depends on the data source:
+ For a connection to an AWS native structured source, open the connection, choose **Actions**, and then choose **Edit data scope**. If the page shows the data scope as read-only, create a connection with the data scope that you want.
+ For a Snowflake or Databricks connection, you can’t change the data scope while an Agent Context uses the connection.
+ An Amazon Bedrock Managed Knowledge Base connection always includes the whole knowledge base.

A change applies to what AWS Context ingests next:
+ If you include more data, AWS Context ingests the added data.
+ If you include less data, AWS Context stops ingesting the excluded data. Data that is already in the Agent Context remains.

To stop using a connection in an Agent Context, remove the connection from the Agent Context. For what happens to the data that it added, see [Edit and remove a mapping](edit-and-remove-a-mapping.md).