Provision a retrieval system with the right boundaries
A travel knowledge base serves several cities from the same collection.
Provision a retrieval system with the right boundaries
A travel knowledge base serves several cities from the same collection. The retriever must limit its candidate set to authorized locations. Carry metadata from ingestion to query, then evaluate recall, access boundaries and capacity separately.
At 1:54:13 the instructor follows a city attribute from ingestion into filtered retrieval. Verify the attribute survives chunking and appears in stored index records.
Work through the decision
A team filters citations after generating the answer. Does that keep out-of-region content out of the model context?
Check your reasoning
Enforce authorization before retrieval, preserve access metadata on indexed chunks and test the actual returned IDs. Removing citations afterward does not remove material already seen by the model.
Continue in the recording · 1:53:40 · 2:07:10.
Decisions and tradeoffs
- Index metadata and retrieval filters
- Persist attributes with the chunks and pass authorized filter values into supported retrieval requests.
- Versioned container image digest
- Pin a tested immutable image so the same runtime can be rebuilt and promoted.
- VPC interface endpoint
- Private connectivity to a supported AWS API can avoid public internet egress. Check endpoint policy, DNS and security groups.
- Workload-sensitive autoscaling metric
- Choose a leading signal such as backlog per instance or appropriate concurrent requests and test it against the service target.
- Infrastructure as code with stack outputs
- Declare resources and pass documented identifiers across stacks to make provisioning repeatable across environments.
- Session-scoped state store
- Use a stable session key, expiry and authorization boundary appropriate to short-lived conversation state.
- Provisioned throughput
- Committed capacity can suit sustained predictable load once measured demand and applicable support justify the commitment.
Practice each guide skill
The numbers below follow the AWS task and skill identifiers.
- Estimate sustained and burst demand before choosing on-demand capacity or a commitment. Include idle time in the calculation.
- Publish network outputs from the infrastructure stack and resolve them in the serving stack. Confirm environment-specific values.
- Build an inference image from a pinned base, test its serving contract, and retain its digest in the release manifest.
- Validate private endpoint DNS, subnet routes, endpoint policies and security groups for the calling and serving identities.
- Identify the model artifact, serving container and endpoint configuration required by a programmatic SageMaker deployment.
- Select a signal tied to waiting work or concurrency. Load-test the scaling policy for both growth and scale-in.
- Create a knowledge base with a compatible vector store and consistent embedding dimensions. Check indexing completion and metadata.
- Filter to authorized documents before retrieval; compare top-k and reranking on a labeled query set.
- Choose session keys, retention and authorization checks for ephemeral conversation state and longer-lived memory.
- Size GPU resources using memory, batching and queue time. Test cold load and scaling delays against the latency target.
- Separate the agent runtime, permitted tools, identity, state and tracing resources. Check each integration under its assigned role.
Official objectives for this lesson
Related lesson · Establish a workload identity and network path
Provision a retrieval system with the right boundaries quiz
Answer 3 questions. Check each answer for an explanation.