AWS AI Practitioner AIF-C01 · Applications of Foundation Models · medium

A healthcare company wants an LLM on Amazon Bedrock to answer employee questions using internal HR policy PDFs that are updated weekly, and every answer must cite the exact source document and page number without the expense of retraining the foundation model every week. Which architecture pattern should they implement?

Published · Last updated · checked before publication — how we verify questions

Options

  • ARetrieval-Augmented Generation (RAG) with Knowledge BasesCorrect answer
  • BContinued pre-training of a 70B parameter LLM from scratch weekly
  • CReinforcement Learning from Human Feedback (RLHF) on raw pixels
  • DLowering the context window to 10 tokens in zero-shot mode

Answer: A. Retrieval-Augmented Generation (RAG) with Knowledge Bases

Retrieval-Augmented Generation (RAG) (implemented via Amazon Bedrock Knowledge Bases) converts the HR PDFs into vector embeddings stored in a vector database, retrieves the most relevant chunks at query time, injects them into the prompt context, and returns grounded answers with source citations — without retraining or fine-tuning the model.

Why the other options are wrong

  • B. Continued pre-training of a 70B parameter LLM from scratch weekly — Continued pre-training costs thousands of dollars in compute per run and does not provide automatic document citations.
  • C. Reinforcement Learning from Human Feedback (RLHF) on raw pixels — RLHF aligns model behavior preferences rather than injecting weekly HR policy updates with source citations.
  • D. Lowering the context window to 10 tokens in zero-shot mode — A 10-token context window cannot fit the user question or retrieved policy passages.

All Applications of Foundation Models questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.