What is an effective method to preprocess prompts using custom code before sending them to an LLM?
A Generative AI Engineer is developing a patient-facing healthcare-focused chatbot. If the patient’s question is not a medical emergency, the chatbot should solicit more information from the patient to pass to the doctor’s office and suggest a few relevant pre-approved medical articles for reading. If the patient’s question is urgent, direct the patient to calling their local emergency services.Given the following user input:“I have been experiencing severe headaches and dizziness for the past two days.”Which response is most appropriate for the chatbot to generate?
After changing the response generating LLM in a RAG pipeline from GPT-4 to a model with a shorter context length that the company self-hosts, the Generative AI Engineer is getting the following error:What TWO solutions should the Generative AI Engineer implement without changing the response generating model? (Choose two.)
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?
A Generative AI Engineer has created a RAG application which can help employees retrieve answers from an internal knowledge base, such as Confluence pages or Google Drive. The prototype application is now working with some positive feedback from internal company testers. Now the Generative Al Engineer wants to formally evaluate the system’s performance and understand where to focus their efforts to further improve the system.How should the Generative AI Engineer evaluate the system?
A Generative Al Engineer has already trained an LLM on Databricks and it is now ready to be deployed.Which of the following steps correctly outlines the easiest process for deploying a model on Databricks?