Microsoft Certified: Azure AI Engineer AssociateImplement natural language processing solutionsHard

A financial institution is implementing a generative AI solution using Azure OpenAI Service to automate the creation of personalized financial reports for clients. These reports must strictly adhere to the institution's compliance guidelines and use only verified, internal financial data. Which strategy is MOST effective to ensure the generated reports are accurate, relevant, and compliant with internal policies while minimizing hallucinations?

  1. AFine-tune the base GPT model with a large dataset of compliant reports.
  2. BIncrease the model's 'temperature' parameter to encourage diverse and creative responses.
  3. CUse prompt engineering to instruct the model to be compliant and accurate.
  4. DImplement a Retrieval Augmented Generation (RAG) pattern, grounding the model with internal knowledge bases.
Show answer & explanation

Correct answer: D. Implement a Retrieval Augmented Generation (RAG) pattern, grounding the model with internal knowledge bases.

Retrieval Augmented Generation (RAG) is the most effective strategy. It grounds the generative AI model with verifiable, up-to-date internal data, ensuring accuracy, relevance, and compliance by retrieving specific information before generating a response and minimizing hallucinations by preventing the model from inventing facts.

Why the other options are wrong

  • A. Fine-tuning can help with style and tone but doesn't guarantee accuracy or prevent hallucinations regarding specific, up-to-date facts from internal data.
  • B. Increasing temperature makes responses more diverse and creative, which is counterproductive to accuracy and compliance requirements and would likely increase hallucinations.
  • C. Prompt engineering is important but insufficient alone to guarantee factual accuracy and prevent hallucinations, especially with complex, dynamic internal data.

Retrieval Augmented Generation (RAG)

A generative AI pattern that improves the accuracy and relevance of AI-generated responses by retrieving information from external knowledge bases and grounding the large language model (LLM) with that data before generating text.

  • Combats hallucinations by providing factual context.
  • Ensures responses are based on up-to-date, verifiable data.
  • Critical for applications requiring high accuracy and compliance.

Memory trick: Ground your AI in truth to build compliance and trust.

More Implement natural language processing solutions questions