Question 21

A Generative Al Engineer is building a RAG application that answers questions about internal documents for the company SnoPen AI.
The source documents may contain a significant amount of irrelevant content, such as advertisements, sports news, or entertainment news, or content about other companies.
Which approach is advisable when building a RAG application to achieve this goal of filtering irrelevant information?
  • Question 22

    A Generative AI Engineer just deployed an LLM application at a digital marketing company that assists with answering customer service inquiries.
    Which metric should they monitor for their customer service LLM application in production?
  • Question 23

    A Generative AI Engineer is developing a chatbot designed to assist users with insurance-related queries. The chatbot is built on a large language model (LLM) and is conversational. However, to maintain the chatbot's focus and to comply with company policy, it must not provide responses to questions about politics. Instead, when presented with political inquiries, the chatbot should respond with a standard message:
    "Sorry, I cannot answer that. I am a chatbot that can only answer questions around insurance." Which framework type should be implemented to solve this?
  • Question 24

    A company has a typical RAG-enabled, customer-facing chatbot on its website.

    Select the correct sequence of components a user's questions will go through before the final output is returned. Use the diagram above for reference.
  • Question 25

    A Generative AI Engineer is testing a simple prompt template in LangChain using the code below, but is getting an error.

    Assuming the API key was properly defined, what change does the Generative AI Engineer need to make to fix their chain?