ML Model and Foundation Model (FM) Development

A multi-tenant RAG assistant uses one Amazon Bedrock knowledge base for all customers. Answers sometimes cite passages from another customer's documents, and each document already carries a tenant ID. Which retrieval pattern BEST keeps results within the requesting customer's documents?

Show the answer

Correct answerB. Apply a metadata filter on tenant ID to each retrieval request

AWhy not this: Reranking reorders the retrieved passages but still includes other tenants' passages that matched the query.

BWhy this is right: Filtering on the tenant ID metadata restricts the search to the caller's own documents before results are returned.

CWhy not this: Hybrid search improves matching on exact terms and meaning but does not restrict results by owner.

DWhy not this: A prompt instruction depends on the model obeying it, and the other tenant's passages are still in the context.

A metadata filter limits retrieval to chunks whose tenant ID matches the caller, so other customers' passages are never returned to the FM. Reranking and hybrid search change which relevant passages rank highest, and a prompt instruction cannot remove passages already in the context.