Databricks Certified Generative AI Engineer Associate — Question 89

A team uses Mosaic AI Vector Search to retrieve documents for their Retrieval-Augmented Generation (RAG) pipeline. The search query returns five relevant documents, and the first three are added to the prompt as context. Performance evaluation with Agent Evaluation shows that some lower-ranked retrieved documents have higher context relevancy scores than higher-ranked documents.

Which option should the team consider to optimize this workflow?

Answer options

Correct answer: A

Explanation

The correct answer is A because using a reranker allows the team to reorder the documents based on their relevancy scores, ensuring the most relevant ones are prioritized in the prompt. Options B and D do not directly address the ranking issue, while option C, though potentially helpful, does not guarantee improved relevance ranking for the current context.