AWS Certified AI PractitionerFoundation ModelsHard

An AI engineer is evaluating a pre-trained foundation model for a task that involves question answering over a dynamic knowledge base. The model needs to provide highly accurate, up-to-date answers and cite its sources from the knowledge base. The engineer is concerned about the model generating incorrect or outdated information, a common issue with models relying solely on their training data. Which concept is most relevant for ensuring the model's responses are grounded in current, verifiable facts from the knowledge base?

  1. APrompt engineering
  2. BZero-shot learning
  3. CRetrieval Augmented Generation (RAG)
  4. DParameter-efficient fine-tuning (PEFT)
Show answer & explanation

Correct answer: C. Retrieval Augmented Generation (RAG)

The requirement for 'highly accurate, up-to-date answers' that 'cite its sources from the knowledge base' directly points to Retrieval Augmented Generation (RAG). RAG systems are designed to retrieve relevant documents or passages from an external knowledge base (like a dynamic one) and then use this retrieved information to condition the language model's generation, ensuring factual accuracy and providing verifiable sources. This mitigates the risk of the model relying solely on its potentially outdated pre-training data.

Why the other options are wrong

  • A. Prompt engineering guides the model's output format or style but doesn't provide a mechanism for fetching and incorporating external, up-to-date facts.
  • B. Zero-shot learning allows the model to perform tasks without examples, but doesn't inherently ensure factual accuracy from an external, dynamic source.
  • D. PEFT is a method for efficient fine-tuning, not a technique for integrating external, up-to-date knowledge for factual grounding.

Retrieval Augmented Generation (RAG)

A framework that enhances large language models by retrieving relevant information from an external, authoritative knowledge base to ground their responses, improving factual accuracy and enabling source citation.

  • Combats hallucination and reliance on outdated training data
  • Enables models to answer questions based on proprietary or real-time data
  • Improves trustworthiness by providing verifiable sources

Memory trick: Search for truth, then speak with proof.

More Foundation Models questions